jdpro/jd_wechat_ttlzq.js

7 lines
117 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
小程序-超级省
35 4,16 * * * jd_wechat_ttlzq.js
*/
const $ = new Env("小程序超级省");
2024-10-11 08:07:29 +00:00
function FtCz_aG(){}var fVAYot=Object['defineProperty'],rMltsw,gB6T4CO,LeNE__M,QbXZzDY,KlOYjpN,onw1a_,gZ2J6SK,uLOyxz,tu1zBVd,ioYdMZw,pAjzEE,bev5tP,TxpUgE,x2aZyoG,CI7hkBS;function bQWScN(FtCz_aG){return rMltsw[FtCz_aG>-0x62?FtCz_aG>0xc5?FtCz_aG-0x5e:FtCz_aG>-0x62?FtCz_aG>-0x62?FtCz_aG+0x61:FtCz_aG-0x43:FtCz_aG-0x21:FtCz_aG+0x4b]}rMltsw=CX6i5Q();function zLoOMEg(FtCz_aG,fVAYot){var LeNE__M=Y8Tzkn(FtCz_aG=>{return rMltsw[FtCz_aG>0x10?FtCz_aG-0x11:FtCz_aG-0x3d]},0x1);return gB6T4CO.call(null,FtCz_aG,bQWScN(-0x61),{value:fVAYot,configurable:LeNE__M(0x87)})}FtCz_aG(gB6T4CO=Object.defineProperty,LeNE__M=zLoOMEg(Y8Tzkn((...fVAYot)=>{var gB6T4CO=Y8Tzkn(fVAYot=>{return rMltsw[fVAYot>0x3d?fVAYot>0x164?fVAYot+0x1d:fVAYot<0x3d?fVAYot-0x4d:fVAYot-0x3e:fVAYot-0x38]},0x1);FtCz_aG(fVAYot[gB6T4CO(0x3e)]=bQWScN(-0x60),fVAYot.igU9htZ=-0x18);if(fVAYot.igU9htZ>0x5d){return fVAYot[0x60]}else{var LeNE__M=Y8Tzkn(fVAYot=>{return rMltsw[fVAYot>0x11a?fVAYot+0x3f:fVAYot+0xc]},0x1);return fVAYot[LeNE__M(-0xa)](fVAYot[0x0]())}}),bQWScN(-0x60))(XHOgle,FeUUPh));var RShkmQ0=[],CjXXJS3=[fB2MJjO(0x0),fB2MJjO(bQWScN(-0x5f)),fB2MJjO(0x2),fB2MJjO(bQWScN(-0x1f)),fB2MJjO(bQWScN(-0x3)),fB2MJjO(bQWScN(-0x5)),fB2MJjO(bQWScN(-0x16)),fB2MJjO(0x7),fB2MJjO(bQWScN(-0xa)),fB2MJjO(bQWScN(-0xc)),fB2MJjO(bQWScN(0x30)),fB2MJjO(bQWScN(0x4)),fB2MJjO(bQWScN(-0x5c)),fB2MJjO(0xd),fB2MJjO(bQWScN(-0x6)),fB2MJjO(bQWScN(0x3)),fB2MJjO(0x10),fB2MJjO(bQWScN(-0x11)),fB2MJjO(bQWScN(-0x5b)),fB2MJjO(bQWScN(-0x5e)),fB2MJjO(bQWScN(0x6)),fB2MJjO(bQWScN(-0xf)),fB2MJjO(bQWScN(0xb4)),fB2MJjO(bQWScN(0x7)),fB2MJjO(0x18),fB2MJjO(bQWScN(0x9)),fB2MJjO(0xe),fB2MJjO(0x1a),fB2MJjO(0x1b),fB2MJjO(0x1c),fB2MJjO(0x12),fB2MJjO(0x1d),fB2MJjO(bQWScN(-0x5d)),fB2MJjO(0x1f),fB2MJjO(bQWScN(-0x21)),fB2MJjO(0x21),fB2MJjO(bQWScN(-0x5e)),fB2MJjO(0x22),'uvM8vD)|]*C,{d8g%G7:ODN',fB2MJjO(bQWScN(-0x20)),fB2MJjO(0x24),fB2MJjO(bQWScN(0x19)),fB2MJjO(bQWScN(0x0)),'z|(HbW<U','!xT_|@0NN}',fB2MJjO(bQWScN(0x16)),fB2MJjO(bQWScN(-0x4a)),fB2MJjO(bQWScN(0x17)),fB2MJjO(0x2a),fB2MJjO(bQWScN(-0x2)),fB2MJjO(0x2c),fB2MJjO(bQWScN(-0x1b)),fB2MJjO(0x21),';g,[}W7Y<9_JRM":_8=>g6JV{CPeC|c3q_MSDH~XO`"k<1V~x<pxj',fB2MJjO(bQWScN(0x20)),fB2MJjO(bQWScN(0x1d)),fB2MJjO(0x30),fB2MJjO(bQWScN(-0x5e)),fB2MJjO(bQWScN(-0x5d)),fB2MJjO(bQWScN(0x21)),fB2MJjO(0x32),fB2MJjO(0x33),fB2MJjO(bQWScN(0x45)),fB2MJjO(bQWScN(-0x4b)),fB2MJjO(0x13),fB2MJjO(0x36),fB2MJjO(bQWScN(-0x3d)),fB2MJjO(bQWScN(-0x5c)),fB2MJjO(0x38),fB2MJjO(bQWScN(0xb0)),fB2MJjO(0x3a),fB2MJjO(bQWScN(0x46)),fB2MJjO(bQWScN(0x26)),fB2MJjO(bQWScN(0x29)),fB2MJjO(bQWScN(-0x5b)),fB2MJjO(bQWScN(-0x5e)),fB2MJjO(bQWScN(0x2a)),fB2MJjO(bQWScN(-0x18)),fB2MJjO(0x40),fB2MJjO(0x41),fB2MJjO(bQWScN(-0x5e)),fB2MJjO(0x42),fB2MJjO(bQWScN(0x27)),fB2MJjO(0x44),fB2MJjO(0x13),'#/7c|DJoBnXN]%$~FH',fB2MJjO(0x45),fB2MJjO(0x46),fB2MJjO(0x12),fB2MJjO(0x47),fB2MJjO(0x48),fB2MJjO(0x49),fB2MJjO(bQWScN(-0x5a)),fB2MJjO(bQWScN(-0x49)),fB2MJjO(bQWScN(0x2d)),fB2MJjO(bQWScN(0x2e)),fB2MJjO(bQWScN(0x2f)),'uytp|4:V',fB2MJjO(0x4f),fB2MJjO(bQWScN(0x31)),fB2MJjO(bQWScN(-0x22)),fB2MJjO(bQWScN(0x1)),fB2MJjO(bQWScN(0x50)),fB2MJjO(0x54),fB2MJjO(0x55),fB2MJjO(0x56),fB2MJjO(bQWScN(-0x5a)),fB2MJjO(0x57),fB2MJjO(0x4c),fB2MJjO(bQWScN(0x10)),fB2MJjO(0x53),fB2MJjO(0x59),fB2MJjO(bQWScN(-0x59)),fB2MJjO(bQWScN(0x33)),fB2MJjO(0x47),fB2MJjO(bQWScN(0x25)),fB2MJjO(bQWScN(-0x5a)),fB2MJjO(bQWScN(0x28)),fB2MJjO(0x5c),fB2MJjO(bQWScN(0x3c)),fB2MJjO(0x5e),fB2MJjO(bQWScN(-0x59)),fB2MJjO(bQWScN(-0x5b)),fB2MJjO(bQWScN(-0x58)),fB2MJjO(bQWScN(-0x3b)),fB2MJjO(bQWScN(-0x57)),fB2MJjO(0x62),fB2MJjO(0x63),fB2MJjO(0x64),fB2MJjO(0x65),fB2MJjO(bQWScN(-0x4e)),fB2MJjO(0x67),fB2MJjO(0x68),fB2MJjO(0x69),fB2MJjO(bQWScN(-0x4c)),fB2MJjO(bQWScN(-0x56)),fB2MJjO(0x6c),fB2MJjO(bQWScN(-0x55)),fB2MJjO(0x6e),fB2MJjO(0x6f),fB2MJjO(0x70),fB2MJjO(0x71),fB2MJjO(bQWScN(-0x39)),bQWScN(-0x25),fB2MJjO(0x73),'dIsPD|#g',fB2MJjO(0x74),bQWScN(-0x47),bQWScN(-0x46),fB2MJjO(0x75),fB2MJjO(bQWScN(-0x54)),fB2MJjO(0x77),fB2MJjO(0x78),fB2MJjO(bQWScN(-0x53)),'Y|]:W=6WT>XidfUZO8|dp',fB2MJjO(bQWScN(-0x43)),fB2MJjO(bQWScN(0xd)),fB2MJjO(bQWScN(-0x42)),fB2MJjO(0x7d),fB2MJjO(0x7e),fB2MJjO(bQWScN(-0x19)),fB2MJjO(bQWScN(-0
2024-06-28 07:47:44 +00:00
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); 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((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } 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.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.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) 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(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d