修改延迟
parent
64da368779
commit
b606759864
|
@ -142,6 +142,11 @@ async function run() {
|
||||||
console.log('开卡')
|
console.log('开卡')
|
||||||
$.joinVenderId = 1000410747
|
$.joinVenderId = 1000410747
|
||||||
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('重新开卡')
|
||||||
await $.wait(parseInt(Math.random() * 2000 + 3000, 10))
|
await $.wait(parseInt(Math.random() * 2000 + 3000, 10))
|
||||||
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue