From 7d7c1a70d0c27043789c63d9776deea8bf83945a Mon Sep 17 00:00:00 2001 From: KingRan Date: Sun, 20 Feb 2022 13:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_fruit_friend.js | 6 ++++++ jd_fruit_help.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/jd_fruit_friend.js b/jd_fruit_friend.js index 24315cc..0b8bca4 100644 --- a/jd_fruit_friend.js +++ b/jd_fruit_friend.js @@ -21,6 +21,9 @@ cron "10 5,17 * * *" script-path=jd_fruit_friend.js,tag=东东农场好友删减 =========================小火箭=========================== 东东农场好友删减奖励 = type=cron,script-path=jd_fruit_friend.js, cronexpr="10 5,17 * * *", timeout=3600, enable=true +每号间隔(毫秒),默认0毫秒(0分钟) +export fruit_sleep=20000 + */ const $ = new Env('东东农场好友删减奖励'); let cookiesArr = [], cookie = '', isBox = false, notify,allMessage = ''; @@ -88,6 +91,9 @@ let llhelp=true; $.retry = 0; await jdFruit(); } + if ($.isNode()) { + process.env.fruit_sleep ? await $.wait(Number(process.env.fruit_sleep)) : '' + } } if ($.isNode() && allMessage && $.ctrTemp) { await notify.sendNotify(`${$.name}`, `${allMessage}`) diff --git a/jd_fruit_help.js b/jd_fruit_help.js index 50167e5..6bdbdb1 100644 --- a/jd_fruit_help.js +++ b/jd_fruit_help.js @@ -23,6 +23,9 @@ cron "20 4,16 * * *" script-path=jd_fruit_help.js,tag=东东农场内部互助 export DO_TEN_WATER_AGAIN="" 默认再次浇水 +每号间隔(毫秒),默认0毫秒(0分钟) +export fruit_sleep=20000 + */ const $ = new Env('东东农场内部水滴互助'); let cookiesArr = [], @@ -107,6 +110,9 @@ let llhelp=true; $.retry = 0; await jdFruit(); } + if ($.isNode()) { + process.env.fruit_sleep ? await $.wait(Number(process.env.fruit_sleep)) : '' + } } if ($.isNode() && allMessage && $.ctrTemp) { await notify.sendNotify(`${$.name}`, `${allMessage}`)