faker3/jd_dwapp.js

13 lines
87 KiB
JavaScript
Raw Normal View History

2024-11-12 11:17:55 +08:00
/*
活动名称积分换话费
入口首页-话费充值
cron: 56 7,19 * * *
*/
const $ = new Env('积分换话费');
function SeoTjAV(){}var yJCEz_=Object['defineProperty'],DjYcVG,YyjIogX,TtfEt2N,mDhVGXe,Y41qMP,qgLexF,MGNZBao,HhZy0TV,SuXfbG,Wf6G4j,XBHiM7G,DjjwqNd,OJK_2C,HMuwZB,BR0CHj,ylljill;function jh7QuTX(SeoTjAV){return DjYcVG[SeoTjAV<-0xd?SeoTjAV-0x4b:SeoTjAV>0xab?SeoTjAV-0x12:SeoTjAV+0xc]}DjYcVG=yEETW4D();function _gVSQb(SeoTjAV,yJCEz_){var TtfEt2N=d7WZLXD(SeoTjAV=>{return DjYcVG[SeoTjAV>0x84?SeoTjAV-0xd:SeoTjAV>0x84?SeoTjAV-0x3c:SeoTjAV+0x33]},0x1);return YyjIogX.call(TtfEt2N(-0x10),SeoTjAV,'length',{value:yJCEz_,configurable:jh7QuTX(0x65)})}SeoTjAV(YyjIogX=Object.defineProperty,TtfEt2N=d7WZLXD((SeoTjAV,yJCEz_)=>{return yJCEz_(SeoTjAV())},0x2)(iUKpCC8,OCY7Qj));var Hg274O=[],qg4Dih=[hOjCzj(0x0),hOjCzj(jh7QuTX(0x7)),hOjCzj(0x2),hOjCzj(jh7QuTX(0x6)),hOjCzj(0x4),hOjCzj(0x5),hOjCzj(jh7QuTX(0x5)),hOjCzj(0x7),hOjCzj(jh7QuTX(0x10)),hOjCzj(jh7QuTX(0x2a)),hOjCzj(jh7QuTX(-0x4)),hOjCzj(0xb),hOjCzj(0xc),hOjCzj(jh7QuTX(0x1a)),hOjCzj(jh7QuTX(0xd)),hOjCzj(0xf),hOjCzj(0x10),hOjCzj(0x11),hOjCzj(0x12),'p}|6',hOjCzj(jh7QuTX(0x1f)),hOjCzj(0x14),hOjCzj(jh7QuTX(0x49)),hOjCzj(jh7QuTX(-0x2)),hOjCzj(0x17),hOjCzj(0x18),hOjCzj(0x19),hOjCzj(jh7QuTX(0x24)),hOjCzj(jh7QuTX(0x25)),hOjCzj(0x1c),hOjCzj(0x1d),hOjCzj(jh7QuTX(0x26)),'W^g3s>bReci|K',hOjCzj(jh7QuTX(0xc)),hOjCzj(0x20),hOjCzj(jh7QuTX(0x55)),hOjCzj(0x22),hOjCzj(0x23),hOjCzj(0x24),'\u0021\u006e\u003a\u002f\u0063\u0079\u0063\u003f\u0036\u0042\u0055\u005f\u004c\u0065\u0055\u0078\u0066\u0047\u006a\u0066\u0055\u0037\u002f\u0049\u0038\u0029\u0033\u0034\u0054\u0056\u0057\u005b\u0026\u006d\u0030\u003b\u0024\u0075\u002b\u0063\u006c\u0057\u0049\u003d\u004e\u004a\u0050\u0022\u0052\u0079\u003b\u0044\u0076\u0061\u0059\u005d\u0043\u0052\u007c\u006c\u0023\u0050\u0043\u0054\u003a\u0044\u0049\u0038\u007c\u007d\u005a\u0029\u0060\u007c\u002f','&^g3lOvLZhk;#bm3i`xP$u*{!rQFV?4"qVB]N2:~Qr||V?W[(c?H4UaB5c?+5GC&,N6I?,Q,xcm{DdP)2#MPl]Rp4|oy;ez30`Tt^zJQ1CZo31M[Gyn8z/_{QiK5sejROVMPl]?]wXA=^pjR#V)8ESGnzfA=rzbR12A8z/2):CA*<JW[&FCGZU0',hOjCzj(0x25),'W^TfV@q|v,YAP;H5?K',hOjCzj(0x26),hOjCzj(0x27),hOjCzj(0x28),hOjCzj(jh7QuTX(-0xc)),'Y`|C(p4?tclAK',hOjCzj(jh7QuTX(-0xa)),hOjCzj(jh7QuTX(0x42)),hOjCzj(jh7QuTX(0x3b)),hOjCzj(0x2d),hOjCzj(0x2e),hOjCzj(0x2f),hOjCzj(0x30),hOjCzj(0x31),hOjCzj(jh7QuTX(0x47)),hOjCzj(jh7QuTX(0x5a)),hOjCzj(0x34),hOjCzj(0x35),hOjCzj(jh7QuTX(0x4b)),hOjCzj(0x37),hOjCzj(0x38),hO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7QuTX(0x15)),hOjCzj(jh7QuTX(0x4e)),hOjCzj(0x5a),hOjCzj(0x5b),hOjCzj(jh7QuTX(0x36)),hOjCzj(0x5d),hOjCzj(0x5e),hOjCzj(jh7QuTX(0x31)),hOjCzj(jh7QuTX(0x54)),hOjCzj(0x61),hOjCzj(0x62),hOjCzj(jh7QuTX(0x71)),hOjCzj(0x63),hOjCzj(0x64),hOjCzj(0x65),hOjCzj(0x66),'\x44\x71\x4a\x3e\x7c\x48\x34\x3a\x42\x5b\x77',hOjCzj(0x67),hOjCzj(jh7QuTX(-0x8)),hOjCzj(0x68),hOjCzj(0x69),hOjCzj(jh7QuTX(-0x1)),hOjCzj(0x6a),hOjCzj(0x6b),hOjCzj(jh7QuTX(0x0)),hOjCzj(0x6d),hOjCzj(jh7QuTX(0x3e)),hOjCzj(0x6f),hOjCzj(jh7QuTX(0xe)),hOjCzj(0x71),hOjCzj(0x72),hOjCzj(0x73),hOjCzj(jh7QuTX(0x72)),hOjCzj(0x75),hOjCzj(0x76),hOjCzj(0x77),hOjCzj(0x78),hOjCzj(0x79),hOjCzj(jh7QuTX(0x75)),hOjCzj(
// 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