committed by
GitHub
@@ -105,7 +105,9 @@ async function jdBeanHome() {
|
||||
|
||||
function getAuthorShareCode() {
|
||||
return new Promise(resolve => {
|
||||
$.get({url: "https://cdn.jsdelivr.net/gh/shylocks/updateTeam@main/jd_bean_home"}, async (err, resp, data) => {
|
||||
$.get({url: "https://gitee.com/shylocks/updateTeam/raw/main/jd_bean_home",headers:{
|
||||
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
|
||||
}}, async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
} else {
|
||||
|
@@ -11,14 +11,14 @@
|
||||
[task_local]
|
||||
#京喜工厂
|
||||
10 * * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_dreamFactory.js, tag=京喜工厂, enabled=true
|
||||
|
||||
|
||||
================Loon==============
|
||||
[Script]
|
||||
cron "10 * * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_dreamFactory.js,tag=京喜工厂
|
||||
|
||||
|
||||
===============Surge=================
|
||||
京喜工厂 = type=cron,cronexp="10 * * * *",wake-system=1,timeout=20,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_dreamFactory.js
|
||||
|
||||
|
||||
============小火箭=========
|
||||
京喜工厂 = type=cron,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_dreamFactory.js, cronexpr="10 * * * *", timeout=200, enable=true
|
||||
|
||||
@@ -1020,6 +1020,11 @@ async function joinLeaderTuan() {
|
||||
if (!tuanId) continue
|
||||
await JoinTuan(tuanId);
|
||||
}
|
||||
if (!$.tuanIdS) await updateTuanIdsCDN('https://gitee.com/shylocks/updateTeam/raw/main/jd_updateFactoryTuanId.json');
|
||||
for (let tuanId of $.tuanIdS.tuanIds) {
|
||||
if (!tuanId) continue
|
||||
await JoinTuan(tuanId);
|
||||
}
|
||||
}
|
||||
function JoinTuan(tuanId) {
|
||||
return new Promise((resolve) => {
|
||||
@@ -1191,7 +1196,10 @@ function updateTuanIds(url = 'https://raw.githubusercontent.com/lxk0301/updateTe
|
||||
}
|
||||
function updateTuanIdsCDN(url = 'https://raw.fastgit.org/lxk0301/updateTeam/master/jd_updateFactoryTuanId.json') {
|
||||
return new Promise(async resolve => {
|
||||
$.get({url}, (err, resp, data) => {
|
||||
$.get({url,
|
||||
headers:{
|
||||
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
|
||||
}}, (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${JSON.stringify(err)}`)
|
||||
|
@@ -166,7 +166,7 @@ function receiveRedRain() {
|
||||
function taskPostUrl(function_id, body = {}) {
|
||||
return {
|
||||
url: `https://api.m.jd.com/client.action?functionId=${function_id}`,
|
||||
body: 'area=12_904_908_57903&body=%7B%22liveId%22%3A%222997252%22%7D&build=167408&client=apple&clientVersion=9.2.0&d_brand=apple&d_model=iPhone10%2C2&eid=eidIF3CF0112RTIyQTVGQTEtRDVCQy00Qg%3D%3D6HAJa9%2B/4Vedgo62xKQRoAb47%2Bpyu1EQs/6971aUvk0BQAsZLyQAYeid%2BPgbJ9BQoY1RFtkLCLP5OMqU&isBackground=N&joycious=194&lang=zh_CN&networkType=wifi&networklibtype=JDNetworkBaseAF&openudid=53f4d9c70c1c81f1c8769d2fe2fef0190a3f60d2&osVersion=14.2&partner=TF&rfs=0000&scope=01&screen=1242%2A2208&sign=706f847a6252a4fe03869b2901bb0815&st=1607643593651&sv=110&uts=0f31TVRjBSsDGINmdElmZlgBxMZQifcxhB/BdpQKugK3pigFDsPY3x%2BIXMm0vOlDa%2BujRn1irmu%2BjbgWg0C%2B9Qd9NZvImI0ZQc/fN8EoflUT3Sb6VQm0WwdM77kwyb56x3lxaqFyeh3r1KEOHCier47iIpyuyvVQVG2KbTKocIo0CS9xpYtzkQr1dLgceiIho7GvOrMiBQ%2BtyUe/1wcqtg%3D%3D&uuid=hjudwgohxzVu96krv/T6Hg%3D%3D',
|
||||
body: 'area=12_904_908_57903&body=%7B%22liveId%22%3A%223008955%22%7D&build=167454&client=apple&clientVersion=9.3.0&d_brand=apple&d_model=iPhone10%2C2&eid=eidIF3CF0112RTIyQTVGQTEtRDVCQy00Qg%3D%3D6HAJa9%2B/4Vedgo62xKQRoAb47%2Bpyu1EQs/6971aUvk0BQAsZLyQAYeid%2BPgbJ9BQoY1RFtkLCLP5OMqU&isBackground=N&joycious=194&lang=zh_CN&networkType=wifi&networklibtype=JDNetworkBaseAF&openudid=53f4d9c70c1c81f1c8769d2fe2fef0190a3f60d2&osVersion=14.2&partner=apple&rfs=0000&scope=01&screen=1242%2A2208&sign=84a8772e9514dbb656a9380a6aebe89f&st=1607702502921&sv=100&uts=0f31TVRjBSvsWkFfTKQ4BP2gCulJKdkkzdua/T3WharHW3uKzIyZUGDGVuaLMDsU1giMbDTZJekY7lE5Qrru6H7a3I8CGFQ%2Br5QYZwgXCHBigChRD//oGdcd4WB0sfq6bWBzI8FjqbHJffT0ttGiNEy6zqimtHZUV9DD6tpJTTC%2BZrtSFC17giE/EByWeNUEOw0jYdGaJ27M9I7O2U7oXw%3D%3D&uuid=hjudwgohxzVu96krv/T6Hg%3D%3D&wifiBssid=null',
|
||||
headers: {
|
||||
'Host': 'api.m.jd.com',
|
||||
'content-type': 'application/x-www-form-urlencoded',
|
||||
|
Reference in New Issue
Block a user