KingRan 2022-02-26 17:44:50 +08:00
parent b16a5d48b9
commit aca01774ca
1 changed files with 7 additions and 2 deletions

View File

@ -29,7 +29,7 @@
const $ = new Env('东东电竞经理');
let cookiesArr = [], cookie = '', isBox = false, notify, newShareCodes, allMessage = '';
let tasks = [], shareCodes = [], first = true;
let lnrun = 0;
!(async () => {
await requireConfig();
if (!cookiesArr[0]) {
@ -65,8 +65,13 @@ let tasks = [], shareCodes = [], first = true;
continue
await $.wait(1000);
lnrun++;
await main();
if (lnrun == 10) {
console.log(`\n【访问接口次数达到10次休息半分钟.....】\n`);
await $.wait(30 * 1000);
lnrun = 0;
}
}
}
if ($.isNode() && allMessage && $.ctrTemp) {