faker3/jd_car_sign.js

16 lines
74 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
2024-06-29 17:05:17 +08:00
活动名称车管家签到
环境变量jd_car_sign_interval // 自定义运行间隔时长整数单位毫秒默认1500
jd_car_sign_notify // 是否推送通知true/false默认不推送
jd_car_sign_pinFilter // 账号pin过滤多个用@进行分割
2024-06-28 15:38:28 +08:00
2024-06-29 17:05:17 +08:00
定时随机
2024-06-28 15:38:28 +08:00
2024-06-29 17:05:17 +08:00
*/
2024-06-28 15:38:28 +08:00
const $ = new Env('车管家签到')
2024-09-04 18:09:54 +08:00
function OXacaS(){}var zTDNeIG=Object['defineProperty'],PJzIrzK,PJOYwhc,tguedu,jhsEHRz,x17FMd,q7FQwdC,ogrb6wi,GlH7l8C,uVJOgWF,plVjm39,atlY3Z,aMNAzz,Ft8bfG,PN39L7,OtQpmOb,tvpFIIu,btXOZiL,wxlu5tw,cB2qrtP;function a1sxcx(OXacaS){return PJzIrzK[OXacaS>-0xf?OXacaS>-0xf?OXacaS<0x8c?OXacaS>-0xf?OXacaS+0xe:OXacaS-0x34:OXacaS-0x39:OXacaS+0x13:OXacaS+0x9]}PJzIrzK=qUtTHR();function z4WZZo(OXacaS,zTDNeIG){return PJOYwhc(OXacaS,a1sxcx(-0x2),{value:zTDNeIG,configurable:a1sxcx(0x53)})}OXacaS(PJOYwhc=Object.defineProperty,tguedu=GiePyNh((OXacaS,zTDNeIG)=>{return zTDNeIG(OXacaS())},0x2)(n39dVe1,gUG6C7));var r5Rs3XF=[],_WQuQtG=[PD2bcZf(a1sxcx(-0xa)),PD2bcZf(0x1),PD2bcZf(0x2),PD2bcZf(0x3),PD2bcZf(a1sxcx(0xd)),PD2bcZf(0x5),PD2bcZf(a1sxcx(0x5)),PD2bcZf(a1sxcx(0xc)),'XE4_(y4Txs|{.i%Z+"V?[i>Al',PD2bcZf(a1sxcx(0x1e)),'XE4_(y4Txs|{.i3X("&G=}L','\u0058\u0045\u0034\u005f\u0028\u0079\u0034\u0054\u0078\u0073\u007c\u007b\u002e\u0069\u004d\u005b\u0028\u0022\u0026\u0047\u003d\u007d\u004c',PD2bcZf(a1sxcx(0x1b)),PD2bcZf(0xa),PD2bcZf(0xb),PD2bcZf(a1sxcx(0x46)),PD2bcZf(0xd),PD2bcZf(0xe),PD2bcZf(0xf),PD2bcZf(a1sxcx(0x16)),PD2bcZf(a1sxcx(0xf)),PD2bcZf(a1sxcx(0x4)),PD2bcZf(0x13),PD2bcZf(0x14),PD2bcZf(0x15),PD2bcZf(0x11),PD2bcZf(0x16),PD2bcZf(0x17),PD2bcZf(0x18),PD2bcZf(0x19),PD2bcZf(0x1a),PD2bcZf(0x1b),PD2bcZf(0x1c),PD2bcZf(0x1d),PD2bcZf(0x1e),'"_j2/3@>=a0Z[/|0AdsENJ)?Sxn,7I!uMb%+s(hi0]lrVt5:Dmd4+','\x26\x3b\x69\x36\x54\x22\x35\x5f\x3f\x63\x62\x3a\x29\x75\x65\x7c\x67\x78\x58\x23\x49\x4e\x57\x57\x3b\x2f',PD2bcZf(a1sxcx(-0xe)),PD2bcZf(0x11),PD2bcZf(a1sxcx(0x35)),PD2bcZf(0x20),PD2bcZf(0x21),PD2bcZf(0x22),PD2bcZf(0x23),PD2bcZf(a1sxcx(0x3a)),PD2bcZf(a1sxcx(0x2d)),PD2bcZf(0x25),PD2bcZf(a1sxcx(0x3b)),PD2bcZf(a1sxcx(0x3d)),PD2bcZf(0x28),PD2bcZf(a1sxcx(-0xe)),PD2bcZf(0x22),PD2bcZf(a1sxcx(0x3e)),PD2bcZf(a1sxcx(0x36)),PD2bcZf(a1sxcx(0x37)),PD2bcZf(0x2c),PD2bcZf(0x2d),PD2bcZf(a1sxcx(-0xb)),PD2bcZf(a1sxcx(0x30)),PD2bcZf(a1sxcx(0x25)),PD2bcZf(0x31),PD2bcZf(a1sxcx(0x48)),PD2bcZf(a1sxcx(-0xe)),PD2bcZf(0x33),'\u0026\u003b\u0069\u0036\u0054\u0022\u0035\u005f\u003f\u0063\u0062\u003a\u0029\u0075\u0065\u007c\u0067\u0078\u0058\u0023\u0049\u004e\u0057\u0057\u003b\u002f',PD2bcZf(a1sxcx(-0xd)),PD2bcZf(0x34),PD2bcZf(0x35),PD2bcZf(0x36),PD2bcZf(a1sxcx(0x44)),PD2bcZf(a1sxcx(0x4a)),PD2bcZf(a1sxcx(0x15)),PD2bcZf(a1sxcx(-0xd)),PD2bcZf(a1sxcx(0x5c)),PD2bcZf(0x3a),PD2bcZf(0x3b),PD2bcZf(0x3c),PD2bcZf(0x3d),PD2bcZf(0x3e),PD2bcZf(a1sxcx(0x1)),PD2bcZf(0x40),PD2bcZf(0x41),PD2bcZf(0x42),PD2bcZf(0x43),PD2bcZf(a1sxcx(-0xe)),PD2bcZf(a1sxcx(0x4c)),'|2.SF',PD2bcZf(0x45),PD2bcZf(a1sxcx(0x0)),PD2bcZf(0x47),PD2bcZf(a1sxcx(0x4e)),'\u0047\u004a\u003a\u003f\u007c\u0038\u0054\u006d\u0048\u0051\u0067\u0033\u0031',PD2bcZf(a1sxcx(-0xe)),PD2bcZf(a1sxcx(0x4f)),PD2bcZf(a1sxcx(-0xc)),PD2bcZf(0x49),PD2bcZf(a1sxcx(-0xc)),PD2bcZf(a1sxcx(0x50)),PD2bcZf(0x4b),PD2bcZf(a1sxcx(-0xe)),PD2bcZf(0x4c),PD2bcZf(a1sxcx(0x51)),PD2bcZf(0x4e),PD2bcZf(0x4f),PD2bcZf(a1sxcx(0x43)),PD2bcZf(0x51),PD2bcZf(a1sxcx(0x3)),PD2bcZf(0x53),PD2bcZf(a1sxcx(0x59)),PD2bcZf(0x55),PD2bcZf(0x56),PD2bcZf(a1sxcx(0x58)),PD2bcZf(0x58),PD2bcZf(0x59),PD2bcZf(a1sxcx(0x5a)),PD2bcZf(a1sxcx(0x1c)),PD2bcZf(0x5c),PD2bcZf(0x5d),PD2bcZf(0x5e),PD2bcZf(a1sxcx(0x57)),PD2bcZf(0x60),PD2bcZf(0x61),PD2bcZf(0x62),PD2bcZf(a1sxcx(0x64)),PD2bcZf(0x64),PD2bcZf(a1sxcx(0x66)),PD2bcZf(a1sxcx(0x67)),PD2bcZf(a1sxcx(0x5f)),PD2bcZf(0x68),PD2bcZf(a1sxcx(0x68)),PD2bcZf(0x6a),PD2bcZf(0x6b),PD2bcZf(0x6c),'c:YI8sh|w','Z"/jDuP}[?ub{;Ca,qH?yA?_W6Q)iXPU@;i6#k4T|smf(iD=M"qNl7vufjY^XPgOGJ:?nN`AfjTkH;Ca="nj#kGEv',PD2bcZf(0x6d),PD2bcZf(0x6e),PD2bcZf(0x6f),PD2bcZf(0x70),PD2bcZf(0x71),'U.0ot+`U_3C52(^eq_;o4LC^WdG5}6p|6v>w4fF4s',PD2bcZf(0x72),PD2bcZf(0x73),PD2bcZf(0x74),PD2bcZf(0x75),PD2bcZf(a1sxcx(0x6d)),PD2bcZf(0x77),PD2bcZf(a1sxcx(0x6e)),PD2bcZf(a1sxcx(0x1f)),PD2bcZf(0x7a),PD2bcZf(0x7b),PD2bcZf(a1sxcx(0x29)),'WR8:.9|AFGk~vxPBcG2!FfC$P6',PD2bcZf(0x7d),PD2bcZf(0x7e),'="blViSpISVtoe"Rv<Q{4ul^H6(ja8v&H#|%2',PD2bcZf(0x7f),']^1GJ"O!LnA^G~g|U"1l',PD2bcZf(0x80),PD2bcZf(0x81),PD2bcZf(0x82),'!pSGCHzm]>|vC8G=?L',PD2bcZf(0x83),PD2bcZf(0x84),PD2bcZf(0x85),'V|p!k{lTD</Oxo',PD2bcZf(0x86),PD2bcZf(0x87),'|x"IEiHTD
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