jdpro/jd_fzmz_draw.js

7 lines
102 KiB
JavaScript
Raw Normal View History

2024-10-02 12:37:22 +00:00
/*
25 2 * * * jd_fzmz_draw.js
*/
const $ = new Env('服装美妆抽奖');
function q3FaH8(){}var IOGpw0=Object['defineProperty'],WolBFb,CVjOjGy,S1rTcJJ,rcYLcix,MRI8CV,m5eDoNF,WYrKhh,m9jD5jA,oesyRF,PNd2EC,bg9XfYy,TRiQgCH,qlDL7y4,iXOHOK,QYB8ex,GlkVQn0,_PYbwS,kQQWfD,uePUWw;function yb4qF4f(q3FaH8){return WolBFb[q3FaH8<0x123?q3FaH8-0x6:q3FaH8+0x16]}WolBFb=EbBVt3();function tBoLACr(q3FaH8,IOGpw0){CVjOjGy(q3FaH8,yb4qF4f(0x3b),{value:IOGpw0,configurable:yb4qF4f(0x55)});return q3FaH8}q3FaH8(CVjOjGy=Object.defineProperty,S1rTcJJ=VIo6bVU((q3FaH8,IOGpw0)=>{return IOGpw0(q3FaH8())},0x2)(sfNBWFg,d1U4Es5));var tUIUCT=[],G8MD3D2=[i7GFuR(0x0),i7GFuR(0x1),i7GFuR(yb4qF4f(0x2b)),'/|o:!`FFw',i7GFuR(yb4qF4f(0x2c)),i7GFuR(yb4qF4f(0x30)),i7GFuR(yb4qF4f(0x4e)),i7GFuR(yb4qF4f(0x7)),i7GFuR(0x7),'n9>%=cmW*>Re+|*',i7GFuR(yb4qF4f(0x42)),i7GFuR(0x9),i7GFuR(yb4qF4f(0x3a)),i7GFuR(0xb),i7GFuR(0xc),i7GFuR(0xd),i7GFuR(0xe),i7GFuR(yb4qF4f(0x36)),i7GFuR(yb4qF4f(0x6)),i7GFuR(0x11),i7GFuR(yb4qF4f(0x38)),i7GFuR(0x13),i7GFuR(0x14),i7GFuR(yb4qF4f(0x117)),i7GFuR(0x16),i7GFuR(0x17),i7GFuR(0x18),i7GFuR(0x19),i7GFuR(0x1a),i7GFuR(0x1b),i7GFuR(0x1c),i7GFuR(yb4qF4f(0x9)),i7GFuR(y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FuR(0x50),i7GFuR(yb4qF4f(0xc)),i7GFuR(0x52),i7GFuR(0x53),i7GFuR(yb4qF4f(0x11)),i7GFuR(yb4qF4f(0x20)),i7GFuR(0x56),i7GFuR(0x57),i7GFuR(0x58),i7GFuR(0x59),i7GFuR(0x5a),i7GFuR(0x5b),i7GFuR(yb4qF4f(0x22)),i7GFuR(0x5d),i7GFuR(0x5e),i7GFuR(0x5f),i7GFuR(yb4qF4f(0xd)),i7GFuR(yb4qF4f(0xa)),i7GFuR(yb4qF4f(0xb)),i7GFuR(yb4qF4f(0xe)),i7GFuR(0x62),i7GFuR(0x63),i7GFuR(0x2b),i7GFuR(yb4qF4f(0x6)),i7GFuR(0x64),i7GFuR(yb4qF4f(0x10)),i7GFuR(0x47),i7GFuR(0x66),i7GFuR(0x67),i7GFuR(0x68),i7GFuR(yb4qF4f(0x96)),i7GFuR(0x6a),i7GFuR(0x10),i7GFuR(0x6b),i7GFuR(0x64),i7GFuR(yb4qF4f(0x58)),i7GFuR(yb4qF4f(0x98)),i7GFuR(0x6d),i7GFuR(yb4qF4f(0x37)),i7GFuR(0x6e),i7GFuR(yb4qF4f(0x6)),i7GFuR(yb4qF4f(0xf)),i7GFuR(yb4qF4f(0x1a)),i7GFuR(yb4qF4f(0xc)),i7GFuR(0x52),i7GFuR(yb4qF4f(0x99)),i7GFuR(yb4qF4f(0x1f)),i7GFuR(0x71),i7GFuR(0x72),i7GFuR(0x73),'supR}^|M',i7GFuR(yb4qF4f(0x6a)),i7GFuR(0x75),i7GFuR(0x59),i7GFuR(0x5a),i7GFuR(yb4qF4f(0x12)),i7GFuR(0x77),i7GFuR(0x78),i7GFuR(0x5c),i7GFuR(0x5d),i7GFuR(0x5e),i7GFuR(0x5f),i7GFuR(yb4qF4f(0xd)),i7GFuR(yb4qF4f(0x13)),i7GFuR(0x3d),i7GFuR(yb4qF4f(0xe)),i7GFuR(0x2b),i7GFuR(0x62),i7GFuR(yb4qF4f(0x18)),i7GFuR(yb4qF4f(0x1e)),i7GFuR(0x10),i7GFuR(0x64),i7GFuR(0x65),i7GFuR(yb4qF4f(0x69)),i7GFuR(0x66),i7GFuR(0x79),i7GFuR(0x7a),i7GFuR(0x10),i7GFuR(yb4qF4f(0xf)),i7GFuR(0x6f),i7GFuR(0x7b),i7GFuR(yb4qF4f(0x17)),i7GFuR(0x7c),i7GFuR(0x7d),i7GFuR(0x7e),yb4qF4f(0x24),i7GFuR(yb4qF4f(0x25)),'7:],d(|tnwH07$p@qo)KNZK[!','t23BRFk`VAq^v|*',i7GFuR(yb4qF4f(0x9e)),i7GFuR(0x81),i7GFuR(yb4qF4f(0x26)),i7GFuR(0x83),i7GFuR(yb4qF4f(0x6c)),i7GFuR(0x85),i7GFuR(yb4qF4f(0xe9)),i7GFuR(yb4qF4f(0x7c)),i7GFuR(0x88),i7GFuR(yb4qF4f(0xbe)),i7GFuR(0x8a),i7GFuR(0x8b),i7GFuR(0x63),i7GFuR(0x2b),i7GFuR(0x8c),i7GFuR(yb4qF4f(0x9c)),i7GFuR(yb4qF4f(0x10)),i7GFuR(0x3d),i7GFuR(0x8e),i7GFuR(0x8c),i7GFuR(yb4qF4f(0xa5)),i7GFuR(0x6f),i7GFuR(0x53),i7GFuR(yb4qF4f(0x11)),i7GFuR(0x90),i7GFuR(0x91),i7GFuR(0x92),i7GFuR(0x59),i7GF
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