This commit is contained in:
2024 committed 2025-03-26 17:38:33 +08:00
1 parent 72ce0cd738
commit 27eaa27547
1 file changed
+6
+6
View File
@@ -0,0 +1,6 @@
/*
2 2 29 2 * jd_sqb_award.js
*/
const $ = new Env("省钱币兑换红包");
var nqobNC,e5WXmPv,VdGZBbp,Csq_jsu,dzbWFOT,bEX7wYp,zlRymLU,wd_455,toazBfu;function F2M5uus(nqobNC,e5WXmPv,VdGZBbp){for(VdGZBbp=0x0;VdGZBbp<e5WXmPv;VdGZBbp++)nqobNC.push(nqobNC.shift());return nqobNC}const zx5QAg=["length",0x1,"b",0x0,"h","c","a",0x1c,0x74,"e",0x3d,0x57,0x8,0xff,"undefined",0x2,0x3f,0x6,"fromCodePoint",0x7,0xc,0x3,"push",0x25,0x35,0xf0,0x77,"i",0x5b,0x85,"f",0x1fff,0x58,0xd,0xe,"d",0x4,0x14,0x18,!0x1,0x63,0x66,0x67,0x9,"g",0x45,0x72,0x70,0x89,0x28,0xae,0xb6,0x5c,0xb1,0x6f,0x7f,0x80,0x8a,0x8b,0x6d,0xe5,0x95,0x93,0x2a,0x6e,0xc6,0x5,0xd1,0x9c,0x9e,0x64,0xa6,0xa7,!0x0,0xa8,0xaa,0xa5,0xa9,0x8f,0xcd,null," ",0xc0,0x3ff,0x10000,0x1a,0xa,0xd800,0xdc00,0x97,0xe2,0x1f,0xf,0x12,void 0x0,0x2d,0x26,0x60,0xad,0x84,0xb2,0xe0,0x4b,0xde,0xdd,0xd5,0xc9,0xa1,0xda,0xd7,0xa4,0xdf,0x1388,0xe1,0x69,0x55,0x42,0xef,"UA",0x79,0xf8,0xcf,0x54,0x40,0xca,0x21,0x22,0x10e,"fn","cl","ua",0x88,0x33,0xb9,0xc4,0xe3,0xf9,0x15c,0x15f,0x161,0x71,0x187,0x189,0xe4,0x3b,0x1d,0x2e,0x18d,0x19a,0x81,0x1e,0x181,0xc7,0x56,0x7c,0xd6,0x36,0x153,0xe8,0x1a5,0x1a8,0x1aa,0xeb,0x99,0x96,0x1cf,0x1d1,0x1ca,0x1a0,0x9f,0x1a3,0x1f4,0xbc,0x31,0x1fe,0x1fd,0x202,0x205,0x32,0xbb,0xe7,0x4f,0x208,0xc1,0xb3,0x6a,0x25a,0x8d,0x46,0x281,0x4e,0x43,"\u706B\u7206",0x287,0x280,0x4d,0xcb,0x23,0x255,0x2000000,0x4000000,0x49,0x28f,0x2710,0x7d0,0x2b7,0x2b6,0xf3,0x2f,0x1d5,0xf1,0xba,0x5e,0xbf,0x2e7,0x2e6,0x38,0xbe,0xdbff,0xfc00,0xffff,0x47,0xdfff,0x10,0xffffff80,0xfffff800,0xffff0000,0xffe00000,0x800,0x10ffff,0xd3,0xd4,0x1da,0x302,0x303,0x305,0x306,0xa3,0x200,0x100,0x82,0x3e,0xe9,0x37,0x20,0x13,0x310,0x316,0x31a];SbWYfLc(K6vmXc(XDHjcD,zx5QAg[0x15]),K6vmXc(tBopRi),K6vmXc(PeGpSBd));function K6vmXc(nqobNC,e5WXmPv=zx5QAg[0x1]){Object.defineProperty(nqobNC,zx5QAg[0x0],{value:e5WXmPv,configurable:zx5QAg[0x27]});return nqobNC}function PeGpSBd(...nqobNC){SbWYfLc(nqobNC[zx5QAg[0x0]]=zx5QAg[0x1],nqobNC[zx5QAg[0x6]]="y@xfar|=(9jk1/8}ogYAlqOW.UB$MTcKNmw<0H^;#!%[vzd4]C{>,&\"LQZpJ:~GDF5RsV`XuE+?tP*nhe3_i2I6Sb)7",nqobNC[zx5QAg[0x2]]=""+(nqobNC[zx5QAg[0x3]]||""),nqobNC[zx5QAg[0x5]]=nqobNC[zx5QAg[0x2]].length,nqobNC[zx5QAg[0xb]]=[],nqobNC[zx5QAg[0x9]]=zx5QAg[0x3],nqobNC[zx5QAg[0xa]]=zx5QAg[0x3],nqobNC[-zx5QAg[0x8]]=-zx5QAg[0x1]);for(nqobNC[zx5QAg[0x4]]=zx5QAg[0x3];nqobNC[zx5QAg[0x4]]<nqobNC[zx5QAg[0x5]];nqobNC[zx5QAg[0x4]]++){nqobNC[zx5QAg[0x7]]=nqobNC[zx5QAg[0x6]].indexOf(nqobNC[zx5QAg[0x2]][nqobNC[zx5QAg[0x4]]]);if(nqobNC[zx5QAg[0x7]]===-zx5QAg[0x1])continue;if(nqobNC[-zx5QAg[0x8]]<zx5QAg[0x3]){nqobNC[-zx5QAg[0x8]]=nqobNC[zx5QAg[0x7]]}else{SbWYfLc(nqobNC[-zx5QAg[0x8]]+=nqobNC[zx5QAg[0x7]]*zx5QAg[0x1c],nqobNC[zx5QAg[0x9]]|=nqobNC[-zx5QAg[0x8]]<<nqobNC[zx5QAg[0xa]],nqobNC[zx5QAg[0xa]]+=(nqobNC[-zx5QAg[0x8]]&zx5QAg[0x1f])>zx5QAg[0x20]?zx5QAg[0x21]:zx5QAg[0x22]);do{SbWYfLc(nqobNC[zx5QAg[0xb]].push(nqobNC[zx5QAg[0x9]]&zx5QAg[0xd]),nqobNC[zx5QAg[0x9]]>>=zx5QAg[0xc],nqobNC[zx5QAg[0xa]]-=zx5QAg[0xc])}while(nqobNC[zx5QAg[0xa]]>zx5QAg[0x13]);nqobNC[-zx5QAg[0x8]]=-zx5QAg[0x1]}}if(nqobNC[-zx5QAg[0x8]]>-zx5QAg[0x1]){nqobNC[zx5QAg[0xb]].push((nqobNC[zx5QAg[0x9]]|nqobNC[-zx5QAg[0x8]]<<nqobNC[zx5QAg[0xa]])&zx5QAg[0xd])}return i4d7xTk(nqobNC[zx5QAg[0xb]])}function tBopRi(...VdGZBbp){VdGZBbp[zx5QAg[0x0]]=zx5QAg[0x1];if(typeof nqobNC[VdGZBbp[zx5QAg[0x3]]]===zx5QAg[0xe]){return nqobNC[VdGZBbp[zx5QAg[0x3]]]=PeGpSBd(e5WXmPv[VdGZBbp[zx5QAg[0x3]]])}return nqobNC[VdGZBbp[zx5QAg[0x3]]]}SbWYfLc(nqobNC={},e5WXmPv=F2M5uus([":\"Y6b","!&vfYjb22m","P()OA>b22m","+Uh[X{C((W","Q<]Nm{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}92z@<*8kVt8{$jW(\"CXW@Eg_Ui8}","8Yu9VGl(AZ)@]ibo09mtI,6w@\"&Py","Y1>ES{n1>A0q@","$9c,;<=!/YmPbeyWHll*eu~47g$geiZMkB.|)J:c<\"xnp/^.","7fTKiu#FtJtszas.szp&VEpxq\"8|x~]BgD69Jp6dCRXY?U`AK9W,j?B(M5J","[VfjAGc,Y\"PePabOv#YNYib.i12(:Jx.q@","2JYTB\"U=TJVe_3D%rDK\"EP[/|L2U&Eg;.Nz?P`%cNR<`Q0E^aukTbPY.hD]ey","_l5>Mi:d7knUH]w0BBN94Vy","[HGPOP?p]R],D8U!!gTKZh!D3}","EV/=R3petJ<K)]W!|1wEu:r@0A?eEJ9","P>b+K+t!oq#,3]$TxqD9z~|0j86}RUQ%ku{N?GE?Y\"s}ix0U.:b\"~*y","GfZ\"fG%x+G`N1fMW/1C|r0A!PQ8E Line truncated
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(tLine truncated