From ddc4bd47efbb0d52f73484b9345171b56305b08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=97=E5=86=9B?= Date: Wed, 3 Nov 2021 14:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/test_bean.js | 1 + src/main/resources/test_fruit.js | 1 + src/main/resources/test_money_money.js | 3 ++- src/main/resources/test_pet.js | 1 + src/main/resources/test_speed_red.js | 3 ++- src/main/resources/test_speed_sign.js | 1 + src/main/resources/test_trytryOne.js | 2 +- 7 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/resources/test_bean.js b/src/main/resources/test_bean.js index 72a38c1..a2edc2e 100644 --- a/src/main/resources/test_bean.js +++ b/src/main/resources/test_bean.js @@ -50,6 +50,7 @@ let num; } for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { + await $.wait(Math.floor(Math.random() * (175000) + 5000)); cookie = cookiesArr[i]; $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]) $.index = i + 1; diff --git a/src/main/resources/test_fruit.js b/src/main/resources/test_fruit.js index cc86ec7..c06d5cf 100644 --- a/src/main/resources/test_fruit.js +++ b/src/main/resources/test_fruit.js @@ -21,6 +21,7 @@ const urlSchema = `openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%2 } for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { + await $.wait(Math.floor(Math.random() * (175000) + 5000)); cookie = cookiesArr[i]; $.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1]) $.index = i + 1; diff --git a/src/main/resources/test_money_money.js b/src/main/resources/test_money_money.js index 6c03835..d3e65ad 100644 --- a/src/main/resources/test_money_money.js +++ b/src/main/resources/test_money_money.js @@ -28,7 +28,8 @@ const inviteCodes = [ } for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { - cookie = cookiesArr[i]; + await $.wait(Math.floor(Math.random() * (600000) + 5000)); + cookie = cookiesArr[i]; $.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1]) $.index = i + 1; $.isLogin = true; diff --git a/src/main/resources/test_pet.js b/src/main/resources/test_pet.js index 2b9dec9..9ce3f86 100644 --- a/src/main/resources/test_pet.js +++ b/src/main/resources/test_pet.js @@ -19,6 +19,7 @@ let randomCount = $.isNode() ? 20 : 5; message += "[通知] 动动萌宠 \n\n --- \n\n" for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { + await $.wait(Math.floor(Math.random() * (300000) + 5000)); cookie = cookiesArr[i]; $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]) $.index = i + 1; diff --git a/src/main/resources/test_speed_red.js b/src/main/resources/test_speed_red.js index db40219..cb2d7bb 100644 --- a/src/main/resources/test_speed_red.js +++ b/src/main/resources/test_speed_red.js @@ -27,7 +27,8 @@ $.linkIds=["9wdf1YTT2L59Vr-meKskLA"]; that.log("当前linkId:"+$.linkId); for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { - cookie = cookiesArr[i]; +await $.wait(Math.floor(Math.random() * (1200000) + 5000)); + cookie = cookiesArr[i]; $.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1]) diff --git a/src/main/resources/test_speed_sign.js b/src/main/resources/test_speed_sign.js index 310f017..8ca99eb 100644 --- a/src/main/resources/test_speed_sign.js +++ b/src/main/resources/test_speed_sign.js @@ -41,6 +41,7 @@ const JD_API_HOST = 'https://api.m.jd.com/', actCode = 'visa-card-001'; message += "[通知] 极速签到挣金币 \n\n --- \n\n" for (let i = 0; i < cookiesArr.length; i++) { if (cookiesArr[i]) { + await $.wait(Math.floor(Math.random() * (1200000) + 5000)); cookie = cookiesArr[i]; $.UserName = decodeURIComponent(cookie.match(/pt_pin=(.+?);/) && cookie.match(/pt_pin=(.+?);/)[1]) $.index = i + 1; diff --git a/src/main/resources/test_trytryOne.js b/src/main/resources/test_trytryOne.js index bce5679..b4d312e 100644 --- a/src/main/resources/test_trytryOne.js +++ b/src/main/resources/test_trytryOne.js @@ -107,7 +107,7 @@ } for (let i = 0; i < $.cookiesArr.length; i++) { message += "[通知] 随机试用 \n\n --- \n\n" - await $.wait(Math.floor(Math.random() * (10000) + 5000)); + await $.wait(Math.floor(Math.random() * (175000) + 5000)); if ($.cookiesArr[i]) { $.cookie = $.cookiesArr[i]; $.UserName = decodeURIComponent($.cookie.match(/pt_pin=(.+?);/) && $.cookie.match(/pt_pin=(.+?);/)[1])