From b6067598642dc154359fc0710fb1b75dbf863d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=87=E5=93=A5=E4=B8=B6?= Date: Tue, 15 Mar 2022 00:36:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gua_opencard118.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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)