jdpro/jd_deliverySign_sign.js

7 lines
107 KiB
JavaScript
Raw Normal View History

2024-10-24 13:17:23 +00:00
/*
2024-11-22 12:12:28 +00:00
41 0,14 * * * jd_deliverySign_sign.js
2024-10-24 13:17:23 +00:00
*/
const $ = new Env('天天领豆');
2024-11-22 12:12:28 +00:00
function Pfo3dxU(){}var GGIIfF7=Object['defineProperty'],mfsaOST,IRZdYC7,yS3shPU,bk3q8p,ZyFEqHH,W8QuNH,SsTJj2,SI_csS,bWVmQV,ExPY56,vwG5Db,ImgqoN8,RVuo5KP,qhxvl5,atS9T97,E4b5jor;function RMl0DU(Pfo3dxU){return mfsaOST[Pfo3dxU<0x2c?Pfo3dxU+0xc:Pfo3dxU-0x2d]}mfsaOST=mJacj5c();function AZp1fKv(Pfo3dxU,GGIIfF7){var yS3shPU=oxLJiRd(Pfo3dxU=>{return mfsaOST[Pfo3dxU>0x18e?Pfo3dxU-0x43:Pfo3dxU<-0x48?Pfo3dxU+0x44:Pfo3dxU+0x47]},0x1);IRZdYC7(Pfo3dxU,yS3shPU(-0x47),{value:GGIIfF7,configurable:RMl0DU(0xd1)});return Pfo3dxU}Pfo3dxU(IRZdYC7=Object.defineProperty,yS3shPU=AZp1fKv(oxLJiRd((...GGIIfF7)=>{var IRZdYC7=oxLJiRd(GGIIfF7=>{return mfsaOST[GGIIfF7<0x17d?GGIIfF7<-0x59?GGIIfF7-0x1f:GGIIfF7<0x17d?GGIIfF7<-0x59?GGIIfF7+0x10:GGIIfF7+0x58:GGIIfF7+0x16:GGIIfF7-0xb]},0x1);Pfo3dxU(GGIIfF7[IRZdYC7(-0x58)]=IRZdYC7(-0x56),GGIIfF7[RMl0DU(0x2e)]=-IRZdYC7(-0x4e));if(GGIIfF7[IRZdYC7(-0x57)]>GGIIfF7[RMl0DU(0x2e)]+RMl0DU(0x39)){return GGIIfF7[GGIIfF7[RMl0DU(0x2e)]-IRZdYC7(-0x3f)]}else{var yS3shPU=oxLJiRd(GGIIfF7=>{return mfsaOST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PMh(RMl0DU(0x36)),RMl0DU(0x3c),RMl0DU(0x3f),JeqPMh(RMl0DU(0xdf)),JeqPMh(RMl0DU(0x49)),RMl0DU(0x42),JeqPMh(RMl0DU(0x3d)),JeqPMh(RMl0DU(0x166)),JeqPMh(RMl0DU(0x43)),JeqPMh(RMl0DU(0xe1)),JeqPMh(RMl0DU(0x36)),JeqPMh(RMl0DU(0x39)),JeqPMh(RMl0DU(0x3a)),JeqPMh(RMl0DU(0x35)),JeqPMh(RMl0DU(0x3b)),'O|:f@f.E]',JeqPMh(RMl0DU(0xe2)),JeqPMh(RMl0DU(0xe3)),JeqPMh(RMl0DU(0x7a)),JeqPMh(RMl0DU(0xe5)),RMl0DU(0x3c),JeqPMh(RMl0DU(0xed)),JeqPMh(RMl0DU(0x84)),JeqPMh(RMl0DU(0xee)),JeqPMh(RMl0DU(0xef)),JeqPMh(RMl0DU(0x3d)),JeqPMh(RMl0DU(0xf0)),JeqPMh(RMl0DU(0xf1)),JeqPMh(RMl0DU(0xf2)),'..|fIS%t;+P@C8q;s%2_.HqO{~F&mzQ}_?',JeqPMh(RMl0DU(0xf3)),JeqPMh(RMl0DU(0x36)),JeqPMh(RMl0DU(0x4b)),JeqPMh(RMl0DU(0x65)),JeqPMh(RMl0DU(0xf5)),JeqPMh(RMl0DU(0x48)),JeqPMh(RMl0DU(0x67)),JeqPMh(RMl0DU(0x6b)),JeqPMh(RMl0DU(0xf7)),JeqPMh(RMl0DU(0xff)),JeqPMh(RMl0DU(0x101)),JeqPMh(RMl0DU(0x4c)),JeqPMh(RMl0
2024-10-24 13:17:23 +00:00
function Env(o, t) { class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; tr