|
@@ -79,7 +79,6 @@ const taskCallback = async (context) => {
|
|
|
// }
|
|
|
cur_timeRange = timeRange
|
|
|
cur_timeRange.finish_count = 0
|
|
|
- process_update_token()
|
|
|
cur_page = 0
|
|
|
// 示例:实际任务逻辑
|
|
|
await processTask();
|
|
@@ -283,7 +282,7 @@ async function processTask(){
|
|
|
}finally{
|
|
|
if(cur_page!=-1){
|
|
|
cur_page++;
|
|
|
- setTimeout(processTask,1000)
|
|
|
+ global.setTimeout(processTask,1000)
|
|
|
}
|
|
|
}
|
|
|
|