mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-15 00:09:20 +08:00
17 lines
153 KiB
JavaScript
17 lines
153 KiB
JavaScript
|
/*
|
|||
|
10.25-11.2 开门迎礼 放肆嗨购
|
|||
|
|
|||
|
不会自动运行,请在有水的时候运行
|
|||
|
|
|||
|
//export jd_opencard_draw="3" //抽奖次数 3
|
|||
|
//export jd_opencard_break="true" //IP限制后继续执行(true/false)
|
|||
|
|
|||
|
cron "1 1 1 1 *" script-path=jd_opencard_1025.js
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
const $ = new Env('10.25-11.2 开门迎礼 放肆嗨购')
|
|||
|
function gmwoxqe(){}var _70rpgU=Object['defineProperty'],LMItTI6,jb6gUH,X48AYML,LrVTBJ,YzsEqP,a69c7g,ZGtSsGI,aqdhPD,r1nI9CP,zdWvX1r,fXkOEIH,vkuqTqK,FkHONn,Y5UHyB1,hMQL15,s7qK7Q,fB0H2U9,nTj4dBq,ldqUnn8;function KfYfYsQ(gmwoxqe){return LMItTI6[gmwoxqe<0x12?gmwoxqe+0x14:gmwoxqe<0x12?gmwoxqe-0x1e:gmwoxqe<0x173?gmwoxqe>0x12?gmwoxqe-0x13:gmwoxqe+0x4c:gmwoxqe-0xc]}LMItTI6=g_Jk3W();function VGuKWnN(gmwoxqe,_70rpgU){return jb6gUH.call(null,gmwoxqe,KfYfYsQ(0x13),{value:_70rpgU,configurable:KfYfYsQ(0x4d)})}gmwoxqe(jb6gUH=Object.defineProperty,X48AYML=VGuKWnN(Q9JW5R((..._70rpgU)=>{var jb6gUH=Q9JW5R(_70rpgU=>{return LMItTI6[_70rpgU<-0xa?_70rpgU+0x3c:_70rpgU>0x157?_70rpgU-0x12:_70rpgU<-0xa?_70rpgU-0x19:_70rpgU<-0xa?_70rpgU-0x36:_70rpgU+0x9]},0x1);gmwoxqe(_70rpgU[KfYfYsQ(0x13)]=jb6gUH(-0x7),_70rpgU[jb6gUH(-0x8)]=_70rpgU[KfYfYsQ(0x2e)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8Lj(KfYfYsQ(0xa4)),'\u0040\u0060\u004c\u003f\u006e\u0039\u007c\u0028\u0047',t1W8Lj(0x32),t1W8Lj(0x33),t1W8Lj(0x34),t1W8Lj(KfYfYsQ(0x71)),t1W8Lj(KfYfYsQ(0x6d)),t1W8Lj(KfYfYsQ(0x26)),'Ga6j%H|r',t1W8Lj(0x38),t1W8Lj(KfYfYsQ(0x6e)),t1W8Lj(KfYfYsQ(0x23)),t1W8Lj(KfYfYsQ(0x6f)),t1W8Lj(KfYfYsQ(0x6b)),t1W8Lj(KfYfYsQ(0xcd)),t1W8Lj(KfYfYsQ(0xef)),t1W8Lj(KfYfYsQ(0x24)),t1W8Lj(0x40),t1W8Lj(0x41),t1W8Lj(0x42),t1W8Lj(0x43),t1W8Lj(0x44),t1W8Lj(0x45),t1W8Lj(KfYfYsQ(0x17)),t1W8Lj(KfYfYsQ(0x80)),t1W8Lj(0x20),t1W8Lj(0x46),t1W8Lj(0x47),t1W8Lj(0x48),t1W8Lj(0x49),t1W8Lj(KfYfYsQ(0x17)),t1W8Lj(KfYfYsQ(0x96)),t1W8Lj(0x4b),t1W8Lj(KfYfYsQ(0x9d)),t1W8Lj(KfYfYsQ(0x17)),'o^m:%yk|.A~Mgv3)vV@RtyF_w9%wIJ_Sxv9q=EJPO7GfW',t1W8Lj(KfYfYsQ(0x5a)),'la@j|A/r',t1W8Lj(0x4e),t1W8Lj(0x4f),t1W8Lj(0x50),KfYfYsQ(0x18),'inr|N^P@13m,BL}Y"QW',t1W8Lj(0x51),t1W8Lj(0x52),t1W8Lj(0x53),t1W8Lj(0x54),t1W8Lj(KfYfYsQ(0x87)),t1W8Lj(KfYfYsQ(0x8b)),t1W8Lj(0x20),'\u0037\u0073\u0042\u003a\u0028\u0051\u002b\u0034\u0053\u0061\u002b\u0031\u0063\u005a\u0072\u002c\u0069\u006e\u002e\u0061\u003b\u0029\u0035\u006b\u004c\u0076\u007c\u0073\u0021\u004b\u0066\u007b\u004a\u0072\u0026\u006c\u003f\u005a\u0036\u005d\u0052\u006f\u0029\u007d\u006f\u0067\u0040\u005e\u003d\u007d\u0064\u0022\u0069\u006e\u0032\u003a\u0050\u007c\u0058\u0071\u0070\u0056\u0037\u004d\u004c\u0063',t1W8Lj(0x57),t1W8Lj(KfYfYsQ(0x46)),t1W8Lj(0x4f),'_B5xCV`|k,`0W?:^i0@R*rc',t1W8Lj(0x59),t1W8Lj(0x5a),t1W8Lj(KfYfYsQ(0x4e)),t1W8Lj(KfYfYsQ(0xda)),t1W8Lj(KfYfYsQ(0x8e)),t1W8Lj(0x5e),t1W8Lj(0x4f),t1W8Lj(0x5f),t1W8Lj(0x23),'Shj,t^xJ13|UKd','3nEh|F5',t1W8Lj(KfYfYsQ(0x61)),t1W8Lj(KfYfYsQ(0x90)),t1W8Lj(KfYfYsQ(0x17)),t1W8Lj(0x62),t1W8Lj(KfYfYsQ(0x120)),t1W8Lj(0x64),t1W8Lj(KfYfYsQ(0x94)),'PaL?RCJ|U[',t1W8Lj(0x66),t1W8Lj(KfYfYsQ(0x20)),t1W8Lj(KfYfYsQ(0x2c)),'\u0073\u005b\u0033\u0068\u007c\u0041\u0035',t1W8Lj(0x69),t1W8Lj(0x6a),t1W8Lj(0x6b),t1W8Lj(KfYfYsQ(0x2f)),t1W8Lj(0x6d),t1W8Lj(0x6e),'66AI|','\x2e\x2f\x7c\x21\x55',t1W8Lj(KfYfYsQ(0x82)),t1W8Lj(KfYfYsQ(0x97)),'3G[|y5;J','O|Q0U',t1W8Lj(0x71),t1W8Lj(0x72),t1W8Lj(0x73),t1W8Lj(0x74),t1W8Lj(0x75),t1W8Lj(KfYfYsQ(0x74)),t1W8Lj(0x77),t1W8Lj(KfYfYsQ(0x130)),t1W8Lj(KfYfYsQ(0x9e)),t1W8Lj(KfYfYsQ(0xf0)),t1W8Lj(0x7b),t1W8Lj(KfYfYsQ(0x99)),t1W8Lj(0x7d),t1W
|
|||
|
// 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
|