添加是否中奖打印,减少摇奖间隔(延迟时间)
This commit is contained in:
@ -137,14 +137,15 @@ async function shaking() {
|
|||||||
}
|
}
|
||||||
for (let i = 0; i < new Array($.leftShakingTimes).fill('').length; i++) {
|
for (let i = 0; i < new Array($.leftShakingTimes).fill('').length; i++) {
|
||||||
console.log(`开始新版-摇奖`)
|
console.log(`开始新版-摇奖`)
|
||||||
await $.wait(2000);
|
await $.wait(1000);
|
||||||
const newShakeBeanRes = await vvipclub_shaking_lottery();
|
const newShakeBeanRes = await vvipclub_shaking_lottery();
|
||||||
if (newShakeBeanRes.success) {
|
if (newShakeBeanRes.success) {
|
||||||
console.log(`新版-剩余摇奖次数:${newShakeBeanRes.data.remainLotteryTimes}`)
|
console.log(`新版-剩余摇奖次数:${newShakeBeanRes.data.remainLotteryTimes}`)
|
||||||
if (newShakeBeanRes.data && newShakeBeanRes.data.rewardBeanAmount) {
|
if (newShakeBeanRes.data && newShakeBeanRes.data.rewardBeanAmount) {
|
||||||
$.prizeBeanCount += newShakeBeanRes.data.rewardBeanAmount;
|
$.prizeBeanCount += newShakeBeanRes.data.rewardBeanAmount;
|
||||||
|
console.log(`恭喜你,中奖了,获得${newShakeBeanRes.data.rewardBeanAmount}京豆\n`)
|
||||||
} else {
|
} else {
|
||||||
console.log(`未中奖`)
|
console.log(`未中奖\n`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user