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