From 32690536586507fd7fbed66007dda690744da82c Mon Sep 17 00:00:00 2001 From: any Date: Tue, 12 Jan 2021 00:25:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=9B=E4=BC=9A=E5=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_cash.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jd_cash.js b/jd_cash.js index 81f38446..25a99c22 100644 --- a/jd_cash.js +++ b/jd_cash.js @@ -108,21 +108,21 @@ 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}任务 ${task.doTimes}/${task.times}`) + console.log(`去做${task.name}任务 ${i}/${task.times}`) await doTask(task.type, task.jump.params.skuId) await $.wait(1000) } } else if (task.type === 2) { for (let i = task.doTimes; i < task.times; ++i) { - console.log(`去做${task.name}任务 ${task.doTimes}/${task.times}`) + console.log(`去做${task.name}任务 ${i}/${task.times}`) await doTask(task.type, task.jump.params.shopId) await $.wait(1000) } } - else if (task.type === 16 || task.type===3) { + else if (task.type === 16 || task.type===3 || task.type===5) { for (let i = task.doTimes; i < task.times; ++i) { - console.log(`去做${task.name}任务 ${task.doTimes}/${task.times}`) + console.log(`去做${task.name}任务 ${i}/${task.times}`) await doTask(task.type, task.jump.params.url) await $.wait(1000) }