2023-12-26 03:15:42 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const iiiIlI=iii1II;(function(iiiIi1,illl1l,Il11I,li1lll,lill1,IiIIl,IiIIi){return iiiIi1=iiiIi1>>0x8,IiIIl='hs',IiIIi='hs',function(li1lli,iiiIl1,I1i1I,IIl1,l1ili){const illIIl=iii1II;IIl1='tfi',IiIIl=IIl1+IiIIl,l1ili='up',IiIIi+=l1ili,IiIIl=I1i1I(IiIIl),IiIIi=I1i1I(IiIIi),I1i1I=0x0;const i1Ii11=li1lli();while(!![]&&--li1lll+iiiIl1){try{IIl1=-parseInt(illIIl(0x232,'xR^q'))/0x1*(-parseInt(illIIl(0x17a,'1gaJ'))/0x2)+parseInt(illIIl(0x2cc,'NM1s'))/0x3+parseInt(illIIl(0x3f1,'bP8A'))/0x4+parseInt(illIIl(0x363,'06^V'))/0x5*(-parseInt(illIIl(0x1d6,'xawT'))/0x6)+parseInt(illIIl(0x38f,'[NRw'))/0x7*(parseInt(illIIl(0x2d9,'0i9%'))/0x8)+parseInt(illIIl(0x3d8,'@F(z'))/0x9*(parseInt(illIIl(0x21b,'xawT'))/0xa)+-parseInt(illIIl(0x23f,'3SxC'))/0xb*(parseInt(illIIl(0x288,'uxx%'))/0xc);}catch(l1iill){IIl1=I1i1I;}finally{l1ili=i1Ii11[IiIIl]();if(iiiIi1<=li1lll)I1i1I?lill1?IIl1=l1ili:lill1=l1ili:I1i1I=l1ili;else{if(I1i1I==lill1['replace'](/[YhJqNEMGdgbIFnwHxuU=]/g,'')){if(IIl1===iiiIl1){i1Ii11['un'+IiIIl](l1ili);break;}i1Ii11[IiIIi](l1ili);}}}}}(Il11I,illl1l,function(l1ill,lIi1I1,l1iili,illIIi,iiIi,iiIl,Iil1I){return lIi1I1='\x73\x70\x6c\x69\x74',l1ill=arguments[0x0],l1ill=l1ill[lIi1I1](''),l1iili=`\x72\x65\x76\x65\x72\x73\x65`,l1ill=l1ill[l1iili]('\x76'),illIIi=`\x6a\x6f\x69\x6e`,(0x14d562,l1ill[illIIi](''));});}(0xca00,0x79b96,Iii11l,0xcc),Iii11l)&&(iil=0x795);const i1IiiI=$[iiiIlI(0x2fc,'jH&U')]()?require(iiiIlI(0x2d7,'VvB!')):'',lI1I1I=$[iiiIlI(0x45e,'bP8A')]()?require(iiiIlI(0x198,'eazb')):'',l1lII=require('./function/krgetH5st');let lilI1l=!![],l1liiI='FIz2zkvbepstVFm3uqLOUA',I1iI1=process[iiiIlI(0x39c,'VvB!')][iiiIlI(0x22f,'I9ab')]?process[iiiIlI(0x177,'3SxC')]['jd_qdtx_num']:'1',lilI1i=Date[iiiIlI(0x1cd,'8hg2')](),Il1Ii=[],Ii11l='',liI1I1;if($[iiiIlI(0x1fb,'M1S)')]()){Object[iiiIlI(0x411,'BQZ*')](lI1I1I)['forEach'](iiiI1i=>{Il1Ii['push'](lI1I1I[iiiI1i]);});if(process['env'][iiiIlI(0x298,'bP8A')]&&process[iiiIlI(0x2cf,'IrX&')]['JD_DEBUG']===iiiIlI(0x461,'p*b['))console[iiiIlI(0x436,'Ho3h')]=()=>{};}else Il1Ii=[$[iiiIlI(0x428,'[NRw')](iiiIlI(0x418,'1gaJ')),$['getdata']('CookieJD2'),...iIIli1($[iiiIlI(0x221,'2x1g')](iiiIlI(0x2b4,')Ov2'))||'[]')[iiiIlI(0x3e0,'[NRw')](iiiI1l=>iiiI1l[iiiIlI(0x2a4,'LB7c')])][iiiIlI(0x30e,'3SxC')](Ili1Ii=>!!Ili1Ii);!(async()=>{const I1i11=iiiIlI,Ii1l1I={'TuuoF':function(iilII1){return iilII1();},'LSANC':'amount','YodDX':I1i11(0x2be,'f[%T'),'MVVOJ':function(iiiI11,l1lilI){return iiiI11!==l1lilI;},'juYDu':'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取','vLNyL':'https://bean.m.jd.com/bean/signIndex.action','TmtFs':I1i11(0x3d2,'06^V'),'MFQJo':function(i1Iil1,liI1Ii){return i1Iil1(liI1Ii);},'CnHvC':function(l1lil1,i1lil){return l1lil1+i1lil;},'TPqlr':I1i11(0x1fc,'jH&U'),'SuKtY':function(I1iIl){return I1iIl();},'sZACu':function(IilII,ili1l,i1lii){return IilII(ili1l,i1lii);},'HtDJm':function(iilIII,liI1Il){return iilIII*liI1Il;}};if(!Il1Ii[0x0]){if(Ii1l1I[I1i11(0x313,'Z^Ti')](I1i11(0x35b,'M1S)'),I1i11(0x2b5,')Ov2')))Ii1l1I[I1i11(0x373,'11BK')](IIIl1i);else{$[I1i11(0x1e1,'eazb')]($['name'],Ii1l1I[I1i11(0x360,')DJ6')],Ii1l1I[I1i11(0x295,'s6Qh')],{'open-url':I1i11(0x208,'8hg2')});return;}}for(let iiiI1I=0x0;iiiI1I<Il1Ii[I1i11(0x388,'1gaJ')];iiiI1I++){if(Ii1l1I['TmtFs']!==Ii1l1I[I1i11(0x1fe,'xawT')])l1l11i[I1i11(0x2c6,'02PK')]=l1iIl[illIll]['exchangeType'],iIli1I['amount']=Iiil1[iiilli][Ii1l1I['LSANC']],l1iIIl[I1i11(0x41f,'LB7c')]=iiilll[lI11Il][I1i11(0x2b1,'jH&U')],lIII1i[I1i11(0x3ad,'8y1C')]=l11i11[IilIl1][Ii1l1I[I1i11(0x2ad,'1gaJ')]];else{if(Il1Ii[iiiI1I]){Ii11l=Il1Ii[iiiI1I],$['UserName']=Ii1l1I[I1i11(0x2b7,'v$74')](decodeURIComponent,Ii11l[I1i11(0x3fb,'ZZ0$')](/pt_pin=([^; ]+)(?=;?)/)&&Ii11l[I1i11(0x391,')Ov2')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[I1i11(0x3fe,'%0hy')]=Ii1l1I['CnHvC'](iiiI1I,0x1),$['isLogin']=!![],$[I1i11(0x304,'8y1C')]='',liI1I1='',console['log']('\x0a******开始【京东账号'+$[I1i11(0x24d,'0s88')]+'】'+($['nickName']||$[I1i11(0x263,'p*b[')])+I1i11(0x325,'ZZ0$'));if(!$['isLogin']){$['msg']($['name'],'【提示】cookie已<EFBFBD>
|
|
|
|
|
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
|