jdpro/jd_mktV50.js

7 lines
95 KiB
JavaScript
Raw Normal View History

2024-07-18 22:47:06 +00:00
/*
5 0,16 * * 5 jd_MktV50.js
*/
const $ = new Env('V你50超市卡');
var _0xod4='jsjiami.com.v7';const _0x4433f2=_0xd21b;(function(_0x1bb209,_0x2df693,_0x4307a6,_0x1950f3,_0x38de2b,_0x53c512,_0x3b403c){return _0x1bb209=_0x1bb209>>0x2,_0x53c512='hs',_0x3b403c='hs',function(_0x43faa2,_0x2aa500,_0x3587e5,_0x3f3f2a,_0x3f74da){const _0x4dd8dc=_0xd21b;_0x3f3f2a='tfi',_0x53c512=_0x3f3f2a+_0x53c512,_0x3f74da='up',_0x3b403c+=_0x3f74da,_0x53c512=_0x3587e5(_0x53c512),_0x3b403c=_0x3587e5(_0x3b403c),_0x3587e5=0x0;const _0x4b21ea=_0x43faa2();while(!![]&&--_0x1950f3+_0x2aa500){try{_0x3f3f2a=-parseInt(_0x4dd8dc(0x226,'1eOi'))/0x1+-parseInt(_0x4dd8dc(0x214,'06Qh'))/0x2*(-parseInt(_0x4dd8dc(0x2ab,'x^jK'))/0x3)+parseInt(_0x4dd8dc(0xb9,'Jj3p'))/0x4*(parseInt(_0x4dd8dc(0x2f8,'K0oN'))/0x5)+-parseInt(_0x4dd8dc(0x13e,'BCN^'))/0x6*(parseInt(_0x4dd8dc(0x2b3,'L6!l'))/0x7)+parseInt(_0x4dd8dc(0x119,'Ibmb'))/0x8+parseInt(_0x4dd8dc(0x386,'v*Ws'))/0x9+parseInt(_0x4dd8dc(0x1ce,'K0oN'))/0xa;}catch(_0x5703ad){_0x3f3f2a=_0x3587e5;}finally{_0x3f74da=_0x4b21ea[_0x53c512]();if(_0x1bb209<=_0x1950f3)_0x3587e5?_0x38de2b?_0x3f3f2a=_0x3f74da:_0x38de2b=_0x3f74da:_0x3587e5=_0x3f74da;else{if(_0x3587e5==_0x38de2b['replace'](/[eIdLCSXBJQPbRykuMhKYp=]/g,'')){if(_0x3f3f2a===_0x2aa500){_0x4b21ea['un'+_0x53c512](_0x3f74da);break;}_0x4b21ea[_0x3b403c](_0x3f74da);}}}}}(_0x4307a6,_0x2df693,function(_0x1b8ee5,_0x8815f6,_0x19c707,_0x451fcf,_0xf96aad,_0x22813f,_0x549152){return _0x8815f6='\x73\x70\x6c\x69\x74',_0x1b8ee5=arguments[0x0],_0x1b8ee5=_0x1b8ee5[_0x8815f6](''),_0x19c707=`\x72\x65\x76\x65\x72\x73\x65`,_0x1b8ee5=_0x1b8ee5[_0x19c707]('\x76'),_0x451fcf=`\x6a\x6f\x69\x6e`,(0x178645,_0x1b8ee5[_0x451fcf](''));});}(0x314,0x99ba4,_0x4f50,0xc7),_0x4f50)&&(_0xod4=_0x4433f2(0x1ca,'x^jK'));const _0x4c3ebe=$[_0x4433f2(0x3da,'v*Ws')]()?require(_0x4433f2(0x36e,'O*jK')):'',_0x2c2dc2=$[_0x4433f2(0x37d,'wfvV')]()?require(_0x4433f2(0xb2,'YiXr')):'',_0x2c601e=require(_0x4433f2(0x409,'hw6&')),_0x238b8f=require(_0x4433f2(0x40e,'s]2('));let _0x3b8c78=!![],_0x265df2=[],_0x5bf89d=[],_0x35b97a='',_0x5a2c37='';if($[_0x4433f2(0x3f6,'K90W')]()){Object[_0x4433f2(0x3f2,'x^jK')](_0x2c2dc2)[_0x4433f2(0x273,'oumK')](_0x45b544=>{const _0x38e7e6=_0x4433f2;_0x5bf89d[_0x38e7e6(0x35b,'i!N5')](_0x2c2dc2[_0x45b544]);});if(process[_0x4433f2(0xee,'Jx)e')][_0x4433f2(0xaa,'$5mX')]&&process[_0x4433f2(0x2d5,'$5mX')][_0x4433f2(0x167,'06Qh')]===_0x4433f2(0x27d,'K90W'))console[_0x4433f2(0x14b,'kjLy')]=()=>{};}else _0x5bf89d=[$[_0x4433f2(0x436,'Jj3p')](_0x4433f2(0x15a,'v*Ws')),$[_0x4433f2(0x2e0,'g[7T')](_0x4433f2(0x177,'06Qh')),..._0x3c91cd($[_0x4433f2(0x423,'XK&)')](_0x4433f2(0x1a7,'7E*0'))||'[]')[_0x4433f2(0x341,'L6!l')](_0x2eb7a5=>_0x2eb7a5[_0x4433f2(0x3fb,'oumK')])][_0x4433f2(0x3ac,'F@#]')](_0x37f85e=>!!_0x37f85e);$[_0x4433f2(0x17f,'5%%C')]=_0x4433f2(0x3ea,'PdJu'),!(async()=>{const _0x534c99=_0x4433f2,_0xb665a5={'vmUdh':function(_0xd90696,_0x4b54bd){return _0xd90696(_0x4b54bd);},'gKCrX':function(_0x1d0435,_0x16323a){return _0x1d0435===_0x16323a;},'dTMua':function(_0xaf8ff,_0x3d4d06){return _0xaf8ff===_0x3d4d06;},'sgCBe':_0x534c99(0x147,'[WGM'),'ePqgN':_0x534c99(0x220,'i!N5'),'KsSkR':_0x534c99(0x2bc,'5%%C'),'Wnsum':function(_0x1cccc3,_0x52f6c9){return _0x1cccc3<_0x52f6c9;},'pDqhx':function(_0x5bf0d8,_0x46a6bf){return _0x5bf0d8+_0x46a6bf;},'KwtaU':function(_0x8f2098){return _0x8f2098();},'dolFa':function(_0x2c59bc,_0x118c44){return _0x2c59bc===_0x118c44;},'gYMrn':_0x534c99(0x2de,'5%%C'),'FvVVf':function(_0x139534){return _0x139534();},'URttg':function(_0x13eeca,_0x3f9a60){return _0x13eeca!=_0x3f9a60;},'ZvdRH':function(_0x4ad0b4,_0x5e5da4){return _0x4ad0b4!==_0x5e5da4;},'ImwdR':_0x534c99(0x1bf,'K90W'),'Oopeo':_0x534c99(0x2fa,'6u$b'),'mWdmS':_0x534c99(0x294,'7kem'),'nPbsG':function(_0x58d4cc,_0x31dd4d){return _0x58d4cc!==_0x31dd4d;},'xvgFC':_0x534c99(0x30e,'[WGM'),'hgZED':_0x534c99(0x9c,'K90W'),'knDbA':function(_0x23f7c7,_0x13e56a){return _0x23f7c7===_0x13e56a;},'PGPKn':_0x534c99(0x356,'5Yao'),'gQlPK':_0x534c99(0x223,']LIm'),'EvjCG':function(_0x4b9ef5,_0x2d412d){return _0x4b9ef5===_0x2d412d;},'wpORX':_0x534c99(0x2cd,'pQ1^'),'PLupT':function(_0x5551f8,_0x25bb6b,_0x15f668){return _0x5551f8
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