mirror of
https://github.com/shufflewzc/faker3.git
synced 2025-01-10 16:29:13 +08:00
15 lines
121 KiB
JavaScript
15 lines
121 KiB
JavaScript
|
/*
|
|||
|
活动名称:PLUS派送提现
|
|||
|
活动链接:https://pro.m.jd.com/mall/active/3CAqZRAyxE7pUQwrsPB4iiT33Pn7/index.html
|
|||
|
活动变量:jd_plus_task //是否做任务获取次数,默认开启
|
|||
|
|
|||
|
cron:1 1 1 1 *
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('PLUS派送抽奖提现')
|
|||
|
function YInL_0(){}var OzFgGRc=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],wJIPKS,VbdpfC,O5Gaih,a3erK1,agQoBBK,tM0gPiX,aJjilB,m8vZUg,bpQSSE,kuTtNV,S9CLH4U,VqerAW,iREN0X,CMrcZj,CuuCOG,qpJBygv,hUPri8,Ti_OLa,xyVdpdv,VHuQvR,oH7CHm;function z6ApQ_(YInL_0){return wJIPKS[YInL_0<-0x56?YInL_0+0x46:YInL_0<0x6d?YInL_0<-0x56?YInL_0-0x12:YInL_0<0x6d?YInL_0+0x55:YInL_0-0x10:YInL_0+0x4f]}YInL_0(wJIPKS=q5euIt(),VbdpfC=zE7x6fD((YInL_0,OzFgGRc)=>{return OzFgGRc(YInL_0())},0x2)(c8NNSk,HRj0Vfx));var PxYdsnk=[],sCXbs5=['Yb2lz|)X','\u003f\u0075\u003d\u005f\u003f\u0068\u0053\u0035','K%,$!~pr','\x24\x63\x46\x33\x3f',ztqMs6n(z6ApQ_(-0x32)),'{V2#5;IM6<Z1a<`(%`','\x42\x45\x2a\x30\x2e',ztqMs6n(0x1),ztqMs6n(z6ApQ_(-0x21)),'\u007b\u0056\u0032\u0023\u0035\u003b\u0049\u004d\u0036\u003c\u0041\u0024\u0033\u007e\u003d\u007b','{V2#5;IMr~?$ax!b[7B#',ztqMs6n(z6ApQ_(-0x27)),'\u007b\u0056\u0032\u0023\u0035\u003b\u0049\u004d\u0036\u003c\u0022\u0077\u0078\u0042\u0045\u0061\u003f\u003a\u0050\u0026\u0041\u0043\u002f','\u0045\u0055\u004c\u0078\u0056','\u007b\u0056\u0032\u0023\u0035\u003b\u0049\u004d\u0036\u003c\u007c\u004e\u002a\u007b\u0034','\u0043\u0079\u0078\u007a\u0052\u0036\u002f','\x68\x71\x35\x45\x59\x6c\x2c\x76\x53\x2c\x31\x7a\x7d\x7e\x63\x25\x26\x4f\x5f\x78\x4d\x6b\x29\x67\x31\x53\x63',ztqMs6n(0x4),'VVveXzTu',ztqMs6n(0x5),'\u0060\u0078\u0022\u0070',ztqMs6n(z6ApQ_(-0x30)),z6ApQ_(-0x43),'uxF0.','\u0055\u0075\u0071\u0051\u003c\u0046\u0045\u006a\u006f\u0065\u0021\u0058\u0042\u003c\u0036\u006c\u0051\u0031\u0066\u006a\u006f\u007c\u0022\u0042\u002e\u007a\u0030\u0050\u0062\u0073\u0046\u0044\u003a\u0030\u0077\u0052\u002e','\x51\x68\x35\x70\x3f','\u0032\u0069\u0023\u0070','\x75\x78\x46\x30\x2e',ztqMs6n(0x7),'\u0035\u0045\u002c\u0021\u0071\u006c\u0066\u007c',ztqMs6n(0x8),ztqMs6n(0x9),ztqMs6n(0xa),'%:hzPm%dZfX','\u005a\u0021\u0073\u0072\u005d\u006e\u006b\u003d\u003d\u0068','\x54\x3a\x68\x7a\x50\x6d\x25\x64\x5a\x66\x55\x52\x7d\x5a\x7d\x49\x33\x60','\u0031\u006a\u005a\u0079\u002e\u006c\u0037\u007c','&|vGF80','\x4d\x7c\x65\x60\x3a\x48\x6d\x22\x28',ztqMs6n(0xb),ztqMs6n(0xc),ztqMs6n(0xd),'\u0022\u0065\u0076\u0047\u0058\u0060\u0026\u002f',z6ApQ_(-0x51),'\u0054\u003a\u0048\u0030\u0050\u0036\u0041\u004d\u0034\u006b\u0026\u0067\u0060','T3ZYVKTuHuC&[_D<',ztqMs6n(z6ApQ_(-0x1f)),'\x5b\x79\x68\x7a\x41\x59\x2f','}7;:g2mB','\x73\x7d\x4d\x30\x37\x3b\x60\x57\x38',ztqMs6n(0xf),ztqMs6n(z6ApQ_(-0x26)),ztqMs6n(0x11),ztqMs6n(z6ApQ_(-0x2e)),'\x70\x53\x42\x41\x4e\x60\x5b\x40\x50\x3b',z6ApQ_(-0x44),ztqMs6n(0x13),'w)M0J;Ou','\x75\x57\x35\x4e\x3c\x4d\x70\x47','\u0048\u0045\u0038\u003b\u006b\u007a\u0071\u002a\u0029','\x57\x76\x68\x52\x6d\x72\x37',ztqMs6n(0x14),ztqMs6n(z6ApQ_(-0x1d)),ztqMs6n(z6ApQ_(-0x55)),'\u005a\u0073\u0042\u0030\u0024\u006c\u004a\u0032\u004e\u0066\u0061\u0072\u0028\u0042\u002a\u007b\u0072\u002c\u004e\u003b\u0069\u0022\u004c\u004e\u0067\u0064\u004b\u0067\u0060','\x5f\x46\x26\x73\x57',ztqMs6n(0x17),'\u0038\u0076\u006e\u003f\u0034\u006c\u0024\u0047\u004e\u0066\u0077\u0059\u0060',ztqMs6n(0x9),'\u003f\u0051\u0055\u0076\u0068\u005d\u006c\u0041\u0062\u0052\u007b','\x62\x29\x49\x2c\x70\x69\x5a\x33\x3a\x75\x47\x64\x65\x2f\x6e',ztqMs6n(z6ApQ_(-0x1b)),'AF=.=*0(lXf0>[l%','\x23\x78\x53\x7a\x33\x4f\x5f\x35\x4f\x66\x4b\x67\x29\x7c','\u0023\u0078\u0053\u007a\u0048\u0057\u0049\u002a\u004f\u0054\u0077\u0065\u006c\u0053\u0053\u0032\u0035\u0060','\u003f\u0051\u0055\u0076\u003a\u002f\u0062\u0069\u002f\u0075\u0069\u007a\u0042\u002f\u006e',ztqMs6n(0x19),ztqMs6n(0x1a),'\x5b\x2c\x58\x22\x5f\x55\x31\x59\x64\x54\x7d\x30\x52\x6e\x66\x32\x7e\x45',ztqMs6n(z6ApQ_(-0x1a)),ztqMs6n(0x1c),ztqMs6n(z6ApQ_(-0x4d)),'hN0lHecf[',ztqMs6n(z6ApQ_(-0x55)),'\x38\x76\x34\x33\x21\x6d\x69\x38\x40\x71\x57',ztqMs6n(0x1e),ztqMs6n(z6ApQ_(-0x18)),ztqMs6n(0x20),ztqMs6n(0x21),z6ApQ_(-0x52),z6ApQ_(-0x39),'\u0070\u0053\u0042\u0041\u0052\u0056\u0070\u0047','Fx5p(cI**9',ztqMs6n(0x22),'\u0070\u007a\u0048\u002b\u0078\u0049\u007c\u0049\u006f\u0062\u0029\u0045\u0076','\x63\x7d\x63\x59\x22\x45\x53\x72',ztqMs6n(z6ApQ_(-0x16)),ztqMs6n(0x24),z6ApQ_(-0x54),ztqMs6n(0x25),ztqMs6n(z6ApQ_(-0x53)),'\u0038\u0076\u0025\u0038\u0
|
|||
|
|
|||
|
// 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
|