修改延迟

master
标哥丶 2022-03-15 00:36:37 +08:00
parent 64da368779
commit b606759864
1 changed files with 7 additions and 2 deletions

View File

@ -147,6 +147,11 @@ async function run() {
await $.wait(parseInt(Math.random() * 2000 + 3000, 10)) await $.wait(parseInt(Math.random() * 2000 + 3000, 10))
await joinShop() await joinShop()
} }
if($.errorJoinShop.indexOf('活动太火爆,请稍后再试') > -1){
console.log('重新开卡')
await $.wait(parseInt(Math.random() * 2000 + 3000, 10))
await joinShop()
}
if($.errorJoinShop.indexOf('活动太火爆,请稍后再试') > -1){ if($.errorJoinShop.indexOf('活动太火爆,请稍后再试') > -1){
console.log("开卡失败❌") console.log("开卡失败❌")
} }
@ -167,8 +172,8 @@ async function run() {
await $.wait(parseInt(guaopenwait, 10) * 1000) await $.wait(parseInt(guaopenwait, 10) * 1000)
} }
}else{ }else{
if($.index % 3 == 0) console.log('休息1分钟别被黑ip了\n可持续发展') if($.index % 5 == 0) console.log('休息1分钟别被黑ip了\n可持续发展')
if($.index % 3 == 0) await $.wait(parseInt(Math.random() * 5000 + 60000, 10)) if($.index % 5 == 0) await $.wait(parseInt(Math.random() * 5000 + 30000, 10))
} }
} catch (e) { } catch (e) {
console.log(e) console.log(e)