mirror of https://github.com/KingRan/KR.git
parent
39a591d0af
commit
9d426e3e15
|
@ -59,7 +59,6 @@ let tasks = [], shareCodes = [], first = true;
|
|||
|
||||
async function main() {
|
||||
tasks = await detail();
|
||||
console.log('tasks:++++++++++'+tasks);
|
||||
for (let i = 0; i < tasks.length; i++) {
|
||||
let product_info_vos = []
|
||||
let task_vos = tasks[i]
|
||||
|
@ -88,11 +87,13 @@ async function main() {
|
|||
""
|
||||
}
|
||||
let taskId = task_vos.task_id, taskType = task_vos.task_type;
|
||||
if(product_info_vos != ){
|
||||
for (let t of product_info_vos) {
|
||||
if (t.status === '1') {
|
||||
console.log(`开始任务:${task_vos.task_name}`)
|
||||
let res = await do_task(t.task_token, taskId, taskType)
|
||||
await $.wait(2000)
|
||||
await $.wait(1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue