DevYK hace 2 años
padre
commit
7f265ac5b1
Se han modificado 2 ficheros con 4 adiciones y 5 borrados
  1. 3 3
      model/server_data_statistics.js
  2. 1 2
      routes/sdk.js

+ 3 - 3
model/server_data_statistics.js

@@ -680,12 +680,12 @@ async function report2FeishuTable() {
         logger.info('report2FeishuTable')
         var data = await getStatisticsInfo();
         logger.info('getStatisticsInfo', data)
-        await exec(data)
-        logger.error('数据统计 end', JSON.stringify(data))
+        var ret = await exec(data)
+        // logger.error('数据统计 end', JSON.stringify(data))
+        return ret
     } catch (error) {
         logger.error('report2FeishuTable', error.toString())
     }
-
 }
 
 timeoutFunc({

+ 1 - 2
routes/sdk.js

@@ -833,8 +833,7 @@ router.post('/getWithdrawStatus', getWithdrawStatus);
 //获取所有地址的所要消耗的最低提取费
 router.post('/getAllTokenWithdrawInfoLists', getAllTokenWithdrawInfoLists)
 router.get('/report2FeishuTable', async (ctx) => {
-    await stat.report2FeishuTable()
-    ctx.body = 'ok.'
+    ctx.body = await stat.report2FeishuTable()
 })
 
 // 定时任务 提币+归集