|
@@ -2,14 +2,17 @@
|
|
|
* @Author: fuyu
|
|
|
* @Date: 2021-03-23 16:25:59
|
|
|
* @LastEditors: fuyu
|
|
|
- * @LastEditTime: 2021-03-25 17:28:20
|
|
|
- * @FilePath: /202103/code/sql_merge/src/service/log.js
|
|
|
+ * @LastEditTime: 2021-03-28 22:22:39
|
|
|
+ * @FilePath: /sql_merge/src/service/log.js
|
|
|
*/
|
|
|
const fs = require('fs')
|
|
|
const path = require('path');
|
|
|
const rootPath = path.join(__dirname, '..', '..', 'logs')
|
|
|
import {getNowDay, getNowTime} from './time'
|
|
|
export async function logSum(institution_id, count) {
|
|
|
+ if(typeof institution_id !== 'string') {
|
|
|
+ return
|
|
|
+ }
|
|
|
const dirPath = path.join(rootPath, 'sum')
|
|
|
checkPath(dirPath)
|
|
|
const filePath = path.join(dirPath, getNowDay() + '.log')
|