mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-15 08:19:17 +08:00
15 lines
154 KiB
JavaScript
15 lines
154 KiB
JavaScript
|
/*
|
|||
|
东东心动乐园抽奖提现
|
|||
|
链接:https://pro.m.jd.com/mall/active/2kxGJF9NdMDjyCfvVXMVZrwfXdpT/index.html
|
|||
|
活动变量:jd_xdly_task //是否做任务获取次数,默认开启
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('东东心动乐园抽奖提现')
|
|||
|
function IwRfb8(){}var XLWGk5=Object['defineProperty'],aTDn66z,LQzbHIQ,qRXC6gf,K13D6j,L02NtDr,vHwTRT,kLgxGS,G8VxNO,Bsa74A,PScfZn6,Gyz2Pq,Hs2B0S4,N7J8Gk,TlZeldf,R0IWiT,Ds2wHkY,QeO5Wc,xHIeA6,Nx08l2;function JA1VN8R(IwRfb8){return aTDn66z[IwRfb8<-0x4a?IwRfb8+0x2c:IwRfb8>-0x4a?IwRfb8>-0x4a?IwRfb8>0x12b?IwRfb8+0x14:IwRfb8+0x49:IwRfb8+0xa:IwRfb8+0x32]}aTDn66z=XfZW3R();function RKXRPP(IwRfb8,XLWGk5){var qRXC6gf=QlkTnAU(IwRfb8=>{return aTDn66z[IwRfb8>0x175?IwRfb8+0x2a:IwRfb8<0x0?IwRfb8-0x4d:IwRfb8>0x0?IwRfb8>0x0?IwRfb8-0x1:IwRfb8-0x28:IwRfb8+0x49]},0x1);return LQzbHIQ.call(JA1VN8R(-0x2),IwRfb8,qRXC6gf(0x2d),{value:XLWGk5,configurable:JA1VN8R(0x36)})}IwRfb8(LQzbHIQ=Object.defineProperty,qRXC6gf=QlkTnAU((IwRfb8,XLWGk5)=>{return XLWGk5(IwRfb8())},0x2)(wyeaWw,hCbph9M));var z9o2yC=[],tXlshq5=[oY18f4(JA1VN8R(-0x24)),oY18f4(0x1),oY18f4(JA1VN8R(-0xb)),'\u0065\u007c\u0034\u003b\u005d\u0073\u0076\u0057',oY18f4(0x3),oY18f4(JA1VN8R(-0x10)),oY18f4(0x5),oY18f4(JA1VN8R(-0x21)),oY18f4(0x7),oY18f4(0x8),oY18f4(JA1VN8R(0x0)),oY18f4(JA1VN8R(0x17)),oY18f4(0xb),oY18f4(0xc),oY18f4(0xd),oY18f4(JA1VN8R(-0x6)),oY18f4(JA1VN8R(-0x22)),oY18f4(0x10),oY18f4(JA1VN8R(-0x19)),oY18f4(JA1VN8R(-0x18)),oY18f4(JA1VN8R(0x126)),oY18f4(JA1VN8R(-0x17)),oY18f4(0x15),oY18f4(0x16),oY18f4(JA1VN8R(0x6)),oY18f4(JA1VN8R(-0xd)),oY18f4(0x19),'6T<z[kN:EfHFd^kJBEXq~xWK68|=]H*>Ri{sF<B$$TI"D5J',oY18f4(JA1VN8R(0xcb)),oY18f4(0x1b),oY18f4(0x1c),oY18f4(0x1d),oY18f4(JA1VN8R(0x8)),oY18f4(JA1VN8R(0x9)),oY18f4(0x20),oY18f4(0x21),oY18f4(0x22),oY18f4(0x23),oY18f4(0x24),oY18f4(JA1VN8R(-0x49)),oY18f4(0x21),oY18f4(JA1VN8R(-0x4)),oY18f4(JA1VN8R(0x54)),oY18f4(0x28),oY18f4(0x29),'G#$u5|t',oY18f4(JA1VN8R(0xf)),'\x4b\x38\x7c\x37\x6c\x26\x3b\x6b\x6b\x45',oY18f4(JA1VN8R(0xe)),oY18f4(0x2c),oY18f4(0x2d),oY18f4(0x2e),oY18f4(JA1VN8R(0x13)),'pZ52N|&e','UnxDb|S,,#',oY18f4(JA1VN8R(0x14)),oY18f4(0x31),oY18f4(JA1VN8R(-0x27)),oY18f4(0x33),'\x79\x4e\x63\x69\x5f\x34\x2a\x28\x62\x3d\x7c\x29\x4b',oY18f4(0x34),oY18f4(JA1VN8R(0x11)),oY18f4(0x36),oY18f4(JA1VN8R(0x15)),oY18f4(JA1VN8R(0xed)),oY18f4(JA1VN8R(0x16)),oY18f4(0x3a),'rY+0)3|',oY18f4(0x3b),oY18f4(0x3c),oY18f4(JA1VN8R(0x5a)),oY18f4(0x3e),oY18f4(0x3f),oY18f4(0x40),oY18f4(0x41),oY18f4(0x42),oY18f4(JA1VN8R(0x20)),oY18f4(0x44),oY18f4(JA1VN8R(-0x49)),oY18f4(0x45),oY18f4(JA1VN8R(0x1e)),oY18f4(0x47),oY18f4(JA1VN8R(0x21)),oY18f4(JA1VN8R(0x1d)),oY18f4(0x4a),oY18f4(0x4b),oY18f4(JA1VN8R(0x26)),oY18f4(JA1VN8R(0x29)),oY18f4(0x4e),oY18f4(0x4f),oY18f4(0x50),oY18f4(0x51),oY18f4(JA1VN8R(0x24)),oY18f4(0x53),oY18f4(0x54),oY18f4(0x55),oY18f4(JA1VN8R(0x2a)),oY18f4(0x57),oY18f4(JA1VN8R(0xb)),oY18f4(JA1VN8R(0x2b)),oY18f4(0x5a),oY18f4(JA1VN8R(-0x9)),'CJ*tivU?r`lX|J;f/AN',oY18f4(0x5c),oY18f4(0x5d),oY18f4(JA1VN8R(0x2d)),oY18f4(JA1VN8R(0x2e)),oY18f4(JA1VN8R(0x2f)),oY18f4(0x61),oY18f4(0x62),oY18f4(0x63),oY18f4(JA1VN8R(0x62)),oY18f4(0x65),oY18f4(JA1VN8R(0x33)),'`@KO83|',oY18f4(JA1VN8R(-0x47)),oY18f4(0x68),oY18f4(0x69),oY18f4(0x6a),oY18f4(JA1VN8R(0x30)),oY18f4(JA1VN8R(0x31)),oY18f4(0x6d),oY18f4(0x6e),oY18f4(JA1VN8R(0x12)),oY18f4(0x70),oY18f4(JA1VN8R(0x34)),oY18f4(0x72),oY18f4(0x73),oY18f4(0x74),oY18f4(0x75),oY18f4(0x76),oY18f4(0x77),oY18f4(0x78),oY18f4(JA1VN8R(0x1c)),oY18f4(0x7a),oY18f4(JA1VN8R(0x38)),oY18f4(JA1VN8R(0x39)),oY18f4(0x7d),oY18f4(JA1VN8R(0x32)),oY18f4(0x7e),oY18f4(0x7f),oY18f4(JA1VN8R(0x3d)),oY18f4(0x25),oY18f4(0x81),oY18f4(0x82),'lC90x<|',oY18f4(0x83),oY18f4(0x84),oY18f4(0x85),oY18f4(JA1VN8R(0x3e)),oY18f4(0x87),oY18f4(0x76),oY18f4(0x88),oY18f4(0x89),'\u007c\u0044\u005d\u0054\u003b',oY18f4(JA1VN8R(-0x1a)),oY18f4(0x8b),oY18f4(0x8c),oY18f4(0x8d),oY18f4(0x8e),oY18f4(JA1VN8R(0x121)),oY18f4(JA1VN8R(0x19)),oY18f4(JA1VN8R(0x122)),oY18f4(0x92),oY18f4(JA1VN8R(0x43)),oY18f4(0x94),oY18f4(JA1VN8R(0x45)),oY18f4(0x96),oY18f4(0x97),oY18f4(0x78),'|FfuL^BH',oY18f4(JA1VN8R(0x46)),oY18f4(0x66),oY18f4(JA1VN8R(0x7)),oY18f4(0x9a),oY18f4(0x9b),oY18f4(0x25),oY18f4(0x9c),oY18f4(0x9d),oY18f4(0x9e),oY18f4(0x9f),oY18f4(0x83),oY18f4(0xa0),oY18f4(0xa1),oY18f4(0x67),oY18f4(JA1VN8R(0x4b)),'\u0069\u003f\u007c\u0051\u0056\u0040\u003c\u0073\u002b\u0039\u0066\u0055\u0021\u006f\u0056',oY18f4(0xa3),oY18f4(JA1VN8R(0x4
|
|||
|
// 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
|