2024-10-12 17:11:27 +08:00
|
|
|
|
var iil='jsjiami.com.v7';const IiI11I=iii1II;if(function(Il1ii,IiI11l,iI1i1I,iIil1i,IiI11i,iIil1l,iIil11){return Il1ii=Il1ii>>0x5,iIil1l='hs',iIil11='hs',function(l1li1,IIllll,I1Iil1,lll1iI,iIllI1){const iI1i1l=iii1II;lll1iI='tfi',iIil1l=lll1iI+iIil1l,iIllI1='up',iIil11+=iIllI1,iIil1l=I1Iil1(iIil1l),iIil11=I1Iil1(iIil11),I1Iil1=0x0;const lli11=l1li1();while(!![]&&--iIil1i+IIllll){try{lll1iI=-parseInt(iI1i1l(0x747,'7%4W'))/0x1*(parseInt(iI1i1l(0x5bb,'OrZE'))/0x2)+parseInt(iI1i1l(0x3fa,'AdC0'))/0x3*(parseInt(iI1i1l(0x5ee,'PMp6'))/0x4)+parseInt(iI1i1l(0x7ce,'AJ]m'))/0x5*(-parseInt(iI1i1l(0x170,'aYDs'))/0x6)+parseInt(iI1i1l(0x6dd,'Jhn3'))/0x7+parseInt(iI1i1l(0x19d,'&h4k'))/0x8+-parseInt(iI1i1l(0x5cc,'OrZE'))/0x9*(-parseInt(iI1i1l(0x25e,'aMUl'))/0xa)+-parseInt(iI1i1l(0x77b,'vVUV'))/0xb;}catch(IlIil1){lll1iI=I1Iil1;}finally{iIllI1=lli11[iIil1l]();if(Il1ii<=iIil1i)I1Iil1?IiI11i?lll1iI=iIllI1:IiI11i=iIllI1:I1Iil1=iIllI1;else{if(I1Iil1==IiI11i['replace'](/[RdWUyTlDSGXxHwOCfKpYn=]/g,'')){if(lll1iI===IIllll){lli11['un'+iIil1l](iIllI1);break;}lli11[iIil11](iIllI1);}}}}}(iI1i1I,IiI11l,function(lIIlil,l1I111,lIIlii,iI111,Il1iI,iI1i1i,iIil1I){return l1I111='\x73\x70\x6c\x69\x74',lIIlil=arguments[0x0],lIIlil=lIIlil[l1I111](''),lIIlii=`\x72\x65\x76\x65\x72\x73\x65`,lIIlil=lIIlil[lIIlii]('\x76'),iI111=`\x6a\x6f\x69\x6e`,(0x159f9e,lIIlil[iI111](''));});}(0x17a0,0x6e009,Iii11l,0xbf),Iii11l){}const notify=$[IiI11I(0x18a,'P5Yb')]()?require(IiI11I(0x7d8,'(yvW')):'',jdCookieNode=$[IiI11I(0x4af,'PMp6')]()?require('./jdCookie.js'):'';let cookiesArr=[],cookie='',jdFruitShareArr=[],isBox=![],newShareCodes,allMessage='',shareCodes=[],message='',subTitle='',option={},isFruitFinished=![];if($['isNode']()){Object['keys'](jdCookieNode)['forEach'](l1II1=>{jdCookieNode[l1II1]&&cookiesArr['push'](jdCookieNode[l1II1]);});if(process[IiI11I(0x385,'(yvW')]['JD_DEBUG']&&process['env']['JD_DEBUG']==='false')console[IiI11I(0x19f,'aYDs')]=()=>{};}else cookiesArr=[$[IiI11I(0x3aa,'%s(k')](IiI11I(0x677,'3o]h')),$[IiI11I(0x735,'&h4k')]('CookieJD2'),...jsonParse($['getdata'](IiI11I(0x632,'LwuD'))||'[]')[IiI11I(0x39e,'&oNp')](III1i1=>III1i1['cookie'])]['filter'](IlI1=>!!IlI1);console[IiI11I(0x5e6,'B$Vf')]('共'+cookiesArr[IiI11I(0x153,'4EH$')]+IiI11I(0x345,'U7Fb'));const retainWater=$[IiI11I(0x4af,'PMp6')]()?process['env']['retainWater']?process[IiI11I(0x427,'aYDs')][IiI11I(0x680,'NOQ[')]:0x64:$[IiI11I(0x82d,'P5Yb')](IiI11I(0x822,'A9po'))?$[IiI11I(0x727,'B$Vf')]('retainWater'):0x64;let jdNotify=!![],jdFruitBeanCard=![],fruit_Water=process[IiI11I(0x6b9,'aMUl')][IiI11I(0x169,'aMUl')]==='true'?!![]:![];const JD_API_HOST='https://api.m.jd.com/client.action',urlSchema='openjd://virtual?params=%7B%20%22category%22:%20%22jump%22,%20%22des%22:%20%22m%22,%20%22url%22:%20%22https://h5.m.jd.com/babelDiy/Zeus/3KSjXqQabiTuD1cJ28QskrpWoBKT/index.html%22%20%7D',common=require(IiI11I(0x58a,'aYDs')),{H5st}=require(IiI11I(0x5d3,'Jd%U'));let uuid=randomString(0x28),addressid=randomString(0xa,'123456789'),sid=randomString(0x20,IiI11I(0x3c9,'OrZE')),un_area=randomString(0x2,'1234567890')+'-'+randomString(0x4,IiI11I(0x681,'TUHa'))+'-'+randomString(0x4,'1234567890')+'-'+randomString(0x5,IiI11I(0x165,'q@Wf')),lng=IiI11I(0x7e1,'TUHa')+Math[IiI11I(0x789,'j!&%')](Math[IiI11I(0x303,'iF8V')]()*0x383+0x64),lat=IiI11I(0x730,'Jhn3')+Math['floor'](Math[IiI11I(0x5f8,'TUHa')]()*0x383+0x64),rs_wait=0x1,waitTimes=parseInt(rs_wait)*0x3e8,lnrun=0x0;!(async()=>{const ll1ili=IiI11I,I1IlIl={'obsTs':ll1ili(0x237,'OrZE'),'XCcvR':function(l1I1i1,I1IlIi){return l1I1i1!==I1IlIi;},'qkGfC':'BihaZ','UVEmN':ll1ili(0x7ae,'AJ]m'),'kcDYi':ll1ili(0x3a4,'B#sZ'),'nghDK':function(l1ll1i,IiIil1){return l1ll1i<IiIil1;},'IxsBj':'KRIvy','Kncht':function(i111l,lIiIlI){return i111l+lIiIlI;},'DJsRP':function(iilIlI,i111i){return iilIlI==i111i;},'hkVdM':ll1ili(0x209,'mGLP'),'aLbaX':ll1ili(0x174,'aMUl'),'zgWrc':function(lIlli1,llIii1,I1IlII){return lIlli1(llIii1,I1IlII);},'AseJK':function(l1III,l1I1iI){return l1III*l1I1iI;},'sKgFb':function(III1l1,Il111){return III1l1*Il111;}};if(!cookiesArr[0x0]){if(I1IlIl[ll1ili(0x3c1,'PMp6')](I1I
|
|
|
|
|
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
|