faker3/jd_jdjoypark.js

11 lines
642 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
#汪汪庄园
入口京东app-我的-汪汪庄园
12 12 12 12 * jd_jdjoypark.js
跑会黑自己决定
6dy 2022/12/31
*/
const $ = new Env('汪汪庄园');
(function(_0x1408e9,_0x332748){const _0x313c4b={_0x1f3ec1:'\x30\x78\x35\x39\x30',_0x2c3ec0:'\x30\x78\x35\x36\x35',_0x3f324e:'\x40\x64\x45\x49',_0x4b8982:'\x30\x78\x33\x34\x66',_0x3c7d95:'\x30\x78\x33\x62\x33',_0x562894:'\x30\x78\x34\x36\x31',_0x17d090:'\x30\x78\x33\x63\x63',_0x1baa84:'\x30\x78\x32\x32\x62',_0x338cb1:'\x5b\x37\x43\x40',_0x2049d0:'\x30\x78\x37\x39',_0x2a7603:'\x30\x78\x31\x35\x31',_0x4f21d9:'\x30\x78\x64\x37',_0x6b7b6:'\x30\x78\x31\x36\x61',_0x265a18:'\x48\x26\x5d\x42',_0x1e31c5:'\x30\x78\x33\x64\x39',_0x29c72e:'\x30\x78\x37\x34\x33',_0x2126ed:'\x30\x78\x37\x39\x39',_0x585691:'\x30\x78\x35\x30\x32',_0x40d14a:'\x50\x23\x73\x4a',_0x1a1c9f:'\x30\x78\x35\x65\x64',_0x52f270:'\x30\x78\x31\x65\x34',_0x76631f:'\x30\x78\x34\x32\x36',_0x52a607:'\x30\x78\x33\x30\x35',_0x3730a6:'\x56\x48\x33\x24',_0x27c363:'\x30\x78\x34\x66\x61',_0x4f78ca:'\x30\x78\x36\x62\x66',_0x39e6e1:'\x30\x78\x37\x31\x64',_0x3f8fc7:'\x36\x67\x69\x24',_0x285fdc:'\x30\x78\x36\x64\x36',_0x4b8cde:'\x30\x78\x38\x38\x31',_0x5319dd:'\x30\x78\x31\x62\x37',_0x238d84:'\x30\x78\x32\x34\x63',_0x4dcd34:'\x64\x58\x4b\x69',_0x4f662a:'\x30\x78\x34\x38\x65',_0x1c78eb:'\x30\x78\x34\x33\x34',_0x17100e:'\x30\x78\x32\x66\x37',_0x1e5122:'\x30\x78\x36\x63\x34',_0x33c90d:'\x30\x78\x34\x36\x35',_0x7a71d8:'\x75\x50\x64\x70',_0x11841d:'\x30\x78\x35\x30\x39',_0x49bd80:'\x30\x78\x33\x64\x34',_0xf8a32f:'\x30\x78\x31\x66\x34',_0x33b6c3:'\x30\x78\x34\x30\x33',_0x427afc:'\x78\x38\x41\x68',_0x2de771:'\x30\x78\x31\x64\x65',_0xbe683c:'\x30\x78\x38\x66\x66',_0x5705a4:'\x30\x78\x61\x39\x64',_0x1dbe04:'\x26\x50\x5a\x21',_0x2b8150:'\x30\x78\x38\x35\x64',_0x470468:'\x30\x78\x61\x39\x36'},_0x574ef6={_0x455e07:'\x30\x78\x32\x32\x64'},_0x53f0bf={_0x11f67c:'\x30\x78\x32\x38'},_0xb0b87d={_0x33b3bd:'\x30\x78\x37\x39'},_0x3ed0ba={_0x2287a1:'\x30\x78\x31\x64\x64'},_0x497956={_0x4e997b:'\x30\x78\x32\x36\x39'};function _0x4810ea(_0x10d508,_0x10549b,_0xd4be9c,_0x48ead4,_0x90e7af){return _0x5f20(_0x90e7af-_0x497956._0x4e997b,_0xd4be9c);}function _0x5eb71c(_0x49b646,_0x2c3a9a,_0x2ec83a,_0x29c48e,_0x12351a){return _0x5f20(_0x2ec83a- -_0x3ed0ba._0x2287a1,_0x29c48e);}function _0xe07f35(_0x418106,_0x580354,_0xd16f9,_0x1acbe2,_0x511d7f){return _0x5f20(_0x580354-_0xb0b87d._0x33b3bd,_0xd16f9);}const _0x367f81=_0x1408e9();function _0x16809a(_0x4bad93,_0x288880,_0x4ab0b8,_0x1de0dd,_0xa51bda){return _0x5f20(_0x288880- -_0x53f0bf._0x11f67c,_0x1de0dd);}function _0x583927(_0x2cc3f7,_0x28ff08,_0x5656e4,_0x527820,_0x4fc33b){return _0x5f20(_0x2cc3f7-_0x574ef6._0x455e07,_0x5656e4);}while(!![]){try{const _0x5a4569=-parseInt(_0x583927(_0x313c4b._0x1f3ec1,_0x313c4b._0x2c3ec0,_0x313c4b._0x3f324e,_0x313c4b._0x4b8982,_0x313c4b._0x3c7d95))/(-0x1c3f+-0x1*-0x1789+0x4b7)+-parseInt(_0x5eb71c(_0x313c4b._0x562894,_0x313c4b._0x17d090,_0x313c4b._0x1baa84,_0x313c4b._0x338cb1,-_0x313c4b._0x2049d0))/(0x3*-0xcf2+-0xc32+0x330a)+parseInt(_0x5eb71c(-_0x313c4b._0x2a7603,-_0x313c4b._0x4f21d9,_0x313c4b._0x6b7b6,_0x313c4b._0x265a18,_0x313c4b._0x1e31c5))/(0x7*0x65+-0x1538+0x1278)*(-parseInt(_0x5eb71c(_0x313c4b._0x29c72e,_0x313c4b._0x2126ed,_0x313c4b._0x585691,_0x313c4b._0x40d14a,_0x313c4b._0x1a1c9f))/(-0x1*0x66+-0x269*-0x9+0x1547*-0x1))+-parseInt(_0x5eb71c(_0x313c4b._0x52f270,_0x313c4b._0x76631f,_0x313c4b._0x52a607,_0x313c4b._0x3730a6,_0x313c4b._0x27c363))/(0x1*-0x25c5+0x4dd+0x20ed)+-parseInt(_0x583927(_0x313c4b._0x4f78ca,_0x313c4b._0x39e6e1,_0x313c4b._0x3f8fc7,_0x313c4b._0x285fdc,_0x313c4b._0x4b8cde))/(-0x2285+-0xc1d+0x2ea8)*(-parseInt(_0x4810ea(_0x313c4b._0x5319dd,_0x313c4b._0x238d84,_0x313c4b._0x4dcd34,_0x313c4b._0x4f662a,_0x313c4b._0x1c78eb))/(0x2*-0xd13+-0x51b*-0x6+-0x475))+parseInt(_0x5eb71c(_0x313c4b._0x17100e,_0x313c4b._0x1e5122,_0x313c4b._0x33c90d,_0x313c4b._0x7a71d8,_0x313c4b._0x11841d))/(0x5*-0x3bb+-0x3d4+0x33*0x71)+parseInt(_0x16809a(_0x313c4b._0x49bd80,_0x313c4b._0xf8a32f,_0x313c4b._0x33b6c3,_0x313c4b._0x427afc,_0x313c4b._0x2de771))/(-0x1732+0x114f*-0x1+-0x1445*-0x2)*(parseInt(_0x583927(_0x313c4b._0xbe683c,_0x313c4b._0x5705a4,_0x313c4b._0x1dbe04,_0x313c4b._0x2b8150,_0x313c4b._0x470468))/(0x1*0x259f+-0x1*0x397+-0x26*0xe5));if(_0x
// prettier-ignore
function Env(t, e) { 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) :