docker添加京东家庭号

This commit is contained in:
lxk0301
2021-01-13 16:10:50 +08:00
parent bb63f32655
commit 647a1c667d
3 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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)}`)