KingRan 2022-02-25 21:42:55 +08:00
parent 0c350f8982
commit 1e7ee53a03
2 changed files with 8 additions and 2 deletions

View File

@ -144,8 +144,8 @@ let llgetshare = false;
$.retry = 0;
lnrun++;
await jdFruit();
if (lnrun == 5) {
console.log(`\n【访问接口次数达到5次,休息一分钟.....】\n`);
if (lnrun == 3) {
console.log(`\n【访问接口次数达到3次,休息一分钟.....】\n`);
await $.wait(60 * 1000);
lnrun = 0;
}

View File

@ -132,6 +132,12 @@ async function jdFruit() {
await getTenWaterAward(); //领取10浇水奖励
await getWaterFriendGotAward(); //领取为2好友浇水奖励
await duck();
lnrun++;
if (lnrun == 10) {
console.log(`\n访问接口次数达到10次休息30秒.....\n`);
await $.wait(30 * 1000);
lnrun = 0;
}
if (!process.env.DO_TEN_WATER_AGAIN) {
console.log('执行再次浇水')
await doTenWaterAgain(); //再次浇水