From 3886d8001a937e535ad0c4e079ed1a8aa315ee71 Mon Sep 17 00:00:00 2001 From: anonymous Date: Wed, 13 Jan 2021 09:58:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=9B=E4=B8=80=E9=80=9B?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=8C=E5=8A=A0=E5=A4=A7=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=BB=B6=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_cash.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jd_cash.js b/jd_cash.js index a738dfc5..f094049e 100644 --- a/jd_cash.js +++ b/jd_cash.js @@ -116,23 +116,23 @@ function index(info=false) { for(let task of data.data.result.taskInfos){ if (task.type === 4) { for (let i = task.doTimes; i < task.times; ++i) { - console.log(`去做${task.name}任务 ${i}/${task.times}`) + console.log(`去做${task.name}任务 ${i+1}/${task.times}`) await doTask(task.type, task.jump.params.skuId) - await $.wait(1000) + await $.wait(5000) } } else if (task.type === 2) { for (let i = task.doTimes; i < task.times; ++i) { - console.log(`去做${task.name}任务 ${i}/${task.times}`) + console.log(`去做${task.name}任务 ${i+1}/${task.times}`) await doTask(task.type, task.jump.params.shopId) - await $.wait(1000) + await $.wait(5000) } } - else if (task.type === 16 || task.type===3 || task.type===5) { + else if (task.type === 16 || task.type===3 || task.type===5 || task.type===17) { for (let i = task.doTimes; i < task.times; ++i) { - console.log(`去做${task.name}任务 ${i}/${task.times}`) + console.log(`去做${task.name}任务 ${i+1}/${task.times}`) await doTask(task.type, task.jump.params.url) - await $.wait(1000) + await $.wait(5000) } } }