faker3/jd_tj_qdtx.js

17 lines
101 KiB
JavaScript
Raw Normal View History

2024-11-12 11:17:55 +08:00
/*
活动名称特价-签到提现
环境变量jd_tj_qdtx_threads // 控制并发线程数正整数默认1最大3
jd_tj_qdtx_interval // 自定义运行间隔时长整数单位毫秒默认1000
jd_tj_qdtx_notify // 是否推送通知true/false默认不推送
jd_tj_qdtx_pinFilter // 账号pin过滤多个用@进行分割
jd_tj_qdtx_exchange_mode // 兑换模式0 红包 1 现金 默认兑换现金
cron:1 1,17 * * *
*/
const $ = new Env('特价-签到提现')
2024-11-21 14:54:16 +08:00
function TX6_nH(){}var PbfURrh=Object['defineProperty'],dQmr6W,PbNby7M,ANbfcg8,PY47mee,R_Etse,oRM8OAm,ShJIGbp,UclEqSP,cG4WUo1,Tct5dn,EJD17D,f4J6Fo7,vSvbqWD,oPj3GP,sGwD1DK,wrhe5B,ngcFbMe,TgNLFz;function UUDWA0(TX6_nH){return dQmr6W[TX6_nH<-0x4f?TX6_nH+0x37:TX6_nH<-0x4f?TX6_nH+0x1f:TX6_nH+0x4e]}dQmr6W=LjmwuPn();function WKuCaX(TX6_nH,PbfURrh){return PbNby7M.call(null,TX6_nH,UUDWA0(-0x32),{value:PbfURrh,configurable:!0x0})}TX6_nH(PbNby7M=Object.defineProperty,ANbfcg8=Ht3qOE((TX6_nH,PbfURrh)=>{return PbfURrh(TX6_nH())},0x2)(nIIZe4,FZ_W8g));var ujgXNj=[],m7EBU4N=[XfomPK1(UUDWA0(-0x35)),XfomPK1(UUDWA0(-0x38)),XfomPK1(0x2),XfomPK1(UUDWA0(-0x3a)),XfomPK1(UUDWA0(-0x37)),XfomPK1(0x5),XfomPK1(0x6),XfomPK1(UUDWA0(-0x34)),XfomPK1(0x8),XfomPK1(UUDWA0(-0x29)),XfomPK1(UUDWA0(-0x26)),XfomPK1(0xb),XfomPK1(UUDWA0(-0x2b)),XfomPK1(UUDWA0(-0x1d)),XfomPK1(0xe),XfomPK1(UUDWA0(-0x1a)),XfomPK1(0x10),XfomPK1(0x11),XfomPK1(UUDWA0(-0x19)),XfomPK1(0x13),XfomPK1(UUDWA0(0x55)),XfomPK1(0x15),XfomPK1(0x16),XfomPK1(0x17),XfomPK1(0x18),XfomPK1(UUDWA0(-0x4e)),'\u0053\u004d\u0022\u002f\u002a\u0067\u005f\u0025\u0045\u007c\u0070\u0071\u0056\u002a\u0029\u003c\u002f\u0058\u0069\u0025\u0045\u0061\u004c\u0056\u0034\u0030\u007b\u003d\u0078\u0033\u0067\u0038\u005a\u007b\u002c\u0036\u0034',XfomPK1(UUDWA0(0x54)),XfomPK1(0x1b),XfomPK1(UUDWA0(-0x17)),XfomPK1(UUDWA0(-0x4e)),XfomPK1(0x1d),XfomPK1(UUDWA0(-0x15)),XfomPK1(UUDWA0(-0x2e)),XfomPK1(0x20),XfomPK1(0x21),XfomPK1(UUDWA0(-0x14)),XfomPK1(0x23),XfomPK1(0x24),'|Y,z~3g_',XfomPK1(0x25),XfomPK1(0x26),XfomPK1(UUDWA0(-0x13)),XfomPK1(0x28),XfomPK1(0x29),XfomPK1(0x2a),XfomPK1(0x2b),XfomPK1(UUDWA0(-0xd)),XfomPK1(0x2d),XfomPK1(0x2e),XfomPK1(UUDWA0(-0x2a)),'NSPTVreB#ngY(VZgls=)U?`/E+uIJAO,M%a>=w3tg:|H$m;]9{sh>',XfomPK1(UUDWA0(-0x49)),XfomPK1(UUDWA0(-0x4e)),XfomPK1(0x31),XfomPK1(0x32),XfomPK1(UUDWA0(-0xb)),XfomPK1(UUDWA0(-0x9)),XfomPK1(0x35),XfomPK1(0x36),XfomPK1(UUDWA0(-0xf)),XfomPK1(0x38),XfomPK1(UUDWA0(-0x7)),'\u0036\u003a\u0049\u0034\u006c\u0026\u005a\u0054\u006a\u0055\u002a\u0078\u004f\u0048\u0073\u007c\u0060\u0028\u006d\u006e\u0022\u002f\u002b\u002b\u003a\u0068',XfomPK1(UUDWA0(-0x4d)),XfomPK1(UUDWA0(-0x6)),XfomPK1(UUDWA0(-0x5)),XfomPK1(0x3d),XfomPK1(0x3e),XfomPK1(0x30),XfomPK1(UUDWA0(-0x2d)),XfomPK1(0x40),XfomPK1(0x41),XfomPK1(UUDWA0(0x7)),XfomPK1(0x43),XfomPK1(0x44),XfomPK1(0x45),XfomPK1(UUDWA0(-0x4d)),XfomPK1(0x3b),XfomPK1(UUDWA0(0x15)),XfomPK1(0x47),XfomPK1(0x30),XfomPK1(0x48),XfomPK1(0x49),XfomPK1(0x1f),XfomPK1(UUDWA0(0x10)),'\x78\x3e\x35\x6a\x36\x47\x68\x33\x7c',XfomPK1(0x4b),XfomPK1(0x4c),'JITYqc5YE+6y/|9',XfomPK1(UUDWA0(0x12)),UUDWA0(-0x45),XfomPK1(UUDWA0(0xf)),XfomPK1(0x4f),XfomPK1(0x50),XfomPK1(0x51),XfomPK1(UUDWA0(-0x47)),XfomPK1(0x53),XfomPK1(0x54),XfomPK1(0x55),XfomPK1(0x56),XfomPK1(0x30),'aSm8oJchFqWP:|^',XfomPK1(0x57),XfomPK1(UUDWA0(0xa)),XfomPK1(0x59),XfomPK1(0x5a),XfomPK1(UUDWA0(-0x1e)),XfomPK1(0x5c),'uMb1:n+V6(S|fbbR&<',XfomPK1(0x5d),XfomPK1(UUDWA0(0x14)),XfomPK1(UUDWA0(-0x3d)),XfomPK1(UUDWA0(0x16)),XfomPK1(0x2e),XfomPK1(UUDWA0(-0x40)),XfomPK1(0x62),XfomPK1(0x63),XfomPK1(UUDWA0(0x17)),XfomPK1(UUDWA0(0x18)),XfomPK1(UUDWA0(-0x4a)),XfomPK1(0x67),XfomPK1(0x68),XfomPK1(UUDWA0(0x19)),XfomPK1(0x6a),XfomPK1(UUDWA0(-0x4c)),XfomPK1(0x6c),'JM&@35|a',XfomPK1(UUDWA0(-0x4b)),XfomPK1(UUDWA0(0x1a)),XfomPK1(UUDWA0(0xd)),'%/6Lqn+V6(S|fbbR:$b1]',XfomPK1(0x70),'|hc[ogvp',XfomPK1(0x71),XfomPK1(UUDWA0(0x1b)),XfomPK1(0x73),XfomPK1(UUDWA0(0x1d)),XfomPK1(0x75),XfomPK1(0x76),XfomPK1(0x67),XfomPK1(0x68),XfomPK1(0x77),XfomPK1(UUDWA0(0x26)),XfomPK1(0x6a),XfomPK1(UUDWA0(-0x4c)),XfomPK1(UUDWA0(-0x4b)),'%/6Lqn+V6(S|fbbR:$b1]',XfomPK1(0x64),XfomPK1(UUDWA0(-0x3c)),XfomPK1(0x71),XfomPK1(0x7a),XfomPK1(0x7b),XfomPK1(0x7c),'JM&@35|a',XfomPK1(0x7d),XfomPK1(0x7e),XfomPK1(0x7f),'\x5e\x7d\x53\x21\x6e\x31\x7c\x45\x53\x39\x3c\x4f\x61\x5a\x45\x64\x7e\x6e\x79\x44\x78',XfomPK1(UUDWA0(-0x33)),XfomPK1(0x81),XfomPK1(0x82),'(9Gn|',XfomPK1(0x83),XfomPK1(UUDWA0(-0x4a)),XfomPK1(0x84),XfomPK1(0x85),XfomPK1(0x86),XfomPK1(UUDWA0(0x2c)),XfomPK1(0x88),XfomPK1(UUDWA0(0x25)),XfomPK1(UUDWA0(-0x46)),XfomPK1(UUDWA0(0x2)),XfomPK1(0x8b),XfomPK1(UUDWA0(-0x48)),'\u004a\u004
2024-11-12 11:17:55 +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