mirror of https://github.com/KingRan/KR.git
parent
0a1b518c34
commit
f9d1096713
|
@ -117,8 +117,8 @@ console.log(`共${cookiesArr.length}个京东账号\n`);
|
||||||
option = {};
|
option = {};
|
||||||
lnrun++;
|
lnrun++;
|
||||||
await jdPet();
|
await jdPet();
|
||||||
if (lnrun == 5) {
|
if (lnrun == 3) {
|
||||||
console.log(`\n【访问接口次数达到5次,休息一分钟.....】\n`);
|
console.log(`\n【访问接口次数达到3次,休息一分钟.....】\n`);
|
||||||
await $.wait(60 * 1000);
|
await $.wait(60 * 1000);
|
||||||
lnrun = 0;
|
lnrun = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue