2023-12-03 01:55:45 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const iliili=iii1II;(function(i1i1iI,iillil,iillii,ilI1iI,l1I1i,l1I1l,i11II){return i1i1iI=i1i1iI>>0x6,l1I1l='hs',i11II='hs',function(IlIi1,i1i1il,i1i1ii,Il1ill,Il1ili){const l1Ili1=iii1II;Il1ill='tfi',l1I1l=Il1ill+l1I1l,Il1ili='up',i11II+=Il1ili,l1I1l=i1i1ii(l1I1l),i11II=i1i1ii(i11II),i1i1ii=0x0;const liIIII=IlIi1();while(!![]&&--ilI1iI+i1i1il){try{Il1ill=parseInt(l1Ili1(0x111,'wW$r'))/0x1+-parseInt(l1Ili1(0x269,'$4b&'))/0x2+-parseInt(l1Ili1(0x283,'yBWS'))/0x3+-parseInt(l1Ili1(0x220,'q^@s'))/0x4+-parseInt(l1Ili1(0x37a,'UT4['))/0x5+-parseInt(l1Ili1(0x3c6,'UT4['))/0x6+parseInt(l1Ili1(0x24b,'UO]O'))/0x7;}catch(iI11ii){Il1ill=i1i1ii;}finally{Il1ili=liIIII[l1I1l]();if(i1i1iI<=ilI1iI)i1i1ii?l1I1i?Il1ill=Il1ili:l1I1i=Il1ili:i1i1ii=Il1ili;else{if(i1i1ii==l1I1i['replace'](/[fJGRtBCwKgMlUpkhWSEVHrO=]/g,'')){if(Il1ill===i1i1il){liIIII['un'+l1I1l](Il1ili);break;}liIIII[i11II](Il1ili);}}}}}(iillii,iillil,function(IIllII,iil1I1,iI11il,iii111,liiI,liIII1,I111il){return iil1I1='\x73\x70\x6c\x69\x74',IIllII=arguments[0x0],IIllII=IIllII[iil1I1](''),iI11il=`\x72\x65\x76\x65\x72\x73\x65`,IIllII=IIllII[iI11il]('\x76'),iii111=`\x6a\x6f\x69\x6e`,(0x149f12,IIllII[iii111](''));});}(0x31c0,0x80c95,Iii11l,0xc9),Iii11l)&&(iil=Iii11l);const iIIli1=$[iliili(0x134,'b8e&')]()?require('./sendNotify'):'',Ii1l1i=$[iliili(0x339,'SjQ3')]()?require(iliili(0x1aa,'a#QF')):'',l1lIl=require(iliili(0x240,'[K*A'));let Ii1l1l=!![],i1Iiil=iliili(0x279,'KM2d'),i1Iiii=process[iliili(0x2dd,'$ZrR')][iliili(0x186,'ckh^')]?process[iliili(0x2bf,'Jr9p')][iliili(0x41a,'JcUH')]:'1',l1lIi=Date[iliili(0x1f0,'7^$p')](),l1lili=[],IIlI1l='',lI1I11;if($[iliili(0xce,'Mx3Y')]()){Object[iliili(0x3bb,'Jr9p')](Ii1l1i)[iliili(0x14d,'KM2d')](i1lii=>{const iliill=iliili;l1lili[iliill(0x219,'e9NK')](Ii1l1i[i1lii]);});if(process[iliili(0x346,'cm[T')][iliili(0x3b9,'b8e&')]&&process[iliili(0x289,'h&mP')][iliili(0x265,'FyV#')]===iliili(0x405,'KM2d'))console[iliili(0x125,']%U0')]=()=>{};}else l1lili=[$[iliili(0x2d7,'h&mP')]('CookieJD'),$['getdata'](iliili(0x216,'$ZrR')),...Ili1Il($['getdata'](iliili(0x1d1,'^1KP'))||'[]')[iliili(0x173,']%U0')](iilIII=>iilIII[iliili(0x211,'JcUH')])][iliili(0x300,'U*dk')](liI1Il=>!!liI1Il);!(async()=>{const I111ii=iliili,I1iIi={'AQxfM':I111ii(0x19e,'UO]O'),'yHDjh':function(iiiI1I,lilI11){return iiiI1I*lilI11;},'CxipD':function(Ili1II,ili1i){return Ili1II-ili1i;},'cpXmo':function(IiIi1,l1Ii1){return IiIi1+l1Ii1;},'XUkSo':function(i1IilI,III1I1){return i1IilI===III1I1;},'bUaWD':'QmRpe','ieMRH':'VIppu','zyfPp':'https://bean.m.jd.com/bean/signIndex.action','qFkEH':I111ii(0x2b8,'MX@C'),'gqtlO':function(ilI111,I1IllI){return ilI111(I1IllI);},'pUNGC':function(IIlI11,iIIll1){return IIlI11+iIIll1;},'MDqfV':function(llIIII,ilI11I){return llIIII!==ilI11I;},'fnvEH':I111ii(0x296,'UT4['),'mgkNn':function(ili1I,iilIIl){return ili1I===iilIIl;},'tSknR':I111ii(0x282,'^1KP'),'MtZSf':function(i1Iili,i1Iill){return i1Iili+i1Iill;},'DTmJl':I111ii(0x22a,'UT4['),'fCCnL':function(l1IiI){return l1IiI();},'qzAcF':function(l1lill,i1li1,iIIllI){return l1lill(i1li1,iIIllI);},'DUQYg':function(I1Ill1,ili11){return I1Ill1+ili11;}};if(!l1lili[0x0]){if(I1iIi[I111ii(0x29c,'U*dk')](I1iIi[I111ii(0x235,'6n8#')],I1iIi['ieMRH']))try{return iIIl11[I111ii(0x3cd,'y8oR')](l1l1I1);}catch(llIIIl){return I1ilI1['log'](llIIIl),iillll[I111ii(0x35f,'ckh^')](lIIilI['name'],'',I1iIi[I111ii(0x354,'cz6m')]),[];}else{$[I111ii(0x1c8,'KM2d')]($['name'],I111ii(0x1ca,'dNqC'),I1iIi[I111ii(0x362,'Rud8')],{'open-url':I1iIi[I111ii(0x319,'6n8#')]});return;}}for(let IIlI1I=0x0;IIlI1I<l1lili['length'];IIlI1I++){if(l1lili[IIlI1I]){if(I1iIi['qFkEH']!==I111ii(0x17a,'RnCM')){IIlI1l=l1lili[IIlI1I],$[I111ii(0x2b5,'MX@C')]=I1iIi['gqtlO'](decodeURIComponent,IIlI1l[I111ii(0x109,'y8oR')](/pt_pin=([^; ]+)(?=;?)/)&&IIlI1l[I111ii(0xed,'UO]O')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[I111ii(0x38c,'cjzj')]=I1iIi['pUNGC'](IIlI1I,0x1),$[I111ii(0xde,'RnCM')]=!![],$[I111ii(0x22f,'4t99')]='',lI1I11='',console['log'](I111ii(0xdf,'K9jm')+$[I111ii(0xe4,'Q$Ql')]+'】'+($[I111ii(0x145,'JcUH')]||$[I111ii(0x15f,'cjzj')])+I111ii(0x34a
|
|
|
|
|
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
|