docker添加京东家庭号
This commit is contained in:
@@ -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
|
||||
|
@@ -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]
|
||||
|
@@ -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)}`)
|
||||
|
Reference in New Issue
Block a user