faker3/jd_pro_sign.js

12 lines
79 KiB
JavaScript
Raw Normal View History

2024-06-28 15:38:28 +08:00
/*
频道签到
2024-09-02 14:47:45 +08:00
cron:1 1 1 1 *
2024-06-28 15:38:28 +08:00
*/
const $ = new Env('频道签到')
2024-09-02 14:47:45 +08:00
function kO0_0Rg(){}var jr8abVp=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],BsJb31O,LjMMtfu,w4XalU,O1YtQx,l4bdBnh,tvWv7U,eW49HL,BpBYN_,FrnnZvg,uLfiXz,iwloPv,SZHvIiZ,GA97FAK,d1KNgG,jYNRok;function Zub2Kj(kO0_0Rg){return BsJb31O[kO0_0Rg>0x56?kO0_0Rg<0x56?kO0_0Rg-0x21:kO0_0Rg<0x56?kO0_0Rg-0x3d:kO0_0Rg-0x57:kO0_0Rg+0xd]}BsJb31O=IIenXeG();function pGgMdc(kO0_0Rg,jr8abVp){var w4XalU=csUZNA(kO0_0Rg=>{return BsJb31O[kO0_0Rg<0xef?kO0_0Rg<0x39?kO0_0Rg-0x49:kO0_0Rg>0x39?kO0_0Rg<0xef?kO0_0Rg-0x3a:kO0_0Rg-0x57:kO0_0Rg+0x55:kO0_0Rg+0x63]},0x1);LjMMtfu(kO0_0Rg,w4XalU(0x52),{value:jr8abVp,configurable:!0x0});return kO0_0Rg}kO0_0Rg(LjMMtfu=Object.defineProperty,w4XalU=pGgMdc(csUZNA((...jr8abVp)=>{kO0_0Rg(jr8abVp.length=Zub2Kj(0x6b),jr8abVp[0xe2]=jr8abVp[0x0]);return jr8abVp[0x1](jr8abVp[0xe2]())}),0x2)(abri3LQ,IazJO8));var CdZNqz=[],Jqxd1xy=[aqY5QKA(Zub2Kj(0x6a)),aqY5QKA(0x1),aqY5QKA(0x2),'\x29\x38\x4d\x52\x70\x42\x36\x7c\x32',aqY5QKA(Zub2Kj(0x67)),aqY5QKA(0x4),aqY5QKA(0x5),aqY5QKA(0x6),aqY5QKA(0x7),aqY5QKA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Y5QKA(Zub2Kj(0x9f)),aqY5QKA(0x62),aqY5QKA(Zub2Kj(0xfe)),aqY5QKA(Zub2Kj(0xb2)),aqY5QKA(0x65),aqY5QKA(Zub2Kj(0x8f)),aqY5QKA(0x67),aqY5QKA(0x68),aqY5QKA(0x69),aqY5QKA(0x6a),aqY5QKA(Zub2Kj(0x8c)),aqY5QKA(0x6c),aqY5QKA(0x6d),aqY5QKA(0x6e),aqY5QKA(Zub2Kj(0xb7)),aqY5QKA(Zub2Kj(0xb4)),aqY5QKA(0x71),'rZz`|_7a<{}km"5x+QU{kh{*({qF_1&x1%9UT_jexj"{7"N^BY,B+6(*ZFpm0O75L}$c/&f[G#:"S)&xp/jnd',aqY5QKA(0x72),aqY5QKA(Zub2Kj(0xb8)),aqY5QKA(Zub2Kj(0xbf)),aqY5QKA(0x75),aqY5QKA(Zub2Kj(0x58)),aqY5QKA(0x76),aqY5QKA(0x77),aqY5QKA(0x78),aqY5QKA(Zub2Kj(0xba)),'rZz`|_7aYce~r"5x+QU{kh{*L',aqY5QKA(Zub2Kj(0x60)),'\u0072\u005a\u007a\u0060\u007c\u005f\u0037\u0061\u0059\u0063\u0065\u007e\u0072\u0022\u0035\u0078\u002b\u0051\u0055\u007b\u006b\u0068\u007b\u002a\u005b\u0063','\x35\x42\x21\x7b\x4e\x28\x26\x25\x2a\x7c\x6b\x2c\x45',aqY5QKA(Zub2Kj(0xbc)),aqY5QKA(0x7c),aqY5QKA(0x7d),aqY5
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