docker方法一新增十元街,Loon订阅配置新增十元街脚本

This commit is contained in:
lxk0301
2020-11-27 10:22:15 +08:00
parent 1bde6c832a
commit 3fb95f242d
4 changed files with 12 additions and 6 deletions

View File

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