904118851 8 months ago
parent
commit
ee19c9ff5c
2 changed files with 3 additions and 3 deletions
  1. 2 2
      PULL_DATA_FACTORY/PULL_DATA.js
  2. 1 1
      PULL_DATA_FACTORY/daily_records.js

+ 2 - 2
PULL_DATA_FACTORY/PULL_DATA.js

@@ -38,7 +38,7 @@ async function processTask(timeRange){
         if(timeRange!=null){
             const today = new Date().toISOString().split('T')[0];
             cur_day_data[today][timeRange.start].count = response.result.count
-            const updateResult = await manager.updateRecord(today,cur_day_data[timeRange.today]);
+            const updateResult = await manager.updateRecord(today,cur_day_data[today]);
         }
 
         for (let index = 0; index < response.result.list.length; index++) {
@@ -378,7 +378,7 @@ CMD.init = async function(){
         },
         {
           name: '下午区间',
-          start: '16:35',
+          start: '16:40',
           timestamp: 1733817600000,
           hour: 16,
           timeFormat: '12/10/2024, 4:00:00 PM'

+ 1 - 1
PULL_DATA_FACTORY/daily_records.js

@@ -47,7 +47,7 @@ class DailyRecordManager {
                 connection.release();
             }
         } catch (error) {
-            console.error('更新记录失败:', error);
+            console.error('更新记录失败:', error,content,date);
             throw error;
         }
     }