fuyu 4 years ago
parent
commit
58fbaf7194
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/service/log.js

+ 3 - 3
src/service/log.js

@@ -2,18 +2,18 @@
  * @Author: fuyu
  * @Date: 2021-03-23 16:25:59
  * @LastEditors: fuyu
- * @LastEditTime: 2021-03-28 22:26:02
+ * @LastEditTime: 2021-03-28 22:26:51
  * @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, ) {
+export async function logSum(institution_id, count, prefix = '') {
   if(institution_id instanceof Array) {
     institution_id = 'all'
   }
-  const dirPath = path.join(rootPath, 'sum', prefix = '')
+  const dirPath = path.join(rootPath, 'sum')
   checkPath(dirPath)
   const filePath = path.join(dirPath, getNowDay() + '.log')
   const time = getNowTime()