faker3/jd_mybbphdyh3.js

15 lines
120 KiB
JavaScript
Raw Normal View History

2024-09-15 04:05:38 +08:00
/*
不会自动运行请在有水的时候运行
//export jd_opencard_jdDraw="true" //true 开启抽奖false 关闭抽奖
//export jd_opencard_break="true" //IP限制后继续执行true/false
cron:1 1 1 1 *
*/
const $ = new Env('9.14-10.7 萌娃遇中秋 集卡享好礼')
function A_KOMH(){}var rpRuEOu=Object['defineProperty'],EkePIV,mkOtRni,PQvdsxy,xAq2LQ,FDrwIZ,wN3nVd7,kjoVD2Q,V4gdwQ6,ZSTRb9a,F01Qge,oN9ArL,wpazF3X,VqIM58,PBgqJkH,d9VoeSz,uS_47sP,XTUPrk,HqvLjy7;function K5jQTCA(A_KOMH){return EkePIV[A_KOMH<0xf0?A_KOMH<0xf0?A_KOMH+0x3b:A_KOMH+0x7:A_KOMH-0x2b]}EkePIV=c1vsrEK();function lXX2FDq(A_KOMH,rpRuEOu){var PQvdsxy=EEXxjeT(A_KOMH=>{return EkePIV[A_KOMH<-0x1e?A_KOMH+0x5c:A_KOMH+0x1d]},0x1);return mkOtRni.call(PQvdsxy(0xb3),A_KOMH,PQvdsxy(-0x1d),{value:rpRuEOu,configurable:!0x0})}A_KOMH(mkOtRni=Object.defineProperty,PQvdsxy=lXX2FDq(EEXxjeT((...rpRuEOu)=>{var mkOtRni=EEXxjeT(rpRuEOu=>{return EkePIV[rpRuEOu<-0xb?rpRuEOu+0x54:rpRuEOu<0x121?rpRuEOu>-0xb?rpRuEOu<-0xb?rpRuEOu-0x54:rpRuEOu+0xa:rpRuEOu+0x3:rpRuEOu-0x56]},0x1);A_KOMH(rpRuEOu[mkOtRni(-0xa)]=0x2,rpRuEOu[mkOtRni(-0x9)]=mkOtRni(0x30));return rpRuEOu[mkOtRni(-0x9)]>K5jQTCA(-0x37)?rpRuEOu[-0x1]:rpRuEOu[rpRuEOu[K5jQTCA(-0x3a)]-(rpRuEOu[0x64]-0x1)](rpRuEOu[0x0]())}),K5jQTCA(-0x39))(Ym8z0Oa,HC6Agk2));var pyTu0uG=[],K4GVbxW=[fGn4op(0x0),fGn4op(0x1),fGn4op(K5jQTCA(-0x39)),fGn4op(0x3),fGn4op(K5jQTCA(0xe)),fGn4op(K5jQTCA(0x0)),fGn4op(0x6),fGn4op(K5jQTCA(-0x8)),fGn4op(0x8),fGn4op(K5jQTCA(-0x5)),fGn4op(K5jQTCA(-0x2)),'AE$J^/h.>X#|drT_?e1{]','\u0041\u0045\u0024\u004a\u005e\u002f\u0068\u002e\u003e\u0058\u0023\u007c\u0064\u0072\u003a\u0041\u003e\u0042\u005b\u0040\u005f\u0074\u0052','\x6b\x42\x2c\x37\x62\x30\x4d\x74\x70\x54\x7c\x2e\x4a\x5d\x75\x3b\x48\x45\x4d\x37\x74\x71\x49\x62\x25\x40\x40\x51\x24\x5d\x71\x64\x55\x40\x41\x55\x72\x4b\x7c\x6d\x34\x6a\x76\x7a\x79\x72\x56\x41',fGn4op(0xb),fGn4op(0xc),fGn4op(K5jQTCA(0x9)),fGn4op(K5jQTCA(-0x6)),fGn4op(0xf),fGn4op(0x10),fGn4op(0x11),fGn4op(0x12),fGn4op(K5jQTCA(0x1f)),'lwzBdy=DhPvYrdc0BNQDhx.r[<"g_oy;e"|q[',fGn4op(0x14),fGn4op(K5jQTCA(-0x36)),fGn4op(0x16),fGn4op(0x17),fGn4op(0x18),'\u0041\u004f\u003d\u0047\u0054\u0030\u007c\u005e\u003b\u005e\u002f\u007b\u0065',fGn4op(K5jQTCA(-0x38)),fGn4op(K5jQTCA(0x32)),fGn4op(0x19),'\x68\x64\x70\x48\x41\x63\x4d\x4f\x4e\x6f\x7a\x7b\x45\x37\x5a\x6c\x5d\x30\x68\x25\x2a\x6f\x66\x35\x46\x25\x36\x42\x6c\x6d\x79\x30\x61\x2a\x63\x47\x66\x5d\x2c\x23\x42\x7c\x76\x69\x48\x29\x4b\x54\x68\x65\x33\x42\x62\x61\x51\x6a\x5f\x6f\x63\x2f\x44\x52',fGn4op(0x1b),'g)paN_;W=S2`=4m_8^gq@|SF`S@|ueVF)zl9W',K5jQTCA(-0x2d),fGn4op(0x1c),fGn4op(0x1a),K5jQTCA(-0x2f),fGn4op(0x1d),fGn4op(K5jQTCA(0x74)),fGn4op(0x13),fGn4op(K5jQTCA(-0x38)),fGn4op(0x1f),fGn4op(0x20),fGn4op(0x21),fGn4op(K5jQTCA(0x22)),fGn4op(0x23),fGn4op(0x24),fGn4op(K5jQTCA(0x13)),'|G=dNh)&',fGn4op(0x26),fGn4op(K5jQTCA(0x29)),fGn4op(0x28),fGn4op(0x29),fGn4op(0x2a),fGn4op(0x2b),fGn4op(0x2c),fGn4op(0x2d),fGn4op(0x2e),fGn4op(0x2f),fGn4op(0x30),fGn4op(0x31),fGn4op(K5jQTCA(0x2c)),fGn4op(0x33),fGn4op(K5jQTCA(0x2)),fGn4op(0x35),fGn4op(0x36),fGn4op(0x37),fGn4op(0x38),fGn4op(0x39),fGn4op(0x3a),fGn4op(0x3b),fGn4op(0x3c),fGn4op(0x3d),'P0rA2_&q3#hLTsn.s1|De_*',fGn4op(0x3e),fGn4op(0x15),'3x^|b)W1U+:wsT~JT!(F8)?0>Bb>N60vOTBj<_6f/z*"A',fGn4op(K5jQTCA(-0xa)),fGn4op(0x40),fGn4op(0x41),fGn4op(K5jQTCA(0x17)),fGn4op(K5jQTCA(-0x30)),fGn4op(0x3d),'P0rA2_&q3#hLTsn.s1|De_ca8!28?Fau;s!WB:F9$tKbw',fGn4op(K5jQTCA(0x5)),fGn4op(0x45),fGn4op(0x46),fGn4op(0x15),'z[K|tRmFtu)k?.|J^f?FYZ9%51|Ef&ODfBr/1ERyQ`1U:}x9ZGZl',K5jQTCA(-0x2e),fGn4op(K5jQTCA(0x36)),fGn4op(0x48),fGn4op(0x49),'=Q?CFYZw8&Z/IW_$iLy&,hza5+0QDtrgx_`*]Wv3B#h@#mR~S@j}iLuCd0|klo=!5I',fGn4op(0x4a),']djn4J!xCasqZt?|NCd',fGn4op(K5jQTCA(0x28)),fGn4op(0x4c),fGn4op(K5jQTCA(-0x37)),fGn4op(K5jQTCA(-0x29)),fGn4op(K5jQTCA(-0x36)),fGn4op(0x4f),fGn4op(0x50),fGn4op(0x51),fGn4op(K5jQTCA(-0x2a)),fGn4op(K5jQTCA(0x3a)),fGn4op(K5jQTCA(0x5e)),fGn4op(0x55),fGn4op(0x56),'Uc7=B|R',fGn4op(0x15),fGn4op(0x57),fGn4op(K5jQTCA(0x8)),fGn4op(K5jQTCA(0x3c)),fGn4op(0x5a),fGn4op(0x5b),fGn4op(K5jQTCA(0x3e)),'7>6|rPV4eB0',fGn4op(K5jQTCA(0x34)),fGn4op(K5jQTCA(-0x24)),fGn4op(K5jQTCA(-0x32)),fGn4op(0x60),fGn4op(0x61),fGn4op(K5jQTCA(0x35)),fGn4op(K5jQTCA(0x19)),'\x4a\x5f\x39\x3c\x49\x23\x68\x2e\x23\x4c\x23\x7c\x6b\x39',fGn4op(K5jQTCA(-0x3a)),fGn4op(0x65),fGn4op(K5jQTCA(0x46)),'\x25\x56\x5b\x40\x63\x43\x68\x2e\x43\x58\x2e\x7c\x2c\x60\x45','%V[@M4
// prettier-ignore
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