mirror of https://github.com/KingRan/KR.git
parent
0c350f8982
commit
1e7ee53a03
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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(); //再次浇水
|
||||
|
|
Loading…
Reference in New Issue