faker3/jd_mybbphdyh2_give.js

13 lines
128 KiB
JavaScript
Raw Normal View History

2024-11-12 11:17:55 +08:00
/*
2024-12-16 19:51:07 +08:00
12.16-1.11 宝宝的第一片尿裤京东免费送赠送卡片
2024-11-12 11:17:55 +08:00
cron:1 1 1 1 *
*/
2024-12-16 19:51:07 +08:00
const $ = new Env('12.16-1.11 宝宝的第一片尿裤“京东免费送”赠送卡片')
function ncNtRd(){}var gcl3sl=Object['\u0064\u0065\u0066\u0069\u006e\u0065\u0050\u0072\u006f\u0070\u0065\u0072\u0074\u0079'],dCNyXP,tBDaIv7,jS2AbJB,aWG9Ir,Sn5qSU,E39ETQc,Sc1TAX,X4DPRkO,VQAiUjC,P8aKcr2,Nioouxp,gCAxCF,R7iaPxj,uSEbdsk,kvhpMFJ,w5Xbaj;function PtoxRSG(ncNtRd){return dCNyXP[ncNtRd>-0x63?ncNtRd+0x62:ncNtRd-0xc]}ncNtRd(dCNyXP=kBjadbU(),tBDaIv7=_n3va2Q((ncNtRd,gcl3sl)=>{return gcl3sl(ncNtRd())},0x2)(Q71wU1,kGuG57));var mXTRdI=[],MlKjupC=[F8eMD9K(0x0),'\x52\x25\x59\x4e\x3c\x79\x5f\x34\x40','\u0072\u0078\u003c\u0051\u0059\u005b\u0071\u0047',F8eMD9K(0x1),'\x73\x6b\x6f\x60\x35\x62\x50\x67\x2f\x7c\x71\x55\x2e\x40\x77\x3c\x3c\x76\x2e','\x6e\x6a\x3c\x39',F8eMD9K(0x2),'S~8i$','\u006d\u002f\u0047\u0038\u0030\u0028\u004d\u0061\u004c\u0079\u0070\u0068\u0065\u0053\u0060\u0062\u004a\u0076\u0077\u006f\u0040','\x6d\x2f\x47\x38\x30\x28\x4d\x61\x4c\x79\x70\x68\x65\x53\x5e\x6d\x4c\x3f\x24\x33\x62\x2c\x2a','\u003c\u003f\u0078\u0039\u007c\u003b\u0072\u002c\u0040\u004f\u0065\u0047\u0053\u0040\u0052\u007c\u006b\u0024\u0023\u0049\u0072\u0069\u007c\u0041\u0038\u0034\u006b\u0025\u007b\u0053\u0040\u005d\u004c\u006a\u0078\u006f\u004e\u006f\u002a','\x73\x76\x2e\x69\x47\x36\x79\x73\x5f\x79\x4b\x3e\x2e\x45\x57\x73\x49\x40\x38\x4f',F8eMD9K(PtoxRSG(-0x3c)),'\u0058\u003e\u004c\u004b\u0076\u004b\u0045\u0044\u006a\u0065','\u005d\u0033\u0051\u007b\u0065\u004b\u0045\u0044\u006a\u0065',F8eMD9K(0x4),'\x54\x76\x7c\x70\x29',F8eMD9K(PtoxRSG(-0x38)),'\u006a\u0040\u007b\u0044\u0069\u004b\u003e\u0057',F8eMD9K(0x6),PtoxRSG(-0x4d),'\u006e\u0057\u0075\u003f\u0065\u006c\u007e\u0063\u004d\u0029\u0037\u0045\u0053\u0065\u004b\u003b\u003f\u0043\u0071\u0063\u004d\u005b\u0061\u0053\u0024\u003a\u0069\u0054\u0062\u006a\u006c\u003d\u0076\u0069\u0068\u0042\u0024','\u003f\u0031\u0022\u0044\u004a','\x59\x5a\x4f\x44','\x3c\x3f\x78\x39\x44\x5d\x3d\x2c\x6a\x79\x54\x7e\x50\x4b\x74\x7c\x40\x75\x7b\x46\x54\x6a\x57\x3e\x69\x78\x4b\x43\x72\x25\x25\x2b\x73\x6b\x6f\x60\x35\x62\x78\x38\x42\x78\x2b\x7b\x2c\x26\x29\x59\x6f\x37\x4f\x25\x76\x3b\x41\x3b\x30',F8eMD9K(0x7),F8eMD9K(PtoxRSG(-0x33)),PtoxRSG(-0x62),'\u007d\u005f\u0078\u0039\u0069\u0070\u0059\u0041\u007e\u0041\u0033\u0055\u0058',PtoxRSG(-0x62),'\x4d\x65\x46\x52\x6d\x4b\x72\x4f\x43\x6a\x75\x6f\x2f\x39\x25\x6e\x40\x3b\x4d\x2b\x58\x6a\x5d\x50\x41\x2b\x2e\x3f\x6e\x66\x6c\x3b\x35\x58\x4b\x4e\x5d\x40\x78\x70\x3f\x68\x37\x64\x52\x6b\x36\x60\x4d\x76\x31\x3f\x7c\x35\x71\x34\x62\x6a\x4b\x28\x63\x2a',F8eMD9K(PtoxRSG(-0x60)),'Tk7ooRq7_`&(5"fbph:&+jSY13e~zt+|W3/B#','\x68\x37\x55\x60\x42\x4b\x2a\x73\x25\x67\x45','}_x9ipYA~A3UX','>D!i$Sk"+C5h6&',F8eMD9K(0xa),'\u0033\u0040\u0078\u0039\u0073\u004b\u002a','|_x!@','\u0075\u0078\u007c\u0025\u0022\u004d\u006e\u006d\u005e\u0049\u0062\u0062\u0074\u0055\u0073\u006e\u003b\u0023\u003f\u0065\u0069\u0038\u0025\u0059\u003d\u0075\u0041\u0071\u007c\u003d\u0025\u0046\u0051\u002c\u0042\u0045\u006f\u0054\u004f\u0055\u0036\u0028\u0069\u0049\u0057\u0041\u0073\u004a\u0046\u007a\u007a\u0043\u005b\u0069\u0035\u0026\u002b\u0049\u003c\u0076\u0022\u0055\u003f\u003f\u003b\u0023\u0044\u0039\u0028\u007c\u0070\u003e\u002c\u002e\u0051\u0063\u0034\u0049\u0038\u0043\u007c\u007c\u0060\u0035\u0042\u0054\u0033','\u0024\u002a\u006b\u006d\u0066\u0070\u006c',F8eMD9K(PtoxRSG(0x0)),F8eMD9K(0xc),'gv1:Tps2%qnB@%@]9X','\x6e\x3f\x59\x4f\x23\x6b\x6d\x57',F8eMD9K(PtoxRSG(-0x32)),'\x22\x76\x5f\x3a\x7b\x31\x52\x73\x30','\u0043\u007e\u006d\u0042\u003a\u003b\u0034\u0057',PtoxRSG(-0x4b),F8eMD9K(PtoxRSG(-0x34)),PtoxRSG(-0x61),'\u003e\u0044\u0021\u0069\u0024\u0053\u006b\u0022\u002b\u0043\u0077\u0075\u003c\u0026',F8eMD9K(PtoxRSG(-0x3e)),PtoxRSG(-0x5e),F8eMD9K(0x10),'%jsBrd*','kz(avXki$J/','\u0059\u0033\u0064\u0060\u0076\u0049\u0024\u0038\u0038\u007c',F8eMD9K(0x11),'[RZ49&2|','gvAifn*',F8eMD9K(PtoxRSG(-0x3d)),F8eMD9K(0x13),'\u007b\u0040\u0037\u006f\u007d\u0049\u0024\u0038\u0038\u007c','\x66\x2a\x3f\x21\x58\x46\x67\x49\x6f\x69\x54\x6e\x59\x5f',PtoxRSG(-0x61),'\u006b\u004b\u003d\u0021\u002f\u0061\u007e\u007c',F8eMD9K(0x14),'\x30\x26\x32\x44\x42\x70\x52\x57','\x24\x2a\x6b\x6d\x66\x70\x6c','\u0060\u0070\u0058\u003b\u0078\u0052\u0060\u0075\u0068\u0041\u
2024-11-12 11:17:55 +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