master
标哥丶 2022-03-21 12:37:50 +08:00
parent 34f11fb37e
commit 113bddd50e
1 changed files with 5 additions and 5 deletions

View File

@ -139,15 +139,15 @@ async function run() {
flag = true
$.joinVenderId = o.venderId
await joinShop()
if($.joinShopresmessage === '活动太火爆,请稍后再试'){
if($.errorJoinShop === '活动太火爆,请稍后再试'){
console.log('重新开卡')
await joinShop()
}
await $.wait(parseInt(Math.random() * 2000 + 2000, 10))
await $.wait(parseInt(Math.random() * 2000 + 1000, 10))
await takePostRequest('activityContent');
await takePostRequest('drawContent');
await takePostRequest('checkOpenCard');
await $.wait(parseInt(Math.random() * 3000 + 2000, 10))
await $.wait(parseInt(Math.random() * 3000 + 1000, 10))
}
}
}else{
@ -199,8 +199,8 @@ async function run() {
}
await $.wait(parseInt(Math.random() * 1000 + 5000, 10))
if(flag) await $.wait(parseInt(Math.random() * 1000 + 10000, 10))
if($.index % 3 == 0) console.log('休息1分钟别被黑ip了\n可持续发展')
if($.index % 3 == 0) await $.wait(parseInt(Math.random() * 5000 + 30000, 10))
if($.index % 5 == 0) console.log('休息1分钟别被黑ip了\n可持续发展')
if($.index % 5 == 0) await $.wait(parseInt(Math.random() * 5000 + 20000, 10))
} catch (e) {
console.log(e)
}