faker3/jd_mybbphdyh.js

15 lines
154 KiB
JavaScript
Raw Normal View History

2024-07-06 12:23:46 +08:00
/*
不会自动运行请在有水的时候运行
2024-08-18 17:20:14 +08:00
//export jd_opencard_jdDraw="true" //true 开启抽奖false 关闭抽奖
2024-07-06 12:23:46 +08:00
//export jd_opencard_break="true" //IP限制后继续执行true/false
cron:1 1 1 1 *
*/
2024-09-15 04:05:38 +08:00
const $ = new Env('9.13-9.30 轻松育儿集卡礼1')
function e16G9X(){}var b9dBRls=Object['defineProperty'],wjIPpkv,J8YYC_j,wnWKHyT,zKDyhv,vUbDkG,o571e_F,Uf14dRq,FIH284,M18K0I,VztLLK0,pNflRca,OgR5Emj,uEbrUO,uwqzQv,QNse19U,xAHwl_,gXDvtu2,vbE3F2e,A7aRUVj,EZIPsA;function He9J2wA(e16G9X){return wjIPpkv[e16G9X>0x17e?e16G9X+0x2f:e16G9X>-0x1b?e16G9X>0x17e?e16G9X+0x44:e16G9X+0x1a:e16G9X-0x45]}wjIPpkv=idhzo9R();function maYZez6(e16G9X,b9dBRls){return J8YYC_j(e16G9X,He9J2wA(0x1d),{value:b9dBRls,configurable:!0x0})}e16G9X(J8YYC_j=Object.defineProperty,wnWKHyT=Km9w5J((e16G9X,b9dBRls)=>{return b9dBRls(e16G9X())},0x2)(DbZkX4Q,FUYSPjU));var MQitgAw=[],nkhYds=[CUj0FWg(0x0),CUj0FWg(0x1),CUj0FWg(He9J2wA(0x1e)),CUj0FWg(0x3),CUj0FWg(He9J2wA(0x2d)),CUj0FWg(0x5),CUj0FWg(He9J2wA(0x10)),CUj0FWg(He9J2wA(0x12)),CUj0FWg(He9J2wA(0x2b)),CUj0FWg(He9J2wA(0x38)),CUj0FWg(0xa),CUj0FWg(0xb),CUj0FWg(He9J2wA(0x11)),CUj0FWg(He9J2wA(0x2a)),CUj0FWg(0xe),CUj0FWg(0xf),CUj0FWg(He9J2wA(0x13)),CUj0FWg(He9J2wA(0x14)),CUj0FWg(0x12),CUj0FWg(He9J2wA(0x15)),CUj0FWg(0x14),'YQjU|',CUj0FWg(0x15),CUj0FWg(He9J2wA(0x94)),CUj0FWg(He9J2wA(0x101)),CUj0FWg(He9J2wA(0x45)),CUj0FWg(He9J2wA(-0x1a)),'Ck/^<XnoW|K8w<&;^92oWV[w.(+Yx4X#Q+>!.',CUj0FWg(0x1a),CUj0FWg(0x1b),'\x7e\x5e\x76\x4d\x49\x24\x23\x5d\x34\x5f\x59\x6e\x3a\x26\x70\x6a\x7a\x2f\x53\x46\x59\x34\x6b\x52\x2b\x76\x26\x39\x54\x47\x47\x6d\x35\x45\x50\x73\x37\x78\x76\x36\x21\x76\x6d\x53\x5d\x69\x7c\x4e\x50\x4b\x4f\x47\x51\x3b\x25\x3b\x67',CUj0FWg(0x1c),CUj0FWg(0x1d),CUj0FWg(0x1e),CUj0FWg(0x1f),CUj0FWg(He9J2wA(0x178)),CUj0FWg(0x1e),CUj0FWg(He9J2wA(0xad)),CUj0FWg(He9J2wA(0xef)),CUj0FWg(He9J2wA(0x1f)),CUj0FWg(He9J2wA(-0x18)),CUj0FWg(He9J2wA(0x17b)),CUj0FWg(He9J2wA(0x9c)),CUj0FWg(0x1d),CUj0FWg(0x25),CUj0FWg(He9J2wA(0x4a)),CUj0FWg(He9J2wA(0xa6)),CUj0FWg(He9J2wA(-0x1a)),CUj0FWg(0x1e),CUj0FWg(0x28),CUj0FWg(0x29),CUj0FWg(He9J2wA(0x4b)),CUj0FWg(0x2b),CUj0FWg(He9J2wA(-0xd)),CUj0FWg(0x2d),CUj0FWg(0x2e),CUj0FWg(0x2f),CUj0FWg(He9J2wA(0x4c)),CUj0FWg(He9J2wA(0x4d)),CUj0FWg(0x32),CUj0FWg(0x33),CUj0FWg(0x34),CUj0FWg(0x35),CUj0FWg(He9J2wA(-0x5)),CUj0FWg(0x37),CUj0FWg(He9J2wA(-0x17)),CUj0FWg(He9J2wA(0x2f)),CUj0FWg(0x3a),'|yZMz',CUj0FWg(0x3b),CUj0FWg(0x3c),CUj0FWg(He9J2wA(0x50)),CUj0FWg(He9J2wA(0x55)),CUj0FWg(He9J2wA(-0xc)),CUj0FWg(0x40),CUj0FWg(He9J2wA(0x51)),CUj0FWg(He9J2wA(-0x8)),CUj0FWg(0x43),CUj0FWg(He9J2wA(-0x10)),He9J2wA(0x6),CUj0FWg(He9J2wA(0x58)),CUj0FWg(0x46),CUj0FWg(He9J2wA(-0x13)),CUj0FWg(He9J2wA(-0x6)),CUj0FWg(0x1b),'\x7c\x3b\x77\x65\x4e\x78\x35\x21\x4a\x55\x57\x63\x73\x64\x74\x5b\x64\x66\x3e\x6f\x51\x78\x41',CUj0FWg(0x49),CUj0FWg(He9J2wA(-0x19)),'|;weNx5!JUWcsdt[df>oQx&7h`NhL%7,#d`Z^?%i{]0jk',CUj0FWg(He9J2wA(0xb)),CUj0FWg(0x1b),CUj0FWg(0x4a),CUj0FWg(He9J2wA(-0x12)),He9J2wA(-0x11),CUj0FWg(He9J2wA(-0x19)),'|;weNx5!JUWcsdt[df>oQx&7h`NhL%7,#d`Z^?%i{]0jk',CUj0FWg(He9J2wA(-0xe)),He9J2wA(-0x9),CUj0FWg(He9J2wA(0x5e)),CUj0FWg(0x4d),CUj0FWg(He9J2wA(-0xf)),CUj0FWg(He9J2wA(0x7e)),CUj0FWg(He9J2wA(0x60)),CUj0FWg(He9J2wA(-0x19)),CUj0FWg(0x51),CUj0FWg(He9J2wA(0x5d)),CUj0FWg(He9J2wA(0x69)),CUj0FWg(He9J2wA(0x62)),CUj0FWg(0x55),CUj0FWg(0x56),CUj0FWg(He9J2wA(0x1b)),CUj0FWg(0x58),CUj0FWg(He9J2wA(0x30)),CUj0FWg(He9J2wA(0x4f)),CUj0FWg(0x5b),CUj0FWg(He9J2wA(0x66)),CUj0FWg(0x5d),CUj0FWg(He9J2wA(-0x18)),CUj0FWg(He9J2wA(0x8d)),CUj0FWg(He9J2wA(0x67)),CUj0FWg(0x60),CUj0FWg(He9J2wA(0x86)),CUj0FWg(He9J2wA(0x6a)),CUj0FWg(He9J2wA(0x6b)),CUj0FWg(0x1b),CUj0FWg(He9J2wA(0x6c)),CUj0FWg(He9J2wA(-0x1)),'@@|LMEek',CUj0FWg(0x66),CUj0FWg(0x67),CUj0FWg(He9J2wA(0x6e)),CUj0FWg(He9J2wA(0x6f)),CUj0FWg(He9J2wA(0x9f)),CUj0FWg(He9J2wA(0x3d)),CUj0FWg(He9J2wA(0x70)),CUj0FWg(0x6d),CUj0FWg(He9J2wA(0x37)),'DK|(<;9`5vy=u~x)',CUj0FWg(He9J2wA(-0x14)),'\x76\x52\x31\x73\x4a\x73\x7c\x6b',CUj0FWg(0x70),CUj0FWg(0x71),CUj0FWg(0x72),CUj0FWg(0x73),CUj0FWg(He9J2wA(0x5c)),CUj0FWg(0x75),'\x35\x5e\x50\x28\x7c',CUj0FWg(He9J2wA(0x71)),'m@.DTp_*>to=|FbNKA',CUj0FWg(0x77),CUj0FWg(He9J2wA(0x72)),CUj0FWg(He9J2wA(0x73)),CUj0FWg(He9J2wA(-0x17)),CUj0FWg(He9J2wA(0x27)),CUj0FWg(0x38),CUj0FWg(He9J2wA(0x16e)),CUj0FWg(0x7c),CUj0FWg(0x7d),CUj0FWg(0x7e),'C4#|4[dk',CUj0FWg(He9J2wA(0x97)),CUj0FWg(0x80),CUj0FWg(He9J2wA(0x20)),CUj0FWg(0x82),CUj0FWg(He9J2wA(0x77)),CUj0FWg(0x84)
2024-07-06 12:23:46 +08:00
// 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