|
@@ -197,12 +197,19 @@ CMD.init = async function(){
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- cur_day_data[today][timeRange.start] = {}
|
|
|
|
|
|
+ if(cur_day_data[today]==null){
|
|
|
|
+ cur_day_data[today] = []
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(cur_day_data[today][timeRange.start] == null){
|
|
|
|
+ cur_day_data[today][timeRange.start] = {}
|
|
|
|
+ }
|
|
const result = await manager.createRecord(today,cur_day_data[today]);
|
|
const result = await manager.createRecord(today,cur_day_data[today]);
|
|
if(result.success){
|
|
if(result.success){
|
|
|
|
|
|
}else{
|
|
}else{
|
|
-
|
|
|
|
|
|
+ cur_day_data[today] = await manager.getRecord(today);
|
|
|
|
+ cur_day_data[today][timeRange.start] = {}
|
|
}
|
|
}
|
|
cur_page = 0
|
|
cur_page = 0
|
|
// 示例:实际任务逻辑
|
|
// 示例:实际任务逻辑
|