jdpro/jx_joypark_task.js

6 lines
80 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
2024-11-13 12:59:41 +00:00
12 9,11 * * * jx_joypark_task.js
2024-06-28 07:47:44 +00:00
*/
2024-11-13 12:59:41 +00:00
const $ = new Env('牛牛赚钱任务');
function UjzFa28(){}var meGSWY0=Object['defineProperty'],UbSSA7,Iw0PDSW,cLWyMO,hM5dF_a,IMUM38H,CouSsV,cAiZUNm,tSXzf1,lhIS6a4,BLo_Oub,jCdYcxt,vOmr_PV,UV45Vf8,r7D0T4i,_Umxpn;function pd0hFH(UjzFa28){return UbSSA7[UjzFa28<0x6a?UjzFa28>-0x58?UjzFa28<-0x58?UjzFa28-0x4f:UjzFa28>0x6a?UjzFa28+0x2:UjzFa28+0x57:UjzFa28+0x52:UjzFa28-0x51]}UbSSA7=SZkOKaN();function jfThmc(UjzFa28,meGSWY0){return Iw0PDSW(UjzFa28,'length',{value:meGSWY0,configurable:!0x0})}UjzFa28(Iw0PDSW=Object.defineProperty,cLWyMO=jfThmc(EaIjjfP((...meGSWY0)=>{var Iw0PDSW=EaIjjfP(meGSWY0=>{return UbSSA7[meGSWY0>0x22?meGSWY0-0x23:meGSWY0+0x5c]},0x1);UjzFa28(meGSWY0[Iw0PDSW(0x4e)]=Iw0PDSW(0x57),meGSWY0.d12lTnh=0xd);if(meGSWY0.d12lTnh>0x70){return meGSWY0[meGSWY0.d12lTnh-0xca]}else{var cLWyMO=EaIjjfP(meGSWY0=>{return UbSSA7[meGSWY0>-0x5f?meGSWY0>-0x5f?meGSWY0<-0x5f?meGSWY0-0x22:meGSWY0<-0x5f?meGSWY0-0x36:meGSWY0+0x5e:meGSWY0-0x28:meGSWY0+0x60]},0x1);return meGSWY0[meGSWY0[cLWyMO(-0x5e)]-(meGSWY0[cLWyMO(-0x5e)]-cLWyMO(-0x5d))](meGSWY0[0x0]())}}),0x2)(K4FrYga,sQFWVe));var I60aQN=[],O6kOG4=[NTegRlL(0x0),NTegRlL(pd0hFH(-0x56)),NTegRlL(0x2),NTegRlL(pd0hFH(-0x31)),'0vNDst|%',NTegRlL(pd0hFH(-0x2e)),NTegRlL(pd0hFH(-0x2b)),NTegRlL(pd0hFH(-0x35)),NTegRlL(pd0hFH(-0x32)),NTegRlL(0x8),NTegRlL(0x9),NTegRlL(pd0hFH(-0x55)),NTegRlL(pd0hFH(-0x1b)),pd0hFH(-0x39),NTegRlL(0xc),NTegRlL(pd0hFH(-0x21)),NTegRlL(pd0hFH(-0x1d)),'j<mEMD|%',NTegRlL(0xf),'=YTeOc|%BUCm2.QNrj_7P','=YTeOc|%BU0',NTegRlL(pd0hFH(-0x37)),NTegRlL(0x11),'z%$s*1XR@mdaT*Qcs}yR@"nTSEe^LYVJVetomG;}po,|jFt}&{4_P0y_o{&W9esWwZ*VuYZRFh48u?Zc]}+,fVu','C4{6*,r|9Z;}p~$=;y5z4#}7&aV',NTegRlL(0x12),NTegRlL(pd0hFH(-0x55)),NTegRlL(pd0hFH(-0x2d)),NTegRlL(pd0hFH(0x38)),']CENa]3o2bjsUZS5AZ>)icoAj0b}H&x.m<moj~int*|XY#>J','dV|Efcj%',NTegRlL(0x15),NTegRlL(0x16),NTegRlL(0x17),NTegRlL(pd0hFH(-0x14)),NTegRlL(pd0hFH(-0x50)),NTegRlL(pd0hFH(-0x4f)),NTegRlL(0x1b),NTegRlL(pd0hFH(-0x12)),NTegRlL(0x1d),NTegRlL(0x10),NTegRlL(0x11),NTegRlL(0x1e),'{W+IC)q|,r"_n6wY"GBcW;_UFXfjX(V4S"6by2?u#iwM,1U?$,~$=',NTegRlL(pd0hFH(-0x11)),NTegRlL(0x20),NTegRlL(0x21),'=YTeOc|%',NTegRlL(pd0hFH(-0x9)),NTegRlL(0x23),'Wj|EsXU%',NTegRlL(0x24),NTegRlL(0x25),'g|TfKcs>',NTegRlL(0x26),pd0hFH(-0x4b),NTegRlL(0x27),NTegRlL(0x28),NTegRlL(0x29),NTegRlL(0x2a),NTegRlL(pd0hFH(-0x54)),NTegRlL(0x2c),NTegRlL(0x2d),NTegRlL(0x2e),NTegRlL(pd0hFH(-0x4a)),NTegRlL(0x30),NTegRlL(0x31),NTegRlL(0x32),NTegRlL(pd0hFH(-0x53)),NTegRlL(0x34),NTegRlL(pd0hFH(0x26)),NTegRlL(0x36),NTegRlL(0x37),NTegRlL(pd0hFH(-0x3)),NTegRlL(pd0hFH(-0x54)),NTegRlL(0x39),NTegRlL(0x3a),NTegRlL(pd0hFH(0x2c)),NTegRlL(0x3c),NTegRlL(pd0hFH(-0x2)),NTegRlL(0x3e),NTegRlL(pd0hFH(-0x34)),NTegRlL(0x40),NTegRlL(0x41),NTegRlL(0x42),NTegRlL(0x43),NTegRlL(0x44),NTegRlL(0x45),NTegRlL(pd0hFH(0x1)),NTegRlL(pd0hFH(-0x51)),NTegRlL(pd0hFH(0x2)),NTegRlL(0x48),'46:E:/KI@|M/1a:x',NTegRlL(0x49),NTegRlL(0x41),NTegRlL(0x4a),NTegRlL(pd0hFH(-0x52)),NTegRlL(0x4c),NTegRlL(pd0hFH(-0x4)),NTegRlL(pd0hFH(0x4)),NTegRlL(pd0hFH(0x5)),NTegRlL(0x50),NTegRlL(pd0hFH(0x7)),NTegRlL(pd0hFH(0x8)),NTegRlL(pd0hFH(-0x4d)),NTegRlL(pd0hFH(0x6)),NTegRlL(0x54),NTegRlL(pd0hFH(-0x28)),NTegRlL(0x56),NTegRlL(0x57),NTegRlL(0x2b),NTegRlL(pd0hFH(-0x53)),NTegRlL(pd0hFH(-0x52)),NTegRlL(pd0hFH(-0x25)),NTegRlL(pd0hFH(-0x51)),NTegRlL(0x40),'ycn#?<3D#Y2uf;)=lA^Lp%AjfeEFe>K{din#?<|!',NTegRlL(pd0hFH(0x12)),'=YTeOc|%',NTegRlL(0x5a),NTegRlL(0x5b),NTegRlL(pd0hFH(-0x41)),NTegRlL(pd0hFH(-0x15)),NTegRlL(0x18),NTegRlL(pd0hFH(-0x50)),NTegRlL(pd0hFH(-0x4f)),'IXcl|QG',NTegRlL(0x5c),NTegRlL(0x5d),NTegRlL(pd0hFH(-0x4e)),NTegRlL(0x21),NTegRlL(0x52),NTegRlL(pd0hFH(0x13)),NTegRlL(pd0hFH(0x14)),'Wj|EsXU%',NTegRlL(pd0hFH(-0x44)),NTegRlL(0x61),NTegRlL(pd0hFH(-0x27)),NTegRlL(0x63),NTegRlL(0x64),'|k;:',NTegRlL(0x65),NTegRlL(0x66),NTegRlL(0x67),NTegRlL(pd0hFH(-0x1e)),NTegRlL(0x69),NTegRlL(0x6a),NTegRlL(pd0hFH(0x1a)),'(|ug~?;nRd4cTD{XWG',NTegRlL(0x18),NTegRlL(0x6c),NTegRlL(0x6d),NTegRlL(pd0hFH(0x1d)),NTegRlL(0x6f),NTegRlL(0x70),'YjAe|~u8G',NTegRlL(0x71),NTegRlL(0x72),NTegRlL(0x73),'U:|EEc+I.+2Xu',NTegRlL(0x74),NTegRlL(pd0hFH(0x20)),NTegRlL(pd0hFH(-0x48)),NTegRlL(0x77),NTegRlL(pd0hFH(-0x43)),NTegRlL(0x79),NTegRlL(pd0
2024-06-28 07:47:44 +00:00
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