KingRan 2022-02-15 14:03:29 +08:00
parent 39a591d0af
commit 9d426e3e15
1 changed files with 36 additions and 35 deletions

View File

@ -59,7 +59,6 @@ let tasks = [], shareCodes = [], first = true;
async function main() { async function main() {
tasks = await detail(); tasks = await detail();
console.log('tasks++++++++++'+tasks);
for (let i = 0; i < tasks.length; i++) { for (let i = 0; i < tasks.length; i++) {
let product_info_vos = [] let product_info_vos = []
let task_vos = tasks[i] let task_vos = tasks[i]
@ -88,11 +87,13 @@ async function main() {
"" ""
} }
let taskId = task_vos.task_id, taskType = task_vos.task_type; let taskId = task_vos.task_id, taskType = task_vos.task_type;
if(product_info_vos = ){
for (let t of product_info_vos) { for (let t of product_info_vos) {
if (t.status === '1') { if (t.status === '1') {
console.log(`开始任务:${task_vos.task_name}`) console.log(`开始任务:${task_vos.task_name}`)
let res = await do_task(t.task_token, taskId, taskType) let res = await do_task(t.task_token, taskId, taskType)
await $.wait(2000) await $.wait(1000)
}
} }
} }
} }