|
@@ -38,7 +38,14 @@ async function processTask(timeRange){
|
|
|
if(timeRange!=null){
|
|
|
const today = new Date().toISOString().split('T')[0];
|
|
|
console.log("response.result:",response.result)
|
|
|
- cur_day_data[today][timeRange.start].count = response.result.count
|
|
|
+ if(cur_day_data[today][timeRange.start]){
|
|
|
+ console.log("response.result.count:",response.result.count)
|
|
|
+ console.log("(cur_day_data[today][timeRange.start]:",cur_day_data[today][timeRange.start])
|
|
|
+ cur_day_data[today][timeRange.start].count = response.result.count
|
|
|
+ }else{
|
|
|
+ console.log("cur_day_data空")
|
|
|
+ }
|
|
|
+
|
|
|
const updateResult = await manager.updateRecord(today,cur_day_data[today]);
|
|
|
}
|
|
|
|
|
@@ -399,7 +406,7 @@ CMD.init = async function(){
|
|
|
},
|
|
|
{
|
|
|
name: '下午区间',
|
|
|
- start: '17:36',
|
|
|
+ start: '17:43',
|
|
|
timestamp: 1733821200000,
|
|
|
hour: 17,
|
|
|
timeFormat: '12/10/2024, 5:00:00 PM'
|