faker3/jd_xdly_draw.js

15 lines
184 KiB
JavaScript
Raw Normal View History

2024-10-17 18:20:45 +08:00
/*
东东心动乐园抽奖提现
链接https://pro.m.jd.com/mall/active/2kxGJF9NdMDjyCfvVXMVZrwfXdpT/index.html
活动变量jd_xdly_task //是否做任务获取次数,默认开启
cron:1 1 1 1 *
*/
const $ = new Env('东东心动乐园抽奖提现')
function bFoPTz(){}var foZi729=Object['defineProperty'],teGqTC1,ikxP8kv,HcFLVnx,gOlVdK,S9yRlXJ,bbcinHe,YJcVIpL,kpbrFPG,MXJPNn5,ufZyg8g,SUd3epr,qiSW8tF,TFx0BkY,lRoKbU,scP9kN,Wx7MChX,TAK60dR,ERsFahp,K1h_GF,isLRWgG,ZNdyKy;function GmAJs6C(bFoPTz){return teGqTC1[bFoPTz>-0x64?bFoPTz+0x63:bFoPTz-0x53]}teGqTC1=uXId5vs();function CEYWcV(bFoPTz,foZi729){return ikxP8kv.call(GmAJs6C(0xe7),bFoPTz,GmAJs6C(-0x2a),{value:foZi729,configurable:!0x0})}bFoPTz(ikxP8kv=Object.defineProperty,HcFLVnx=dvum74((bFoPTz,foZi729)=>{return foZi729(bFoPTz())},0x2)(szrVc6g,MpCOOU));var c_0Gud=[],iUKFLN=[LHQ6Kn8(0x0),LHQ6Kn8(0x1),'p|87_y/W',LHQ6Kn8(0x2),LHQ6Kn8(0x3),LHQ6Kn8(GmAJs6C(-0x3e)),LHQ6Kn8(GmAJs6C(-0x22)),LHQ6Kn8(0x6),LHQ6Kn8(GmAJs6C(-0x30)),LHQ6Kn8(0x8),LHQ6Kn8(GmAJs6C(-0x1c)),LHQ6Kn8(0xa),LHQ6Kn8(0xb),LHQ6Kn8(0xc),LHQ6Kn8(0xd),LHQ6Kn8(GmAJs6C(-0x25)),LHQ6Kn8(0xf),LHQ6Kn8(GmAJs6C(0x29)),LHQ6Kn8(GmAJs6C(-0x1f)),LHQ6Kn8(0x12),LHQ6Kn8(0x13),LHQ6Kn8(0x14),LHQ6Kn8(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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