增加逛一逛任务,加大任务延时
This commit is contained in:
14
jd_cash.js
14
jd_cash.js
@@ -116,23 +116,23 @@ function index(info=false) {
|
|||||||
for(let task of data.data.result.taskInfos){
|
for(let task of data.data.result.taskInfos){
|
||||||
if (task.type === 4) {
|
if (task.type === 4) {
|
||||||
for (let i = task.doTimes; i < task.times; ++i) {
|
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 doTask(task.type, task.jump.params.skuId)
|
||||||
await $.wait(1000)
|
await $.wait(5000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (task.type === 2) {
|
else if (task.type === 2) {
|
||||||
for (let i = task.doTimes; i < task.times; ++i) {
|
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 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) {
|
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 doTask(task.type, task.jump.params.url)
|
||||||
await $.wait(1000)
|
await $.wait(5000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user