抽奖,入会任务
This commit is contained in:
16
jd_nian.js
16
jd_nian.js
@ -724,6 +724,20 @@ function shopLotteryInfo(shopSign) {
|
||||
console.log(`${vo.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
}else if (vo.taskType === 21) {
|
||||
if (vo.brandMemberVos) {
|
||||
if (vo.status === 1) {
|
||||
console.log(`准备做此任务:${vo.taskName}`)
|
||||
for (let task of vo.brandMemberVos) {
|
||||
if (task.status === 1) {
|
||||
await $.wait(2000)
|
||||
await collectScore(vo.taskId, task.advertId, null, null, shopSign);
|
||||
}
|
||||
}
|
||||
} else if (vo.status === 2) {
|
||||
console.log(`${vo.taskName}已做完`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -761,6 +775,8 @@ function doShopLottery(shopSign) {
|
||||
console.log(`抽奖成功,获得${result.score}爆竹🧨`)
|
||||
else if (result.awardType === 2 || result.awardType === 3)
|
||||
console.log(`抽奖成功,获得优惠卷`)
|
||||
else if (result.awardType === 5)
|
||||
console.log(`抽奖成功,品牌卡`)
|
||||
else
|
||||
console.log(`抽奖成功,获得${JSON.stringify(result)}`)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user