From 9df88b652b2798ebd3c04099a9eaeec23a82dd0e Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Tue, 23 Feb 2021 08:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=BE=E5=88=B0=E9=A2=86?= =?UTF-8?q?=E7=8E=B0=E9=87=91cron=20=E9=98=B2=E6=AD=A2=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E9=83=A8=E5=88=86=E4=BB=BB=E5=8A=A1=E6=B2=A1?= =?UTF-8?q?=E5=81=9A=E5=AE=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改签到领现金cron 防止运行一次部分任务没做完 --- docker/crontab_list.sh | 2 +- jd_cash.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/crontab_list.sh b/docker/crontab_list.sh index 64e84c30..de37bdd1 100644 --- a/docker/crontab_list.sh +++ b/docker/crontab_list.sh @@ -82,7 +82,7 @@ # 京喜农场 0 9,12,18 * * * node /scripts/jd_jxnc.js >> /scripts/logs/jd_jxnc.log 2>&1 # 签到领现金 -27 7 * * * node /scripts/jd_cash.js >> /scripts/logs/jd_cash.log 2>&1 +27 */4 * * * node /scripts/jd_cash.js >> /scripts/logs/jd_cash.log 2>&1 # 京喜app签到 39 7 * * * node /scripts/jx_sign.js >> /scripts/logs/jx_sign.log 2>&1 # 京东家庭号(暂不知最佳cron) diff --git a/jd_cash.js b/jd_cash.js index 19845ffc..e5c8e2a5 100644 --- a/jd_cash.js +++ b/jd_cash.js @@ -7,17 +7,17 @@ ============Quantumultx=============== [task_local] #签到领现金 -2 0 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js, tag=签到领现金, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true +2 */4 * * * https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js, tag=签到领现金, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true ================Loon============== [Script] -cron "2 0 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js,tag=签到领现金 +cron "2 */4 * * *" script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js,tag=签到领现金 ===============Surge================= -签到领现金 = type=cron,cronexp="2 0 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js +签到领现金 = type=cron,cronexp="2 */4 * * *",wake-system=1,timeout=3600,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js ============小火箭========= -签到领现金 = type=cron,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js, cronexpr="2 0 * * *", timeout=3600, enable=true +签到领现金 = type=cron,script-path=https://gitee.com/lxk0301/jd_scripts/raw/master/jd_cash.js, cronexpr="2 */4 * * *", timeout=3600, enable=true */ const $ = new Env('签到领现金'); const notify = $.isNode() ? require('./sendNotify') : '';