2023-12-01 10:16:30 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const lIi1I=iii1II;(function(Ilili1,iIiiI,Ii111i,l1iiiI,Ii111l,iI11li,lIi11){return Ilili1=Ilili1>>0x3,iI11li='hs',lIi11='hs',function(i11II1,Ilill1,I111lI,l1iii1,iiilIl){const IIiII1=iii1II;l1iii1='tfi',iI11li=l1iii1+iI11li,iiilIl='up',lIi11+=iiilIl,iI11li=I111lI(iI11li),lIi11=I111lI(lIi11),I111lI=0x0;const Il1ilI=i11II1();while(!![]&&--l1iiiI+Ilill1){try{l1iii1=-parseInt(IIiII1(0x4e5,'UWPZ'))/0x1+parseInt(IIiII1(0x26b,'d(@E'))/0x2*(-parseInt(IIiII1(0x4c3,'pup3'))/0x3)+-parseInt(IIiII1(0x22f,'pup3'))/0x4+-parseInt(IIiII1(0x413,'Lel3'))/0x5*(parseInt(IIiII1(0x1b1,'d#BI'))/0x6)+parseInt(IIiII1(0x155,'zdKx'))/0x7+parseInt(IIiII1(0x1eb,'I^AE'))/0x8+parseInt(IIiII1(0x443,'(KRk'))/0x9;}catch(iIliIl){l1iii1=I111lI;}finally{iiilIl=Il1ilI[iI11li]();if(Ilili1<=l1iiiI)I111lI?Ii111l?l1iii1=iiilIl:Ii111l=iiilIl:I111lI=iiilIl;else{if(I111lI==Ii111l['replace'](/[uXnAUtNQVgpwrBTJRyFL=]/g,'')){if(l1iii1===Ilill1){Il1ilI['un'+iI11li](iiilIl);break;}Il1ilI[lIi11](iiilIl);}}}}}(Ii111i,iIiiI,function(l1Illi,iiilIi,l1Illl,Ii111I,iI11ll,liIl1i,liIl1l){return iiilIi='\x73\x70\x6c\x69\x74',l1Illi=arguments[0x0],l1Illi=l1Illi[iiilIi](''),l1Illl=`\x72\x65\x76\x65\x72\x73\x65`,l1Illi=l1Illi[l1Illl]('\x76'),Ii111I=`\x6a\x6f\x69\x6e`,(0x149a5a,l1Illi[Ii111I](''));});}(0x620,0x4780b,Iii11l,0xc6),Iii11l)&&(iil=0xc6);const iII1Il=$['isNode']()?require('./sendNotify'):'',IIIliI=$['isNode']()?require(lIi1I(0x342,'l%#n')):'',iII1Ii=require('./function/h5st41.js');let iIlI1l=!![],llIill='_LN1l_4Nv5mTEsWhs3hIMA',l1IIii=process['env'][lIi1I(0x1ea,'PMmG')]?process[lIi1I(0x3ce,'pup3')][lIi1I(0x2d1,'0A)]')]:'1',lIIi1I=Date['now'](),l1IIil=[],l1iiII='',I1lI1I;if($[lIi1I(0x1b4,'Hc5!')]()){Object['keys'](IIIliI)[lIi1I(0x496,'d9#!')](l1l1i=>{const Ii1111=lIi1I;l1IIil[Ii1111(0x48f,'L(HS')](IIIliI[l1l1i]);});if(process[lIi1I(0x2ae,'mi*4')][lIi1I(0x2e4,'d#BI')]&&process[lIi1I(0x2ec,'b[%e')]['JD_DEBUG']===lIi1I(0x252,'FA%x'))console[lIi1I(0x2e7,'FA%x')]=()=>{};}else l1IIil=[$['getdata'](lIi1I(0x1a6,'0A)]')),$[lIi1I(0x45b,'nxf)')]('CookieJD2'),...illill($['getdata'](lIi1I(0x17d,'A1mz'))||'[]')[lIi1I(0x176,'A1mz')](I1I1II=>I1I1II[lIi1I(0x4cd,'d(@E')])]['filter'](i11ll=>!!i11ll);!(async()=>{const Ill1li=lIi1I,Ili11I={'nevYm':function(i11li,Illil){return i11li!==Illil;},'nENXb':'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取','Ehrio':'https://bean.m.jd.com/bean/signIndex.action','RxCne':function(iil11i,Ill1II){return iil11i(Ill1II);},'eOiUz':function(llIili,Illii){return llIili+Illii;},'nrSXt':Ill1li(0x494,'Wiz['),'ottlf':Ill1li(0x193,'UWPZ'),'NPsiW':function(iIlI11){return iIlI11();},'qdfMw':function(IIII,l1IIlI){return IIII+l1IIlI;},'Mdzlh':function(iil111,llIil1){return iil111*llIil1;}};if(!l1IIil[0x0]){if(Ili11I[Ill1li(0x3e0,'rSfb')]('EvDlJ','oBWCa')){$[Ill1li(0x4f8,'I^AE')]($['name'],Ili11I[Ill1li(0x440,'Fgt%')],Ili11I[Ill1li(0x191,'nMZ0')],{'open-url':Ili11I[Ill1li(0x1da,'0A)]')]});return;}else l1iIIi[Ill1li(0x359,'Hc5!')](lilIi,l1l11I);}for(let Ill1I1=0x0;Ill1I1<l1IIil['length'];Ill1I1++){if(l1IIil[Ill1I1]){l1iiII=l1IIil[Ill1I1],$['UserName']=Ili11I[Ill1li(0x2e9,'rSfb')](decodeURIComponent,l1iiII[Ill1li(0x45a,'rSfb')](/pt_pin=([^; ]+)(?=;?)/)&&l1iiII[Ill1li(0x460,'H6#i')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[Ill1li(0x36f,'scGA')]=Ili11I[Ill1li(0x48a,'Fgt%')](Ill1I1,0x1),$[Ill1li(0x3cf,'ltZE')]=!![],$['nickName']='',I1lI1I='',console[Ill1li(0x290,'9Tyv')](Ill1li(0x3c2,'d&51')+$[Ill1li(0x1a3,'@wHX')]+'】'+($['nickName']||$[Ill1li(0x3a6,'ltZE')])+Ill1li(0x3fa,'pup3'));if(!$[Ill1li(0x3cf,'ltZE')]){$[Ill1li(0x2e5,'0A)]')]($[Ill1li(0x2b8,'Yll)')],Ill1li(0x175,'Ke*)'),Ill1li(0x15a,'MzAI')+$['index']+'\x20'+($['nickName']||$[Ill1li(0x372,'HFC#')])+Ill1li(0x4c6,'pup3'),{'open-url':Ili11I[Ill1li(0x2ab,'nxf)')]});$[Ill1li(0x397,'d(@E')]()&&await iII1Il[Ill1li(0x2c7,'UWPZ')]($[Ill1li(0x238,'nMZ0')]+Ill1li(0x37d,'FA%x')+$[Ill1li(0x3fe,'ES#s')],'京东账号'+$['index']+'\x20'+$['UserName']+Ill1li(0x426,'ltZE'));continue;}$['jda']=Ili11I[Ill1li(0x3f2,'HFC#')]+Ili11I[Ill1li(0x344,'FA%x')](IIIll1,Ili11I['ottlf']),
|
|
|
|
|
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
|