faker3/jd_tj_ttlhb.js

13 lines
107 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
特价-天天领红包
jd_tj_ttlhb_tx // 是否提现,默认不提现
cron "1 4,21 * * *" script-path=jd_tj_ttlhb.js, tag=特价-天天领红包
*/
const $ = new Env('特价-天天领红包')
2024-08-30 14:52:13 +08:00
function PNwKMB1(){}var MUROoOS=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],j2UI8C,ztYNjl,L89OmN,hyZfW9,qPUl_1W,W4N1d5,BBcyyz,S8JaP7,XETTvy,vFs44E,Is7LZNj,y3tHUdF,YovvUy,tf0Rwk5,HQXckr,PWWEvM8,cMs_MVQ,k8ZgQIY,i7c4rz,t4oeuwn,KSIWAPf;function Zh5VTrT(PNwKMB1){return j2UI8C[PNwKMB1>-0x16?PNwKMB1<0x10f?PNwKMB1+0x15:PNwKMB1-0x5f:PNwKMB1+0x2c]}j2UI8C=FnpH24();function zLWKoyj(PNwKMB1,MUROoOS){return ztYNjl.call(null,PNwKMB1,'length',{value:MUROoOS,configurable:Zh5VTrT(0x92)})}PNwKMB1(ztYNjl=Object.defineProperty,L89OmN=LNqKiyW((PNwKMB1,MUROoOS)=>{return MUROoOS(PNwKMB1())},0x2)(CSoyrtA,MvdYjJ));var Q6wKDJZ=[],W9kyZ7=[fzMPK3J(0x0),fzMPK3J(0x1),fzMPK3J(Zh5VTrT(0x1)),fzMPK3J(0x3),fzMPK3J(0x4),fzMPK3J(Zh5VTrT(-0x2)),fzMPK3J(Zh5VTrT(0x7)),fzMPK3J(Zh5VTrT(0x8)),fzMPK3J(Zh5VTrT(0x18)),fzMPK3J(0x9),fzMPK3J(Zh5VTrT(0x1b)),fzMPK3J(Zh5VTrT(0xf)),fzMPK3J(0xc),fzMPK3J(Zh5VTrT(0xd)),fzMPK3J(Zh5VTrT(0x1c)),fzMPK3J(0xf),fzMPK3J(Zh5VTrT(-0x10)),fzMPK3J(0x11),fzM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f|*?1','fd8QP?3O8h5E.yyK|Ryn@',fzMPK3J(Zh5VTrT(0x58)),fzMPK3J(0x7c),fzMPK3J(0x7d),fzMPK3J(0x7e),Zh5VTrT(-0x9),fzMPK3J(0x7f),fzMPK3J(Zh5VTrT(0x6)),fzMPK3J(Zh5VTrT(-0x14)),fzMPK3J(Zh5VTrT(0x34)),fzMPK3J(Zh5VTrT(0x31)),fzMPK3J(0x83),fzMPK3J(0x70),';|`N8PL+#_<qi',fzMPK3J(Zh5VTrT(0x5c)),'f|*?1',fzMPK3J(Zh5VTrT(0x60)),fzMPK3J(0x86),fzMPK3J(Zh5VTrT(-0x13)),fzMPK3J(0x66),fzMPK3J(Zh5VTrT(0xb6)),fzMPK3J(0x87),fzMPK3J(0x88),fzMPK3J(0x89),fzMPK3J(0x8a),fzMPK3J(Zh5VTrT(0x5d)),fzMPK3J(Zh5VTrT(0x5e)),fzMPK3J(0x15),fzMPK3J(Zh5VTrT(0x19)),fzMPK3J(0x8d),fzMPK3J(0x8e),fzMPK3J(0x8f),fzMPK3J(0x90),fzMPK3J(0x91),fzMPK3J(0x92),fzMPK3J(0x93),fzMPK3J(Zh5VTrT(-0x15)),fzMPK3J(0x15),fzMPK3J(Zh5VTrT(-0x12)),fzMPK3J(0x94),fzMPK3J(0x95),fzMPK3J(Zh5VTrT(0x3b)),fzMPK3J(0x96),Zh5VTrT(-0x3),fzMPK3J(Zh5VTrT(0x64)),fzMPK3J(0x98),'\u003d\u0061\u0033\u005a\u0044\u005b\u0025\u007a\u0050\u0028\u007c\u0051\u006
2024-06-28 15:38:28 +08:00
// 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