faker3/jd_tj_ttlhb.js

13 lines
122 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-09-15 04:05:38 +08:00
function a6Hm0V1(){}var D0Tq_Cx=Object['defineProperty'],itscVl0,KRTbWek,Q_rsJgh,CPF1rp,PR0HgG,QLn6m4F,Tvn9J_,t8uYea,bV6vulW,CZvQmj,h6jBhC7,jfhxcqu,Uqdwpq,p8Z4480,vma7PW,UFsD383,QK1DyNL,GVfLF99;function VcvP_Lk(a6Hm0V1){return itscVl0[a6Hm0V1<0x4d?a6Hm0V1+0x64:a6Hm0V1>0x17d?a6Hm0V1+0x13:a6Hm0V1-0x4e]}itscVl0=cEgZYnE();function IJbtuU(a6Hm0V1,D0Tq_Cx){return KRTbWek.call(VcvP_Lk(0x115),a6Hm0V1,'length',{value:D0Tq_Cx,configurable:!0x0})}a6Hm0V1(KRTbWek=Object.defineProperty,Q_rsJgh=dgFz1kz((a6Hm0V1,D0Tq_Cx)=>{return D0Tq_Cx(a6Hm0V1())},0x2)(iHQkhD,Jc76wgN));var hDAJQh=[],RogQo_T=['\u0079\u0035\u007c\u0057\u007d\u0064\u005d\u0063',ZHorzP(0x0),ZHorzP(VcvP_Lk(0x61)),'\u007c\u0021\u0045\u003d\u0024\u005b\u002f\u0045',ZHorzP(VcvP_Lk(0x63)),'oJf:|{~|',ZHorzP(0x3),ZHorzP(VcvP_Lk(0x75)),'I>|$[HJS+,_3$nnUku',ZHorzP(0x5),'\x49\x3e\x7c\x24\x5b\x48\x4a\x53\x2b\x2c\x5f\x33\x24\x6e\x6e\x55\x7a\x55\x40\x7e\x2a','I>|$[H$b',ZHorzP(0x6),ZHorzP(0x7),'I>|$[HJS+,_3$nnUZVt$})5T(,AMu',ZHorzP(VcvP_Lk(0x76)),ZHorzP(VcvP_Lk(0x7f)),ZHorzP(VcvP_Lk(0xcf)),ZHorzP(0xb),ZHorzP(VcvP_Lk(0x69)),ZHorzP(0xd),'Kj|]N6y(7}[1XNe8]3<(7IUXQM+@nY6pB+kxQ',ZHorzP(0xe),'\x7c\x2b\x24\x45',ZHorzP(VcvP_Lk(0x6c)),ZHorzP(0x10),ZHorzP(VcvP_Lk(0x65)),ZHorzP(VcvP_Lk(0x78)),ZHorzP(VcvP_Lk(0x50)),ZHorzP(VcvP_Lk(0x82)),ZHorzP(0x14),'\u007c\u004a\u004e\u0073\u003b\u0076\u0037\u0040\u0040\u003a',ZHorzP(VcvP_Lk(0x81)),'\x46\x34\x4b\x76\x77\x66\x7c\x36',ZHorzP(VcvP_Lk(0x99)),ZHorzP(0x17),ZHorzP(VcvP_Lk(0x8b)),'?m|o7H56',ZHorzP(0x19),ZHorzP(VcvP_Lk(0x8c)),'\x7c\x4d\x74\x6f\x2b\x60\x63',ZHorzP(VcvP_Lk(0x4e)),ZHorzP(0x1c),ZHorzP(VcvP_Lk(0x98)),'2`|~5i2%t%oAh8XU',ZHorzP(VcvP_Lk(0x95)),ZHorzP(0x1f),'\u007c\u002b\u004a\u0071\u0070\u004d\u0060\u0062',ZHorzP(0x20),ZHorzP(VcvP_Lk(0x94)),'\u0053\u0035\u0066\u0039\u0029\u003b\u007e\u007c\u0037\u0063\u0032\u002b\u002a\u006f\u003f\u0030\u004a\u0065',ZHorzP(0x22),'|+$E',ZHorzP(0x23),ZHorzP(0x12),ZHorzP(0x24),ZHorzP(0x25),ZHorzP(0x26),ZHorzP(0x27),ZHorzP(0x28),ZHorzP(0x29),ZHorzP(0x2a),'\u003d\u0048\u003d\u007d\u0060\u005b\u002b\u0030\u003a\u0060\u0050\u007c\u003b\u006f\u0066\u0030\u004d\u0073\u0067\u005e\u005e\u003b\u0037\u0033',ZHorzP(0x2b),ZHorzP(0x2c),ZHorzP(0x2d),'TuES@*|m{FwYRB^',ZHorzP(0x2e),ZHorzP(VcvP_Lk(0x59)),ZHorzP(0x30),ZHorzP(0x31),ZHorzP(0x32),ZHorzP(VcvP_Lk(0xdd)),ZHorzP(VcvP_Lk(0xa5)),ZHorzP(0x35),ZHorzP(0x36),'];|f[Bfs(4',ZHorzP(0x37),ZHorzP(0x38),ZHorzP(VcvP_Lk(0xa9)),ZHorzP(0x3a),'pA)2G$Y|*Dv',ZHorzP(0x3b),ZHorzP(0x3c),ZHorzP(VcvP_Lk(0x16e)),ZHorzP(VcvP_Lk(0x4f)),ZHorzP(0x3f),ZHorzP(VcvP_Lk(0xab)),ZHorzP(0x41),ZHorzP(0x42),ZHorzP(0x43),ZHorzP(0x44),ZHorzP(0x45),ZHorzP(0x46),ZHorzP(0x47),ZHorzP(0x48),ZHorzP(0x49),ZHorzP(0x4a),ZHorzP(0x4b),ZHorzP(0x4c),ZHorzP(0x4d),'$xfif5=ld,>51"f|',ZHorzP(VcvP_Lk(0x7d)),ZHorzP(0x4f),ZHorzP(0x50),ZHorzP(VcvP_Lk(0xbd)),ZHorzP(VcvP_Lk(0xba)),ZHorzP(VcvP_Lk(0x9e)),ZHorzP(VcvP_Lk(0xbf)),ZHorzP(VcvP_Lk(0x9d)),ZHorzP(0x56),ZHorzP(0x57),ZHorzP(VcvP_Lk(0x73)),ZHorzP(VcvP_Lk(0xc1)),'6i*#B"06!r|',ZHorzP(0x5a),ZHorzP(0x5b),ZHorzP(VcvP_Lk(0x55)),ZHorzP(0x5d),ZHorzP(0x5e),ZHorzP(0x5f),ZHorzP(0x60),ZHorzP(VcvP_Lk(0xc4)),ZHorzP(VcvP_Lk(0xc5)),ZHorzP(0x63),ZHorzP(VcvP_Lk(0x74)),ZHorzP(VcvP_Lk(0xc6)),'\u005d\u003a\u0042\u0068\u0052\u0079\u007c\u006d\u003f\u005f\u0041\u0024\u0035',ZHorzP(0x66),ZHorzP(0x67),ZHorzP(0x68),ZHorzP(0x69),ZHorzP(0x6a),ZHorzP(0x6b),'SZ"h"|1yEmx1(%Ej',ZHorzP(0x6c),ZHorzP(0x66),ZHorzP(0x6d),ZHorzP(0x6e),ZHorzP(VcvP_Lk(0xd8)),ZHorzP(0x70),ZHorzP(VcvP_Lk(0xc8)),ZHorzP(0x72),'\u0050\u0036\u002f\u0035\u004c\u0023\u0024\u0074\u0069\u0071\u006b\u0055\u007c\u006c\u004c',ZHorzP(VcvP_Lk(0x4e)),ZHorzP(VcvP_Lk(0xcd)),ZHorzP(VcvP_Lk(0xca)),ZHorzP(0x75),'SZ"hI`HyfVS|P8K',ZHorzP(0x76),ZHorzP(0x77),ZHorzP(VcvP_Lk(0x92)),ZHorzP(0x79),ZHorzP(VcvP_Lk(0xf8)),ZHorzP(0x7b),ZHorzP(0x5a),ZHorzP(0x7c),ZHorzP(0x6e),ZHorzP(0x6f),ZHorzP(0x7d),ZHorzP(VcvP_Lk(0x56)),ZHorzP(0x7f),ZHorzP(0x80),ZHorzP(0x81),ZHorzP(VcvP_Lk(0x8e)),ZHorzP(0x82),ZHorzP(VcvP_Lk(0x4f)),'w/MZ|',ZHorzP(0x83),ZHorzP(VcvP_Lk(0xdb)),VcvP_Lk(0x51),ZHorzP(0x85),ZHorzP(0x26),ZHorzP(0x3a),'qf|~!MAu',ZHorzP(0x86),ZHorzP(0x2f),VcvP_Lk(0x58),ZHorzP(VcvP_
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