KingRan 2022-02-20 13:24:53 +08:00
parent 50ffad3dcc
commit 7d7c1a70d0
2 changed files with 12 additions and 0 deletions

View File

@ -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 东东农场好友删减奖励 = 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('东东农场好友删减奖励'); const $ = new Env('东东农场好友删减奖励');
let cookiesArr = [], cookie = '', isBox = false, notify,allMessage = ''; let cookiesArr = [], cookie = '', isBox = false, notify,allMessage = '';
@ -88,6 +91,9 @@ let llhelp=true;
$.retry = 0; $.retry = 0;
await jdFruit(); await jdFruit();
} }
if ($.isNode()) {
process.env.fruit_sleep ? await $.wait(Number(process.env.fruit_sleep)) : ''
}
} }
if ($.isNode() && allMessage && $.ctrTemp) { if ($.isNode() && allMessage && $.ctrTemp) {
await notify.sendNotify(`${$.name}`, `${allMessage}`) await notify.sendNotify(`${$.name}`, `${allMessage}`)

View File

@ -23,6 +23,9 @@ cron "20 4,16 * * *" script-path=jd_fruit_help.js,tag=东东农场内部互助
export DO_TEN_WATER_AGAIN="" 默认再次浇水 export DO_TEN_WATER_AGAIN="" 默认再次浇水
每号间隔毫秒默认0毫秒0分钟
export fruit_sleep=20000
*/ */
const $ = new Env('东东农场内部水滴互助'); const $ = new Env('东东农场内部水滴互助');
let cookiesArr = [], let cookiesArr = [],
@ -107,6 +110,9 @@ let llhelp=true;
$.retry = 0; $.retry = 0;
await jdFruit(); await jdFruit();
} }
if ($.isNode()) {
process.env.fruit_sleep ? await $.wait(Number(process.env.fruit_sleep)) : ''
}
} }
if ($.isNode() && allMessage && $.ctrTemp) { if ($.isNode() && allMessage && $.ctrTemp) {
await notify.sendNotify(`${$.name}`, `${allMessage}`) await notify.sendNotify(`${$.name}`, `${allMessage}`)