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(`今日已签到`)