From 46ff9623945acb9e8a7fda648eaa0ff296b63853 Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Fri, 27 Nov 2020 10:22:15 +0800 Subject: [PATCH] =?UTF-8?q?docker=E6=96=B9=E6=B3=95=E4=B8=80=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8D=81=E5=85=83=E8=A1=97=EF=BC=8CLoon=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E9=85=8D=E7=BD=AE=E6=96=B0=E5=A2=9E=E5=8D=81=E5=85=83?= =?UTF-8?q?=E8=A1=97=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Loon/lxk0301_LoonTask.conf | 3 +++ docker/crontab_list.sh | 4 +++- docker/crontab_list_ts.sh | 4 +++- jd_syj.js | 7 +++---- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Loon/lxk0301_LoonTask.conf b/Loon/lxk0301_LoonTask.conf index e6014ee2..b3d8a571 100644 --- a/Loon/lxk0301_LoonTask.conf +++ b/Loon/lxk0301_LoonTask.conf @@ -63,6 +63,9 @@ cron "2 9 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_script #点点券 cron "20 0,20 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_necklace.js, tag=点点券 +#十元街 +cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js, tag=十元街 + #东东小窝 cron "16 0 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_small_home.js, tag=东东小窝 diff --git a/docker/crontab_list.sh b/docker/crontab_list.sh index 912f805d..9a845d93 100644 --- a/docker/crontab_list.sh +++ b/docker/crontab_list.sh @@ -60,4 +60,6 @@ # 东东小窝 16 6 * * * node /scripts/jd_small_home.js >> /scripts/logs/jd_small_home.log 2>&1 # 东东工厂 -36 * * * * node /scripts/jd_jdfactory.js >> /scripts/logs/jd_jdfactory.log 2>&1 \ No newline at end of file +36 * * * * node /scripts/jd_jdfactory.js >> /scripts/logs/jd_jdfactory.log 2>&1 +#十元街 +36 8 * * * node /scripts/jd_syj.js >> /scripts/logs/jd_syj.log 2>&1 \ No newline at end of file diff --git a/docker/crontab_list_ts.sh b/docker/crontab_list_ts.sh index 0a94f8c2..d525d30a 100644 --- a/docker/crontab_list_ts.sh +++ b/docker/crontab_list_ts.sh @@ -60,4 +60,6 @@ # 东东小窝 16 6 * * * node /scripts/jd_small_home.js |ts >> /scripts/logs/jd_small_home.log 2>&1 # 东东工厂 -36 * * * * node /scripts/jd_jdfactory.js |ts >> /scripts/logs/jd_jdfactory.log 2>&1 \ No newline at end of file +36 * * * * node /scripts/jd_jdfactory.js |ts >> /scripts/logs/jd_jdfactory.log 2>&1 +#十元街 +36 8 * * * node /scripts/jd_syj.js |ts >> /scripts/logs/jd_syj.log 2>&1 \ No newline at end of file diff --git a/jd_syj.js b/jd_syj.js index 1c6e3ef0..18fc684b 100644 --- a/jd_syj.js +++ b/jd_syj.js @@ -17,7 +17,7 @@ ================Loon============== [Script] -cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js,tag=十元街 +cron "10 7 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js, tag=十元街 ===============Surge================= 十元街 = type=cron,cronexp="10 7 * * *",wake-system=1,timeout=20,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_syj.js @@ -96,7 +96,6 @@ function userSignIn() { console.log(`${$.name} API请求失败,请检查网路重试`) } else { if (safeGet(data)) { - console.log(data); data = JSON.parse(data); if (data.code === 0) { console.log(`今日签到成功`) @@ -104,8 +103,8 @@ function userSignIn() { let { alreadySignDays, beanTotalNum, todayPrize, eachDayPrize } = data.data; message += `【第${alreadySignDays}日签到】成功,获得${todayPrize.beanAmount}京豆 🐶\n`; if (alreadySignDays === 7) alreadySignDays = 0; - message += `【明日签到成功】可获得${eachDayPrize[alreadySignDays].beanAmount}京豆 🐶\n`; - message += `【签到累计获得】${beanTotalNum}京豆 🐶\n`; + message += `【明日签到】可获得${eachDayPrize[alreadySignDays].beanAmount}京豆 🐶\n`; + message += `【累计获得】${beanTotalNum}京豆 🐶\n`; } } else if (data.code === 81) { console.log(`今日已签到`)