faker3/jd_mybbphdyh4_give.js

12 lines
141 KiB
JavaScript
Raw Normal View History

2024-10-28 16:42:04 +08:00
/*
京东母婴11.11又便宜又好赠送卡片
cron:1 1 1 1 *
*/
const $ = new Env('10.17-11.13 京东母婴11.11又便宜又好赠送卡片')
function p6Za9a(){}var yg4ISM=Object['defineProperty'],wB21PgH,puIbop,RsBFAt,mQvdBDY,J_Jm5q,HEUMAKg,ZbrXd6,dqvsvDe,rGRaAA,L6K6UjC,p7h8hQ,Pz5C4Zs,nrUGMu,MFwQEcI,janZGVC,Ha34si7,DfKi0k,PjqKz2,tqznbH,DTUZi1J,SSB4iy,qsWGrRc,iPbXO4h;function sv3MEO(p6Za9a){return wB21PgH[p6Za9a<-0x30?p6Za9a+0x37:p6Za9a>0x163?p6Za9a+0x23:p6Za9a+0x2f]}wB21PgH=Y9ePOpM();function aWWTVj(p6Za9a,yg4ISM){var RsBFAt=XP60K_(p6Za9a=>{return wB21PgH[p6Za9a<-0x50?p6Za9a-0x28:p6Za9a>-0x50?p6Za9a<0x143?p6Za9a>0x143?p6Za9a-0x48:p6Za9a+0x4f:p6Za9a+0x61:p6Za9a+0x6]},0x1);return puIbop(p6Za9a,RsBFAt(-0x4f),{value:yg4ISM,configurable:!0x0})}p6Za9a(puIbop=Object.defineProperty,RsBFAt=aWWTVj(XP60K_((...yg4ISM)=>{var puIbop=XP60K_(yg4ISM=>{return wB21PgH[yg4ISM<0x5b?yg4ISM+0xb:yg4ISM>0x1ee?yg4ISM-0x62:yg4ISM<0x5b?yg4ISM-0x13:yg4ISM>0x1ee?yg4ISM-0x32:yg4ISM-0x5c]},0x1);p6Za9a(yg4ISM[sv3MEO(-0x2f)]=0x2,yg4ISM[puIbop(0x5d)]=yg4ISM[sv3MEO(-0x2d)]);return yg4ISM[0x1](yg4ISM[sv3MEO(-0x2e)]())}),sv3MEO(-0x2c))(VffNun,whFkk1J));var TYgPLR=[],qWN4kZ=[uVNenk(sv3MEO(-0x2d)),uVNenk(0x1),uVNenk(sv3MEO(-0x2c)),uVNenk(sv3MEO(-0x8)),uVNenk(0x4),uVNenk(0x5),uVNenk(sv3MEO(0x1)),'\u0030\u0050\u0038\u002a\u0028\u003b\u007c\u0041',sv3MEO(-0x2a),uVNenk(sv3MEO(0x4)),uVNenk(0x8),'LL_*f(|A',uVNenk(0x9),uVNenk(0xa),uVNenk(sv3MEO(0x21)),uVNenk(0xc),uVNenk(sv3MEO(0x17)),uVNenk(sv3MEO(0x7)),uVNenk(0xf),uVNenk(sv3MEO(0x22)),uVNenk(0x11),uVNenk(0x12),uVNenk(sv3MEO(0x6)),uVNenk(0x14),uVNenk(0x15),uVNenk(sv3MEO(0x23)),uVNenk(0x17),uVNenk(0x18),uVNenk(0x19),uVNenk(sv3MEO(0x13d)),uVNenk(sv3MEO(0x8e)),uVNenk(0x1c),uVNenk(0x1d),uVNenk(0x1e),uVNenk(sv3MEO(-0x11)),uVNenk(0x20),uVNenk(0x21),uVNenk(sv3MEO(-0x28)),uVNenk(sv3MEO(0x26)),uVNenk(sv3MEO(0x27)),uVNenk(0x25),uVNenk(0x26),uVNenk(0x27),uVNenk(sv3MEO(0x77)),'\x2f\x4c\x7c\x28\x47\x3b\x34\x41',uVNenk(0x29),uVNenk(sv3MEO(-0x2b)),uVNenk(0x28),'/L|(G;4A',uVNenk(sv3MEO(0x15e)),uVNenk(sv3MEO(-0x2b)),uVNenk(0x2b),uVNenk(sv3MEO(0x2d)),uVNenk(sv3MEO(0x74)),'>{N2~j|A',uVNenk(0x2e),uVNenk(sv3MEO(0xe6)),uVNenk(sv3MEO(0x2e)),uVNenk(sv3MEO(0x76)),uVNenk(0x32),uVNenk(sv3MEO(0x30)),uVNenk(sv3MEO(0x37)),uVNenk(sv3MEO(0x38)),uVNenk(sv3MEO(0x1b)),'M;P:^os"~e|',uVNenk(sv3MEO(0x39)),uVNenk(0x38),uVNenk(sv3MEO(0x3b)),'\u003c\u005a\u0041\u0074\u006f\u0025\u0061\u002a\u0050\u0021\u0035\u0035\u007a\u0040\u005d\u0061\u0049\u003d\u0066\u004d\u004b\u0056\u0074\u0024\u0078\u003c\u0062\u0032\u0041\u0078\u0074\u003b\u002c\u0043\u007b\u0039\u0037\u002f\u0030\u0040\u007e\u0054\u004b\u0021\u0070\u0062\u005d\u0045\u003b\u004c\u004c\u0060\u0026\u004b\u007c\u0048\u005f\u0021\u0042\u0029\u006f\u0040\u0066\u0066\u0049\u003d\u004e\u006c\u0054\u0041\u0075\u0022\u0043\u006e\u002c\u006d\u0073\u0021\u0056\u0060\u0041\u0041\u0036\u007c\u007b\u002f\u004f',uVNenk(0x3a),'"q{9/B"i~E|',uVNenk(0x3b),uVNenk(sv3MEO(0x19)),uVNenk(sv3MEO(0x3e)),uVNenk(sv3MEO(0x148)),uVNenk(sv3MEO(0x3)),uVNenk(0x40),uVNenk(sv3MEO(0x3f)),'c@y];$A:|9J<8T',uVNenk(0x42),uVNenk(sv3MEO(0x2a)),uVNenk(0x44),uVNenk(sv3MEO(-0x29)),sv3MEO(-0x2a),uVNenk(sv3MEO(0x29)),uVNenk(0x46),uVNenk(sv3MEO(0x42)),uVNenk(sv3MEO(-0xa)),uVNenk(0x49),uVNenk(sv3MEO(0x44)),uVNenk(0x4b),uVNenk(0x4c),uVNenk(0x4d),uVNenk(0x4e),'<w|@3#`.m0fi?Z',uVNenk(0x4f),uVNenk(0x50),uVNenk(sv3MEO(-0x27)),uVNenk(0x52),'2;P:=d|=',uVNenk(0x53),'"q{9/B"i~E|',uVNenk(sv3MEO(-0x7)),uVNenk(sv3MEO(0x49)),uVNenk(sv3MEO(0x4a)),uVNenk(0x49),uVNenk(sv3MEO(0x102)),uVNenk(sv3MEO(-0x3)),uVNenk(0x59),uVNenk(sv3MEO(0x85)),uVNenk(0x4f),uVNenk(sv3MEO(0xf)),uVNenk(0x5c),uVNenk(sv3MEO(-0x29)),uVNenk(0x5d),uVNenk(0x5e),uVNenk(sv3MEO(0x139)),uVNenk(sv3MEO(0x4d)),uVNenk(sv3MEO(0x4e)),uVNenk(sv3MEO(0x11)),'?4x#|~O2R',uVNenk(0x63),uVNenk(sv3MEO(0x54)),uVNenk(sv3MEO(0x53)),uVNenk(sv3MEO(0x58)),uVNenk(sv3MEO(0x56)),uVNenk(0x68),uVNenk(0x69),uVNenk(0x6a),uVNenk(sv3MEO(-0x20)),uVNenk(sv3MEO(-0x28)),uVNenk(sv3MEO(-0x1d)),'@Sjqu~|A',uVNenk(0x6d),uVNenk(0x6e),uVNenk(sv3MEO(-0x1c)),uVNenk(sv3MEO(0x1c)),uVNenk(0x71),':.uq,~|A','_oT(+;}Dk|CabwC',uVNenk(0x72),uVNenk(0x73),uVNenk(0x74),uVNenk(0x75),uVNenk(sv3MEO(0x5d)),uVNenk(0x51),uVNenk(0x77),uVNenk(0x78),uVNenk(0x79),uVNenk(sv3MEO(-0x28)),uVNenk(0x7a),
// 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