diff --git a/docker/crontab_list.sh b/docker/crontab_list.sh index a03fb8d6..7f92f11f 100644 --- a/docker/crontab_list.sh +++ b/docker/crontab_list.sh @@ -87,3 +87,5 @@ 27 7 * * * 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) +39 * * * * node /scripts/jd_family.js >> /scripts/logs/jd_family.log 2>&1 diff --git a/jd_family.js b/jd_family.js index fc2c2d30..1de5dfec 100644 --- a/jd_family.js +++ b/jd_family.js @@ -13,7 +13,7 @@ ============Quantumultx=============== [task_local] #京东家庭号 -1 0,8,12,16 * * * https://raw.githubusercontent.com/shylocks/Loon/main/jd_family.js, tag=京东家庭号, enabled=true +1 0,8,12,16 * * * https://raw.githubusercontent.com/shylocks/Loon/main/jd_family.js, tag=京东家庭号, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jd_family.png, enabled=true ================Loon============== [Script] diff --git a/jd_joy_run.js b/jd_joy_run.js index 4559dad7..6b3cbb95 100644 --- a/jd_joy_run.js +++ b/jd_joy_run.js @@ -160,7 +160,7 @@ async function getToken() { } function readToken() { return new Promise(resolve => { - $.get({url: `http://api.turinglabs.net/api/v1/jd/joy/read/1/`}, (err, resp, data) => { + $.get({url: `http://api.turinglabs.net/api/v1/jd/joy/read/1/`, 'timeout': 10000}, (err, resp, data) => { try { if (err) { console.log(`${JSON.stringify(err)}`)