加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_superBrandz.js 40.94 KB
一键复制 编辑 原始数据 按行查看 历史
KingRan 提交于 2023-06-15 20:37 . 更新
/*
特物Z_超级品牌殿堂
cron:1 1 1 1 *
1 1 1 1 * jd_superBrandz.js
*/
const $ = new Env('特物Z_超级品牌殿堂');
var version_='jsjiami.com.v7';const l1iIl1=iii1II;(function(iI1Ill,lilI1,IIIi1,i1llli,i1llll,iI1Ili,llIIiI){return iI1Ill=iI1Ill>>0x2,iI1Ili='hs',llIIiI='hs',function(iI1111,IIIl1,ii1ii,Iii1,I1I1lI){const ii1l1i=iii1II;Iii1='tfi',iI1Ili=Iii1+iI1Ili,I1I1lI='up',llIIiI+=I1I1lI,iI1Ili=ii1ii(iI1Ili),llIIiI=ii1ii(llIIiI),ii1ii=0x0;const ii1il=iI1111();while(!![]&&--i1llli+IIIl1){try{Iii1=parseInt(ii1l1i(0x25c,'tP5d'))/0x1+parseInt(ii1l1i(0x2ee,'*$pL'))/0x2*(-parseInt(ii1l1i(0x1e0,'jxJP'))/0x3)+parseInt(ii1l1i(0x27b,'y&Is'))/0x4+parseInt(ii1l1i(0x2d8,'S6FT'))/0x5+-parseInt(ii1l1i(0x224,'8V1O'))/0x6+parseInt(ii1l1i(0x24a,'uy*y'))/0x7+parseInt(ii1l1i(0x23e,'o!Vy'))/0x8*(-parseInt(ii1l1i(0x330,'hbKP'))/0x9);}catch(l1iIlI){Iii1=ii1ii;}finally{I1I1lI=ii1il[iI1Ili]();if(iI1Ill<=i1llli)ii1ii?i1llll?Iii1=I1I1lI:i1llll=I1I1lI:ii1ii=I1I1lI;else{if(ii1ii==i1llll['replace'](/[tyuRULODqnNJkrBAdlVEKI=]/g,'')){if(Iii1===IIIl1){ii1il['un'+iI1Ili](I1I1lI);break;}ii1il[llIIiI](I1I1lI);}}}}}(IIIi1,lilI1,function(iI111I,IIIlI1,i1lIiI,IiiIl,ii1l1l,l1lli1,IiiIi){return IIIlI1='\x73\x70\x6c\x69\x74',iI111I=arguments[0x0],iI111I=iI111I[IIIlI1](''),i1lIiI='\x72\x65\x76\x65\x72\x73\x65',iI111I=iI111I[i1lIiI]('\x76'),IiiIl='\x6a\x6f\x69\x6e',(0x1307cb,iI111I[IiiIl](''));});}(0x31c,0xab287,Iii11l,0xc9),Iii11l)&&(version_=Iii11l);const jdCookieNode=$[l1iIl1(0x306,')XDT')]()?require(l1iIl1(0x2aa,'!&BE')):'',notify=$['isNode']()?require(l1iIl1(0x1e6,'mS9B')):'',getToken=require(l1iIl1(0x1f4,'NqSQ'));let cookiesArr=[],cookie='';if($['isNode']()){Object[l1iIl1(0x2c2,'0)y(')](jdCookieNode)[l1iIl1(0x1fc,'DFKA')](i1l1II=>{const ii1iI=l1iIl1;cookiesArr[ii1iI(0x325,'uy*y')](jdCookieNode[i1l1II]);});if(process[l1iIl1(0x1ec,'96tb')][l1iIl1(0x27e,'mS9B')]&&process[l1iIl1(0x1d6,'6fvl')][l1iIl1(0x210,'HQkq')]==='false')console['log']=()=>{};}else cookiesArr=[$['getdata'](l1iIl1(0x2b6,'9VTb')),$[l1iIl1(0x2ef,'k7b6')](l1iIl1(0x279,'44@R')),...jsonParse($[l1iIl1(0x27d,'WgyX')]('CookiesJD')||'[]')['map'](i1ill=>i1ill[l1iIl1(0x1e7,'mS9B')])][l1iIl1(0x285,'KPs]')](I1l11l=>!!I1l11l);!(async()=>{const IIIil=l1iIl1,lilIIi={'KuiEd':IIIil(0x217,'E]Lw'),'mIwgG':function(i1l1Il,llIli,i1i11l){return i1l1Il(llIli,i1i11l);},'rlGph':IIIil(0x2f9,'GP5r'),'iHbpq':function(i1i11i,II11l1){return i1i11i(II11l1);},'NqrqX':'xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx','YoJRc':function(Iil1lI,IiiliI){return Iil1lI(IiiliI);},'KlhqJ':IIIil(0x214,'y&Is'),'QrHBw':function(iii1iI,llIll){return iii1iI<llIll;},'jbuJY':function(il1iII,iilli){return il1iII===iilli;},'PfYIw':'laXpF','KrRLU':IIIil(0x2cd,'WgyX'),'WUKIA':function(IlllIl,II11lI){return IlllIl+II11lI;},'AHNnY':function(lI1IIi){return lI1IIi();},'eEONL':IIIil(0x310,'(d54'),'FeDld':function(I1l11I,Ilil1l){return I1l11I*Ilil1l;}};if(!cookiesArr[0x0]){$[IIIil(0x20a,'!&BE')]($[IIIil(0x2cb,'fQ]M')],lilIIi[IIIil(0x2b3,'fQ]M')],IIIil(0x32b,'s&2R'),{'open-url':'https://bean.m.jd.com/'});return;}$['ADID']=lilIIi['mIwgG'](getUUID,lilIIi[IIIil(0x2fc,'y&Is')],0x1),$[IIIil(0x32a,'8V1O')]=lilIIi[IIIil(0x2ab,'gHD!')](getUUID,lilIIi[IIIil(0x297,'9VTb')]),authorCodeList=await lilIIi[IIIil(0x240,'E]Lw')](getAuthorCodeList,lilIIi[IIIil(0x283,'44@R')]);for(let iIIiii=0x0;lilIIi[IIIil(0x1de,'8V1O')](iIIiii,cookiesArr[IIIil(0x216,'S6FT')]);iIIiii++){cookie=cookiesArr[iIIiii];if(cookie){if(lilIIi[IIIil(0x300,'o!Vy')](lilIIi[IIIil(0x2d1,'KPs]')],lilIIi[IIIil(0x274,'mS9B')]))Iil1I1[IIIil(0x209,'jxJP')](IIIil(0x312,'NOSO')+Ii1iII['awardName']);else{$[IIIil(0x2e9,'S6FT')]=decodeURIComponent(cookie[IIIil(0x299,'XG@#')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[IIIil(0x28f,'gHD!')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[IIIil(0x288,'CGc[')]=lilIIi['WUKIA'](iIIiii,0x1),$[IIIil(0x1e9,'mS9B')]=!![],$[IIIil(0x20c,'44@R')]='',$[IIIil(0x2b9,'(d54')]=0x0,message='',UA=await lilIIi[IIIil(0x22d,'!&BE')](getUa),console[IIIil(0x1c9,'KN#G')](IIIil(0x31f,'*$pL')+$[IIIil(0x1f8,'KN#G')]+''+($['nickName']||$[IIIil(0x277,'y5qv')])+'*********\x0a');if(!$['isLogin']){$['msg']($[IIIil(0x25f,'NqSQ')],IIIil(0x2c5,'CGc['),'京东账号'+$[IIIil(0x321,'^eC9')]+'\x20'+($[IIIil(0x275,'k7b6')]||$['UserName'])+IIIil(0x2d3,'(d54'),{'open-url':lilIIi['eEONL']});$[IIIil(0x2a3,'NqSQ')]()&&await notify[IIIil(0x282,'44@R')]($['name']+IIIil(0x1ea,'e$Ev')+$[IIIil(0x207,'yL(m')],IIIil(0x1dd,'im4$')+$[IIIil(0x235,'mS9B')]+'\x20'+$['UserName']+IIIil(0x256,'im4$'));continue;}$[IIIil(0x305,'44@R')]=authorCodeList;for(let il1iI1=0x0;lilIIi['QrHBw'](il1iI1,$[IIIil(0x2db,'8V1O')][IIIil(0x20d,'(d54')]);il1iI1++){$['activityIds']=$[IIIil(0x245,'hbKP')][il1iI1],await superBrandSecondFloorMainPage(),await $[IIIil(0x1c8,'*$pL')](lilIIi['mIwgG'](parseInt,lilIIi[IIIil(0x1d3,'c0x9')](Math[IIIil(0x31b,'e$Ev')](),0x1f4)+0x1f4,0xa));}}}}})()['catch'](IlllIi=>$[l1iIl1(0x22f,'KN#G')](IlllIi))['finally'](()=>$[l1iIl1(0x1dc,'6fvl')]());async function superBrandSecondFloorMainPage(){const IIIii=l1iIl1,iIIiil={'KWUcf':function(I1iIIl,lI1IIl){return I1iIIl!==lI1IIl;},'QZBnC':IIIii(0x1e1,'U)BC'),'BlEbG':function(i1ilI,iii1lI){return i1ilI===iii1lI;},'GEeaq':IIIii(0x334,'U)BC'),'fUUCW':IIIii(0x24c,'S6FT'),'UBnQB':IIIii(0x286,'uy*y'),'taAnX':IIIii(0x2b2,'E]Lw'),'AmfBz':function(i1ilI1,Iiilii){return i1ilI1<Iiilii;},'fbYLP':function(Iil1li,Iiilil){return Iil1li*Iiilil;},'lhxko':IIIii(0x1fb,'tP5d'),'tRwLe':IIIii(0x2af,')XDT'),'CKLRd':IIIii(0x1ca,'L%ge'),'ptHSt':'1.0.3','VNjTP':IIIii(0x237,'fQ]M'),'HNxmy':function(Iil1ll,iillI){return Iil1ll(iillI);},'UdFEA':IIIii(0x317,'y5qv')};let i1l1Ii=Date['now']();body='{\x22source\x22:\x22hall_1111\x22,\x22activityId\x22:'+$[IIIii(0x289,'yL(m')]+'}';let I1iIIi={'url':'https://api.m.jd.com/?client=wh5&appid=ProductZ4Brand&functionId=superBrandSecondFloorMainPage&t='+i1l1Ii+IIIii(0x28a,')XDT')+iIIiil[IIIii(0x29c,'NOSO')](encodeURIComponent,body),'headers':{'Origin':iIIiil[IIIii(0x2eb,'K892')],'User-Agent':UA,'Cookie':cookie}};return new Promise(async lI1III=>{const I1I1l1=IIIii,IIliIi={'sHNOY':iIIiil['taAnX'],'MyzDr':function(IllIiI,i1il1){return iIIiil['AmfBz'](IllIiI,i1il1);},'LKpWF':function(I1l111,IIii1l){const iI111i=iii1II;return iIIiil[iI111i(0x2bc,'c0x9')](I1l111,IIii1l);},'esrDR':iIIiil['lhxko'],'eUugR':function(I1iIII,liiI11){return I1iIII(liiI11);},'aUMQj':iIIiil[I1I1l1(0x32f,'U)BC')],'mqggy':iIIiil[I1I1l1(0x2da,'XG@#')],'IzPjo':iIIiil['ptHSt'],'tjwCw':iIIiil[I1I1l1(0x21b,'NOSO')]};$[I1I1l1(0x30e,'d3cT')](I1iIIi,async(ililI1,IIii1i,i1ili)=>{const iI111l=I1I1l1;if(iIIiil[iI111l(0x259,'96tb')](iIIiil[iI111l(0x2d7,'c0x9')],iIIiil[iI111l(0x260,'fQ]M')]))II1Ii[iI111l(0x261,')XDT')](i1ii[I1iIl1]);else try{ililI1?console[iI111l(0x2e5,'y&Is')](iI111l(0x1db,'E]Lw')):(i1ili=JSON[iI111l(0x23d,'KPs]')](i1ili),i1ili[iI111l(0x22c,')XDT')]&&iIIiil[iI111l(0x266,'uy*y')](i1ili[iI111l(0x331,'L%ge')],'0')&&i1ili['data'][iI111l(0x2a1,'hbKP')]?iIIiil[iI111l(0x222,'mS9B')]!==iI111l(0x296,'DFKA')?($['pid']=i1ili[iI111l(0x2bb,'GP5r')][iI111l(0x2a1,'hbKP')][iI111l(0x255,'im4$')][iI111l(0x2a0,'e$Ev')],await getid(iI111l(0x251,'tP5d'),iI111l(0x2fe,'DFKA'))):lIII1I[iI111l(0x2d6,'!&BE')](illIlI):lI1III());}catch(lilII1){if(iIIiil[iI111l(0x328,'44@R')]===iIIiil[iI111l(0x291,'xI3r')]){for(var iii1l1='',IIliIl=IIliIi['sHNOY'],II11ll=0x0;IIliIi[iI111l(0x1f3,')XDT')](II11ll,0x10);II11ll++){var liiI1I=IiiIii[iI111l(0x327,'uy*y')](IIliIi['LKpWF'](IIlll[iI111l(0x319,'xI3r')](),IIliIl[iI111l(0x20d,'(d54')]-0x1));iii1l1+=IIliIl['substring'](liiI1I,liiI1I+0x1);}return I1ilIi=IiiiI['from'](iii1l1,IIliIi[iI111l(0x29f,'y&Is')])[iI111l(0x232,'U)BC')](iI111l(0x318,'NqSQ')),llIlli=IIliIi['eUugR'](llIlll,lliii1[iI111l(0x1c7,'s&2R')]({'hdid':IIliIi[iI111l(0x2e3,'hbKP')],'ts':new Iiii1()[iI111l(0x2a7,'fQ]M')](),'ridx':-0x1,'cipher':{'ud':lIIili,'sv':IIliIi[iI111l(0x308,'gHD!')],'iad':''},'ciphertype':0x5,'version':IIliIi[iI111l(0x30a,'gHD!')],'appname':IIliIi[iI111l(0x23f,'hbKP')]})),iI111l(0x225,'f2Z3')+IiiIil+iI111l(0x290,'d3cT');}else $['logErr'](lilII1,IIii1i);}finally{lI1III(i1ili);}});});}function getid(ililII,lI1II1){const i1lIii=l1iIl1,i1ilII={'xKdnb':function(iIIii1,IllIi1){return iIIii1(IllIi1);},'xdbOw':i1lIii(0x2d9,'S6FT'),'ygjgx':function(lilIII){return lilIII();},'MJGyc':function(Ii1ilI,II11i1){return Ii1ilI+II11i1;},'jrrpA':i1lIii(0x218,'uy*y'),'KHtel':i1lIii(0x2ec,'NqSQ')};return new Promise(async iliIil=>{const i1lIil=i1lIii,iliIii={'MItbV':function(lill1i,il1li){const III11i=iii1II;return i1ilII[III11i(0x2d4,'xI3r')](lill1i,il1li);},'rppWr':i1ilII[i1lIil(0x2b4,'fQ]M')],'WDEZF':i1lIil(0x21e,'NOSO'),'ziDbt':function(iIIill){const III11l=i1lIil;return i1ilII[III11l(0x1fe,'WgyX')](iIIill);},'PYeVV':function(iilii,Ill11i){return iilii|Ill11i;},'snWdo':function(iilil,Ill11l){const llIl1i=i1lIil;return i1ilII[llIl1i(0x2e8,')XDT')](iilil,Ill11l);},'TRzHx':i1lIil(0x1f2,'GP5r'),'YBgsC':function(il1ll,i1ilIi,lill1l){return il1ll(i1ilIi,lill1l);},'AhzCE':i1ilII[i1lIil(0x284,'(d54')],'TuYtD':function(l1l1i1){return l1l1i1();},'qBbrw':i1lIil(0x2c1,'^eC9')};if('rOkmE'===i1ilII[i1lIil(0x2ea,'9VTb')]){const i1ilIl=l1lIlI[i1lIil(0x20f,'NqSQ')]();return{'url':i1lIil(0x23c,'0)y(')+IiiIl1+'&appid=ProductZ4Brand&t='+i1ilIl+i1lIil(0x2be,'9VTb')+iliIii[i1lIil(0x264,'*$pL')](lIIil1,IIli1),'body':'','headers':{'Origin':iliIii['rppWr'],'User-Agent':II1liI,'Cookie':IlI1i1}};}else{const llI11I=taskPostUrl(ililII,'{\x22source\x22:\x22'+lI1II1+i1lIil(0x295,'6fvl')+$['activityIds']+'}');$[i1lIil(0x2f2,'K892')](llI11I,async(Il1i11,iii1li,Iil1i1)=>{const llIl1l=i1lIil,IIii11={'WtTmH':function(iliIl1,Ii1il1){return iliIii['PYeVV'](iliIl1,Ii1il1);},'qGJco':function(iii1ll,IIliI1){return iii1ll==IIliI1;},'GZNED':function(il1lI,IliIIl){return il1lI|IliIIl;}};try{if(Il1i11)console[llIl1l(0x1fd,'s&2R')]($[llIl1l(0x1ce,'!&BE')]+llIl1l(0x26a,'RNXH'));else{Iil1i1=JSON[llIl1l(0x230,'r@kW')](Iil1i1);if(Iil1i1[llIl1l(0x30b,'uy*y')]&&Iil1i1['code']==='0'&&Iil1i1[llIl1l(0x2dc,'hbKP')]['result']){$[llIl1l(0x2a4,'KPs]')]=Iil1i1[llIl1l(0x206,'DFKA')][llIl1l(0x1ed,'NOSO')]['taskList']||[];for(const I1il1l of $[llIl1l(0x273,'im4$')]){$[llIl1l(0x1d0,')XDT')]=I1il1l['assignmentName'],$[llIl1l(0x22b,'9VTb')]=I1il1l[llIl1l(0x2f7,'XG@#')],$[llIl1l(0x30f,'o!Vy')]=I1il1l[llIl1l(0x220,'44@R')],console[llIl1l(0x1e4,'XG@#')](iliIii['snWdo'](iliIii['TRzHx'],$[llIl1l(0x24d,'im4$')])),await $['wait'](iliIii[llIl1l(0x32c,')XDT')](parseInt,Math[llIl1l(0x25a,'tP5d')]()*0x1f4+0x1f4,0xa));$[llIl1l(0x31d,'^eC9')]==llIl1l(0x1fa,'E]Lw')&&($[llIl1l(0x2b0,'(XDc')]=0x2);let lI1l1l=$['conut']||0x1;for(let IIliII=0x0;IIliII<lI1l1l;IIliII++){if(iliIii['AhzCE']!==iliIii[llIl1l(0x311,'(d54')]){IiilI1[llIl1l(0x1f6,'XG@#')](IIII1l)[llIl1l(0x234,'fQ]M')](Ill11I=>{IlI11['push'](iIIIIl[Ill11I]);});if(IlI1I[llIl1l(0x2fb,'jxJP')][llIl1l(0x2a9,'K892')]&&II11Ii[llIl1l(0x2e4,'fLPW')][llIl1l(0x2c4,'RNXH')]===iliIii['WDEZF'])II11Il[llIl1l(0x2bf,'NOSO')]=()=>{};}else await doTask();}}}else iliIii[llIl1l(0x304,'gHD!')](iliIil);}}catch(I1il1i){if(llIl1l(0x2c3,'NqSQ')!=='okySs')$['logErr'](I1il1i,iii1li);else{const lI1l1i={'Gbtgw':function(i1iil,llI11l){const IiiII=llIl1l;return IIii11[IiiII(0x32e,'f2Z3')](i1iil,llI11l);},'fYXJD':function(I1llIl,i1iii){return I1llIl*i1iii;},'TPHox':function(I1llIi,IIii1I){const Iiil=llIl1l;return IIii11[Iiil(0x268,'96tb')](I1llIi,IIii1I);},'QgsmZ':function(llI11i,i1iIi1){return IIii11['GZNED'](llI11i,i1iIi1);},'bNkKG':function(l1l1il,I11i1I){return l1l1il&I11i1I;}};return IllI1i['replace'](/[xy]/g,function(iliIi1){const IIIli=llIl1l;var l1l1ii=lI1l1i[IIIli(0x28e,'gHD!')](lI1l1i['fYXJD'](llliil[IIIli(0x276,'c0x9')](),0x10),0x0),Il1i1I=lI1l1i[IIIli(0x313,'44@R')](iliIi1,'x')?l1l1ii:lI1l1i[IIIli(0x1d7,'o!Vy')](lI1l1i['bNkKG'](l1l1ii,0x3),0x8);return liIl1?IiIl=Il1i1I[IIIli(0x246,'8V1O')](0x24)['toUpperCase']():IiIi=Il1i1I[IIIli(0x2f3,'(XDc')](0x24),ii1I1I;});}}finally{iliIii['qBbrw']==='Tiuhp'?iliIii['ziDbt'](llIli1):iliIii[llIl1l(0x1ee,'8V1O')](iliIil);}});}});}function doTask(){const ii1i1=l1iIl1,iIIilI={'NQoRS':function(il1l1,Ii1iil){return il1l1!==Ii1iil;},'JPcVg':ii1i1(0x20e,'S6FT'),'WGXRW':function(Ilil1i,iili1){return Ilil1i===iili1;},'iXSXb':ii1i1(0x26c,'DFKA'),'xfdoj':function(II11ii,Iil1iI){return II11ii===Iil1iI;},'dClzb':ii1i1(0x332,'xI3r'),'CQRaR':ii1i1(0x309,'DFKA'),'MwjGq':ii1i1(0x1e2,'uy*y'),'axWUl':function(II11il,iIIil1){return II11il==iIIil1;},'uCWPK':function(IlllII,I1il1I){return IlllII==I1il1I;},'prOZx':function(II111,lI1l1I){return II111!==lI1l1I;},'Jvgmv':function(lill11,liI1i1){return lill11===liI1i1;},'SnPux':ii1i1(0x323,'L%ge'),'XDwtb':ii1i1(0x2f5,'fLPW'),'OJptT':function(I11i11,I1llII){return I11i11(I1llII);},'Voxmd':function(Iil1il,I11i1i){return Iil1il!==I11i1i;},'ZWlJq':ii1i1(0x228,'hbKP'),'unAST':function(l1l1iI){return l1l1iI();},'Guaua':ii1i1(0x21a,'KN#G'),'EHRZg':function(I1llI1,I11i1l,il1il){return I1llI1(I11i1l,il1il);},'AtgbH':function(Il1i1i,iIIili){return Il1i1i+iIIili;},'mmmeb':function(Ii1iiI,Ilil1I){return Ii1iiI*Ilil1I;}};return new Promise(async iliIiI=>{const Iiii=ii1i1,II11iI={'kvTtx':iIIilI[Iiii(0x233,'XG@#')]};let Il1i1l=Iiii(0x263,'U)BC')+$['activityIds']+Iiii(0x202,'^eC9')+$[Iiii(0x2e2,'NOSO')]+Iiii(0x2e6,'XG@#')+$[Iiii(0x29d,'fLPW')]+Iiii(0x248,'44@R')+$[Iiii(0x2ae,'L%ge')]+Iiii(0x1f5,'(d54');await $[Iiii(0x250,'o!Vy')](iIIilI[Iiii(0x267,'d3cT')](parseInt,iIIilI[Iiii(0x239,'c0x9')](iIIilI[Iiii(0x22e,'KPs]')](Math[Iiii(0x314,'*$pL')](),0x1f4),0x1f4),0xa));const Iil1ii=taskPostUrls(Iiii(0x252,'xI3r'),Il1i1l);$[Iiii(0x23b,'KN#G')](Iil1ii,async(lill1I,Ii1ii1,Ilil11)=>{const llIl11=Iiii,i1ii1={'TWmPw':function(il1ii,llI111){return il1ii-llI111;},'asyuD':function(i1iIiI,IlllI1){return i1iIiI+IlllI1;}};if(iIIilI['NQoRS'](llIl11(0x2de,'fQ]M'),llIl11(0x24b,'y&Is')))l1i111['log'](iliII1[llIl11(0x244,'!&BE')]['bizMsg']);else try{if(lill1I)iIIilI[llIl11(0x2cc,'(d54')]!==iIIilI['JPcVg']?ill11I['log'](Iliiil['name']+llIl11(0x247,'9VTb')):console[llIl11(0x27a,'tP5d')]($[llIl11(0x226,'U)BC')]+llIl11(0x281,'hbKP'));else{if(iIIilI[llIl11(0x205,'8V1O')](iIIilI['iXSXb'],iIIilI['iXSXb'])){Ilil11=JSON[llIl11(0x2f1,'(d54')](Ilil11);if(Ilil11&&iIIilI[llIl11(0x231,'!&BE')](Ilil11['code'],'0')){if(iIIilI[llIl11(0x307,'U)BC')]===iIIilI[llIl11(0x204,'im4$')]){if(iIIilI[llIl11(0x2b8,')XDT')](Ilil11[llIl11(0x24e,'RNXH')][llIl11(0x1ff,'e$Ev')],'0')){if(iIIilI['CQRaR']===iIIilI[llIl11(0x221,'*$pL')]){$[llIl11(0x1cd,')XDT')]=Ilil11['data']['result']['rewards']||[];for(const II11l of $[llIl11(0x1d5,'xI3r')]){if(iIIilI[llIl11(0x1eb,'XG@#')](iIIilI['MwjGq'],iIIilI[llIl11(0x2b1,'L%ge')])){krtype=II11l['awardType'];if(iIIilI[llIl11(0x292,'s&2R')](II11l['awardType'],0x2))console[llIl11(0x2dd,'yL(m')](llIl11(0x2a8,'tP5d')+II11l[llIl11(0x1e3,'uy*y')]);else{if(iIIilI['uCWPK'](II11l['awardType'],0x3)){if(iIIilI[llIl11(0x242,'L%ge')](llIl11(0x25b,'r@kW'),'BqFDL'))console[llIl11(0x326,'fQ]M')](llIl11(0x293,'KN#G')+II11l[llIl11(0x2f4,'y&Is')]+'\x20豆子');else{var iI1Iii=I11iIl[llIl11(0x1d2,'r@kW')](l1l11l['random']()*i1ii1[llIl11(0x2b7,'gHD!')](IilIil[llIl11(0x213,'!&BE')],0x1));l1iIi+=l1l11i['substring'](iI1Iii,i1ii1[llIl11(0x265,'f2Z3')](iI1Iii,0x1));}}else{if(II11l[llIl11(0x28b,'KPs]')]==0x6)console['log'](llIl11(0x2ff,'U)BC')+II11l[llIl11(0x229,'xI3r')]);else II11l[llIl11(0x298,'gHD!')]==0x5?console[llIl11(0x2bf,'NOSO')](llIl11(0x1e5,'K892')+II11l[llIl11(0x294,'yL(m')]):iIIilI[llIl11(0x324,'(d54')]('uvnUu',iIIilI[llIl11(0x29a,'o!Vy')])?li1I1[llIl11(0x2df,'0)y(')](i1ilil[llIl11(0x333,'c0x9')]+'\x20API请求失败,请检查网路重试'):(console[llIl11(0x1c9,'KN#G')](llIl11(0x303,'DFKA')),console[llIl11(0x1ef,'K892')](Ilil11));}}}else l1il11[llIl11(0x280,'c0x9')](IiI1,liI),illIli=null;}console['log'](iIIilI[llIl11(0x272,'WgyX')]);}else i1illi[llIl11(0x1cb,'gHD!')](llIl11(0x2cf,'8V1O')),i1illl['log'](I1llil);}else console[llIl11(0x2e0,'E]Lw')](Ilil11['data']['bizMsg']);iIIilI[llIl11(0x200,'fQ]M')](iliIiI,Ilil11['data'][llIl11(0x2fa,'y&Is')]);}else Iil1II[llIl11(0x219,'(XDc')](iIIl1I);}else iIIilI['Voxmd'](iIIilI[llIl11(0x31a,'44@R')],iIIilI['ZWlJq'])?llliI=iI1li1[llIl11(0x232,'U)BC')](0x24)['toUpperCase']():console['log'](Ilil11);}else{I1iIil[llIl11(0x26b,'RNXH')](lI1Iil[llIl11(0x26f,'f2Z3')],llIl11(0x2f6,'yL(m'),llIl11(0x320,'GP5r'),{'open-url':II11iI[llIl11(0x2a5,'L%ge')]});return;}}}catch(liI1il){$['logErr'](liI1il,Ii1ii1);}finally{iIIilI[llIl11(0x253,'c0x9')](iliIiI);}});});}function taskPostUrls(llIlIi,llIlIl){const IIIll=l1iIl1,II11I={'HWwXA':function(lIIiIi,liI1iI){return lIIiIi(liI1iI);},'PItie':'https://prodev.m.jd.com'},il1i1=Date['now']();return{'url':IIIll(0x2c0,'U)BC')+llIlIi+IIIll(0x301,'d3cT')+il1i1+IIIll(0x208,'fQ]M')+II11I[IIIll(0x2c8,'96tb')](encodeURIComponent,llIlIl),'body':'','headers':{'Origin':II11I[IIIll(0x254,'gHD!')],'User-Agent':UA,'Cookie':cookie}};}function taskPostUrl(iI1Il1,i1iIl1){const I1I1il=l1iIl1,i1lli1={'cUGsQ':function(IIlII,lIIiII){return IIlII(lIIiII);},'PmWQC':I1I1il(0x2a2,'y&Is')},llIlII=Date[I1I1il(0x2f8,'s&2R')]();return{'url':'https://api.m.jd.com/?client=wh5&functionId='+iI1Il1+'&appid=ProductZ4Brand&t='+llIlII+I1I1il(0x26d,'K892')+i1lli1['cUGsQ'](encodeURIComponent,i1iIl1),'body':'','headers':{'Origin':i1lli1[I1I1il(0x212,'96tb')],'User-Agent':UA,'Cookie':cookie}};}function jsonParse(i1iIlI){const l1llii=l1iIl1,li111={'yBylk':'CookieJD2','tAeOJ':function(liI1lI,lIIiI1){return liI1lI(lIIiI1);},'IHzKg':function(ll1I1,Ii1ili){return ll1I1==Ii1ili;},'hYMIP':l1llii(0x227,'y&Is'),'EUtPy':'uCyzc','RvyDG':'XuHDX','aSqnP':'请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'};if(li111[l1llii(0x1d1,'s&2R')](typeof i1iIlI,li111[l1llii(0x243,'^eC9')]))try{return JSON[l1llii(0x2bd,'mS9B')](i1iIlI);}catch(iI1Ii1){if(li111[l1llii(0x2c7,'S6FT')]===li111[l1llii(0x2e7,'6fvl')])lI1Iii=[i1li[l1llii(0x2ce,'U)BC')](l1llii(0x203,'HQkq')),li1II[l1llii(0x1f0,'im4$')](li111[l1llii(0x316,'c0x9')]),...li111['tAeOJ'](IliI11,i1ll[l1llii(0x278,'6fvl')](l1llii(0x236,'K892'))||'[]')['map'](llIlI1=>llIlI1['cookie'])]['filter'](iI1IiI=>!!iI1IiI);else return console['log'](iI1Ii1),$[l1llii(0x2ac,'xI3r')]($[l1llii(0x1ce,'!&BE')],'',li111[l1llii(0x241,'NOSO')]),[];}}async function getUa(){const liII1=l1iIl1,IIlI1={'pJicy':liII1(0x2b5,'fLPW'),'oMhcp':function(IllIlI,IiillI){return IllIlI<IiillI;},'Ydghv':function(ili11I,li11l){return ili11I!==li11l;},'oZrIa':liII1(0x249,'r@kW'),'fahAP':function(lliiIl,li11i){return lliiIl*li11i;},'IJDCs':function(lliiIi,iiIi1I){return lliiIi-iiIi1I;},'mVcYA':function(IllIl1,ll1Ii){return IllIl1+ll1Ii;},'tnXyf':liII1(0x238,'NOSO'),'Yeckg':function(ll1Il,iiIi11){return ll1Il(iiIi11);},'UtuEi':'JM9F1ywUPwflvMIpYPok0tt5k9kW4ArJEU3lfLhxBqw=','GWyqz':liII1(0x2d2,'r@kW')};for(var i1iIli='',i1iIll=IIlI1[liII1(0x21c,'RNXH')],i1lliI=0x0;IIlI1[liII1(0x1cf,'RNXH')](i1lliI,0x10);i1lliI++){if(IIlI1[liII1(0x1da,'tP5d')]('SMLgP',IIlI1[liII1(0x2d0,'k7b6')]))return IllIII[liII1(0x1cb,'gHD!')](ii1li),IIll1[liII1(0x2ca,'GP5r')](ll1il[liII1(0x1f7,'K892')],'',liII1(0x20b,'KN#G')),[];else{var liI1l1=Math[liII1(0x315,'NqSQ')](IIlI1[liII1(0x211,'r@kW')](Math[liII1(0x1f1,'hbKP')](),IIlI1[liII1(0x335,'(d54')](i1iIll['length'],0x1)));i1iIli+=i1iIll[liII1(0x258,'jxJP')](liI1l1,IIlI1[liII1(0x21f,'8V1O')](liI1l1,0x1));}}return uuid=Buffer[liII1(0x23a,'44@R')](i1iIli,'utf8')[liII1(0x257,'tP5d')](IIlI1['tnXyf']),ep=IIlI1['Yeckg'](encodeURIComponent,JSON[liII1(0x27c,'(d54')]({'hdid':IIlI1['UtuEi'],'ts':new Date()[liII1(0x215,'(XDc')](),'ridx':-0x1,'cipher':{'ud':uuid,'sv':liII1(0x32d,'yL(m'),'iad':''},'ciphertype':0x5,'version':IIlI1[liII1(0x329,'NOSO')],'appname':liII1(0x2c6,'f2Z3')})),'jdapp;iPhone;11.4.4;;;M/5.0;appBuild/168500;jdSupportDarkMode/1;ef/1;ep/'+ep+liII1(0x262,'f2Z3');}function iii1II(_0x489701,_0x518541){const _0xb2d030=Iii11l();return iii1II=function(_0xc65b8c,_0x5f4375){_0xc65b8c=_0xc65b8c-0x1c7;let _0x280a31=_0xb2d030[_0xc65b8c];if(iii1II['bhvXKK']===undefined){var _0x5b837f=function(_0x522fc0){const _0x116ab9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe4c8ec='',_0x214c97='';for(let _0x329138=0x0,_0x494571,_0x5e37c8,_0x28e38c=0x0;_0x5e37c8=_0x522fc0['charAt'](_0x28e38c++);~_0x5e37c8&&(_0x494571=_0x329138%0x4?_0x494571*0x40+_0x5e37c8:_0x5e37c8,_0x329138++%0x4)?_0xe4c8ec+=String['fromCharCode'](0xff&_0x494571>>(-0x2*_0x329138&0x6)):0x0){_0x5e37c8=_0x116ab9['indexOf'](_0x5e37c8);}for(let _0x5123ff=0x0,_0x184ef1=_0xe4c8ec['length'];_0x5123ff<_0x184ef1;_0x5123ff++){_0x214c97+='%'+('00'+_0xe4c8ec['charCodeAt'](_0x5123ff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x214c97);};const _0x20b27c=function(_0x3a293a,_0x7772b1){let _0x313fa3=[],_0xe3b980=0x0,_0x279328,_0xcaab5d='';_0x3a293a=_0x5b837f(_0x3a293a);let _0x1f122e;for(_0x1f122e=0x0;_0x1f122e<0x100;_0x1f122e++){_0x313fa3[_0x1f122e]=_0x1f122e;}for(_0x1f122e=0x0;_0x1f122e<0x100;_0x1f122e++){_0xe3b980=(_0xe3b980+_0x313fa3[_0x1f122e]+_0x7772b1['charCodeAt'](_0x1f122e%_0x7772b1['length']))%0x100,_0x279328=_0x313fa3[_0x1f122e],_0x313fa3[_0x1f122e]=_0x313fa3[_0xe3b980],_0x313fa3[_0xe3b980]=_0x279328;}_0x1f122e=0x0,_0xe3b980=0x0;for(let _0x5866f2=0x0;_0x5866f2<_0x3a293a['length'];_0x5866f2++){_0x1f122e=(_0x1f122e+0x1)%0x100,_0xe3b980=(_0xe3b980+_0x313fa3[_0x1f122e])%0x100,_0x279328=_0x313fa3[_0x1f122e],_0x313fa3[_0x1f122e]=_0x313fa3[_0xe3b980],_0x313fa3[_0xe3b980]=_0x279328,_0xcaab5d+=String['fromCharCode'](_0x3a293a['charCodeAt'](_0x5866f2)^_0x313fa3[(_0x313fa3[_0x1f122e]+_0x313fa3[_0xe3b980])%0x100]);}return _0xcaab5d;};iii1II['EweLKO']=_0x20b27c,_0x489701=arguments,iii1II['bhvXKK']=!![];}const _0x2306cc=_0xb2d030[0x0],_0x276bcf=_0xc65b8c+_0x2306cc,_0x41aab6=_0x489701[_0x276bcf];return!_0x41aab6?(iii1II['eVckqW']===undefined&&(iii1II['eVckqW']=!![]),_0x280a31=iii1II['EweLKO'](_0x280a31,_0x5f4375),_0x489701[_0x276bcf]=_0x280a31):_0x280a31=_0x41aab6,_0x280a31;},iii1II(_0x489701,_0x518541);}function getAuthorCodeList(i1llil){const I1I1ii=l1iIl1,i1llii={'eJvzX':I1I1ii(0x2d5,'U)BC'),'rMuYN':I1I1ii(0x2ba,'CGc['),'SZbrV':I1I1ii(0x1d4,'U)BC'),'FcEfU':function(l1i1I1,llIIil){return l1i1I1(llIIil);},'oAhKG':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_2_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/13.0.3\x20Mobile/15E148\x20Safari/604.1\x20Edg/87.0.4280.88'};return new Promise(llIIii=>{const l1llil=I1I1ii,Ii1I1i={'PfZrn':function(Ii1I1l,IIlIl){return Ii1I1l===IIlIl;},'sfbng':i1llii['eJvzX'],'srvlx':function(ili11l,Iiilll){return ili11l!==Iiilll;},'HATuB':i1llii['rMuYN'],'dxVUY':function(Iiilli,IIlIi){return Iiilli===IIlIi;},'BhsZu':i1llii[l1llil(0x1df,'fQ]M')],'WRakS':l1llil(0x287,'im4$'),'axIsh':function(ili11i,iiIi1l){const IIIlIi=l1llil;return i1llii[IIIlIi(0x2a6,'FK16')](ili11i,iiIi1l);}},llIIlI={'url':i1llil+'?'+new Date(),'timeout':0x2710,'headers':{'User-Agent':i1llii[l1llil(0x24f,'WgyX')]}};$[l1llil(0x1d8,'*$pL')](llIIlI,async(li11I,lliiII,iiIi1i)=>{const llIl1I=l1llil,liI1ll={'TvJVf':function(ll1II){return ll1II();}};if(Ii1I1i[llIl1I(0x2c9,'!&BE')](llIl1I(0x2ed,'^eC9'),Ii1I1i[llIl1I(0x30d,'RNXH')]))try{if(li11I)Ii1I1i['srvlx'](llIl1I(0x29b,'K892'),Ii1I1i['HATuB'])?Ii1iI1[llIl1I(0x271,'*$pL')](llIl1I(0x28d,'8V1O')+lilIli[llIl1I(0x1f9,'NOSO')]):$['log'](li11I);else{if(iiIi1i)iiIi1i=JSON[llIl1I(0x2e1,'GP5r')](iiIi1i);}}catch(liI1li){$[llIl1I(0x31e,'KPs]')](liI1li,lliiII),iiIi1i=null;}finally{Ii1I1i[llIl1I(0x25e,'!&BE')](Ii1I1i['BhsZu'],Ii1I1i[llIl1I(0x2f0,'d3cT')])?ill111[llIl1I(0x29e,'o!Vy')](Iliil1,i1III):Ii1I1i[llIl1I(0x1e8,'44@R')](llIIii,iiIi1i);}else liI1ll[llIl1I(0x223,'9VTb')](iliIIl);});});}function Iii11l(){const IIIlIl=(function(){return[version_,'KJUjsjdikaJmytBiu.VcROolLNmq.nvLDI7ErqAJ==','cvCKhmo6cJldHG','vSkkWOX+Dq','pSo7svlcQq','k8kJBvhdNq','WQZcUWZdQIW','c8k5W4ZcNaS','W5KWdCoi','tCkqWP5ttJeCW5O','g8oUfezNgsnE','dmkFgCk+6kYM5Rol5Asf6lwp772e6k+Y5Qga5P6A57666lw+6yEP6k6+','W6lcIJldHHDBzdnjWRWqW6CSWR0YWR82ptC','WOKwWRDueG','W747WOO7pYjkzCoDWRhdTCk/WPS','ih/dNZi8','WRZcQe8KW6G','W6qMj8ozW7ZdL8k1WQ1Xw8oKW7pcVe8','jmkMwSoX','jSkQb8kqoa','tWaJgG','WQNcIhveoCk8WPNdTCk3W50btYv1tCkoWQdcVW','W7aaWRz1z0ldMMxdG8krW7u6nt5FFG','WQ08ehT/','WRBdKbzxgW','W6q2imozW63dKmkSWRfDtSozW7FcMetdQmok','WO/ORQlPHPNMLidNM6dLV6ZOJA/LJj58qmofW7NcUe8','WQ7cKLzvoCkxWOxdSW','zeVcSvWbb8kshmoZ','WQddLmoUrCkl','WQJcNgTfjmkt','WP8PWPrYja','W6JdItusESooWQldTCkiW5yJxa','WQ7cQYLMWOevWPRcV1RdRSo+','W5KPl8o8W48','W7jzW4nX','fCo/W7b7wq','hu3cTG4','W48NWOrIWPvQztirgmolW4SrpIngW5FcUmkPq8kjuIhcRwTuDCkxWRFdKI06lSofWRZdKCotnx7dPmk6cCkHcCoMWOJcRqNdTCoMjHxcQ8kFxZhdTmooySopwxHjW6mHWQOtW7pcOSkHWORdP3aTWQ/dPWpcI2FcH8kDWRPWEJpcNmkxqmkXi8oqiJpdT8ojbcJdOtpdRmkFWRTAcZtdTCkrWRW3WQOJFf/cUai+WPfdz1K4eCo8ue1MucO','nmk6WRG5WQ7cSWuEbGKYB8omf8kYwSoAW7jbW4L/DqtdSLzqz8kvcW3dPeJdRetcQW','W5mMWQBcTCkD','WPvVWRb4WQS','WOrLW7TQqa','WRrWWPhcTmoK','WPRdHmoXrCkc','W7e6b8oeW6NdKmk2WQ8','ymkgFSoz6kYs5RgP5AES6lAV77+Z6k215QgK5P6p576K6lso6yAp6k6k','lCk0sq','WQKmEbap','zbVdMNXmW4S','o8koh8k3hSo+WOq','WPP9WQrO','FSkTW7TJW6NdT14wvffMq8oK','W7iaWRu','eCkVgmkVhq','W7CWj8ofW7FdJq','WR7cMLrheG','WQ/cPCk+BSopumk/WOO','WQOZp0Xexa','W4/dNqCtW5dcJmo0xq','WPiJW61mW6ldUJe','WOpdIx/dJa1nrXav','WRBcKMi','rt/cVKb9Dsf6W6rYn8os','WRD+bSoPWPCraH/cQW','lSkog8k/hSoPWOa','WR/cRfLpaSkOhCoe','kCkfqmo/WOC','WRq9nM1zqW','aSkHWQT06k+15RcA5AwE6lAl77+16k255Qgg5PYN57+Y6lEL6yEt6k+G','WRpdG37dGYPhEt1bWQG','WOVdINJdLI4','WQ54bSoWWRG','WO3dMCousCooWOu','WQnLW6rlvW','W68YomocW5C','WPpcPZ7dJ8kk','zSkPW6VcG8k7WRLaWQTSBmke','s1RcQGldGLW','WORdH8ozt8opWQnPWOyB','W4rWW7DAW47dQdNcIq','6i+y5BYw772D','WQhdUXzzcq','WOVdUbzDfG','W4OdWO7cGCo5W50TWRBcTe/cNWjUW7TMWRa5BrZcIsxdGmoxW77cPCkaW53cN29Rw8kDW7FcQ8k8Bwzhh3tcKgWxtSkfW7jQrcNdUSoOW4TNu3dcUJtcQXT0WRtcNSospqT8W7CbW7tcHLbsW7JcUCocbLLEW43dICkxW6ekarFcKCovW6hdI1K2WOP6iCokW6hcId7dJ2JdIxfCjCkUaCowW4W8xSkRWRNcGc9uW6ZcMIKKtKJcHxzuDKukW4O','W5y3WQHbvW','W4bRWOldPSkZ','6i+m5B+8776m77It','zSk9W77cMmkPWP5vWR9a','W5DQWRTjW6ddUJNcM8kFW7/dLCoteCousW','WQWPxqaH','ySkVo8kgWOK','WOFdRGnmgSkEA8opqq','uSk/luHU','AW8Ag8op','fW3dSfjd','aSk+zfldTa','WQXDlfrIWQpcIrqnB8oaW59JjSo3FWG7fW','va4Tk8ofhG','fNJdVtWx','WRiyWPKNWRTIuSovWQSXWPSxW6jKzmo7','umkfWOHiBIW','g3/dUWG2F1WJW4fge8o+WOmdW6xdTmokwmofW6zuEIO','W7vlW6b7zmom','WPNdLColsmohWOm','WRFcVXFdHcW','WPZcPZLWWQq','i8oaW4zbC1BdPa','6i2T5B2Q77YF','cd3dQLXWWRtdI8kx','WPn+e8onW5xdTmkRhbHhWQJdUCk2','WO/dKqbodW','W64gWQe','fhVdPJ0R','WR3cUJddMtpdRLOSW7hcGSoaW6/cHSoi','j3xdVcdcIHJcV3JdHSkxW64/W5nxb8kWzxOsW7v9iNeUW7FdM8oYlW/dHfPJW7NcJ8kWWQpdJmoRWQVcRdJcKmoeWPO','b0hcPdiH','WPhcVINdTYu','v8kLmtpdVSkqWQhdTSkcwSoShNFcPg7cHIuiWRiuqwddKubZgCkWWRdcLvlcHLFcKSocfdD4oSoyFSkVWRNdGSoPW5JcPmkvW4pdPCo7W44wqJbLW7ZdS0dcICk8WRv2','d8oqW5TqFG','pmobW5bABq','W7KcFruVW6BdI2jgjCoiW5PUl8o3DXSAgSk+s8kSWRiLAmkVWQOjWQn/W5ZcOmoXWPNdNvldTSkiWRFcVSkStmkBsCocxSocW7NdMmkZW6TpW5RdNuDEpColWPbECmot','B8kXjSkCWRJdRh4U','WRldJG9Ucq'].concat((function(){return['fv7cOqNdKq','WQzVfCoUWOO','WQ/cVr/dOmke','FfVdVIe','WR4Wcgr7','WOxcIxr4iG','cSk8jSktWQJcTa','jSkFEW','j8oSWR8MWQJdU0Lurun5kCoavCk0yCofWQaFWPvYofBdUGPhySkkbXFdQtZdVW7cPmoTgmkEEI3dH8olWObWWQ7cVdm','fCkWW7VcTWm','q8o6W7q2','W7n3W4zmzW','cSkdCCouWQbPWOJdJq','44oQ5OYz56wG44k7WPeJW7XPWOXg5Bsc5AE85Pww','WPDZWQqJW5W1otWftSoqWO9fC2rnW67cVmkJ','WPBcUuG7W7S','WQpdLmomFSkS','W603i8oBW7G','DuNdRq','kSoeW59W','WO5Af8owWP4','gSkEn8kopq','kmo9WR8YWRRcTqC','5lMI552K6ycu6i6f5B6c5lU25zsO','WQ7cLSkVtmoG','WRVdLSoHDmoC','W6T1W4SDCq','W47OR73PHRNMLldNMOlLVkpOJ5ZLJQ/dMmoCmMqgW7K+bCkUBKpcTg3dKmkzW6LonCojWQzRiCkMW5GLW6pdONhdTmkHWOFcMgq/CHy3W7fRWOxdV8onWPPZ','W7S+WQj+DW','kSoHWPKAWPq','W5e+hG','WOKie0zO','W6FdMa1EWRpdRmoCeCkooCojW6OE','WRVcMeGBW7hdR8ogFCkDjSorW6i5qfldOSkkv8kXWPOkW7ldJq','FmkvfxLI','amoXiLXzgt5n','rSkbWO9C','A8kLW7G','f8orW6jFyW','rmoWW6O','c8o7za','AfVdUdn0','oSkzEa','q8k1WRzSAa','WQXDoq','h2tdQa','hCoYE0HPjr0nW7HTWRpdRI7cTbBcQXzKwGaiW6uZpcb8W4vgomk0WO5uW4ZdLCoRfx8fqv/cKqJcJSkf','WQCWW6bSW4q','ihlcGH/dMa','WOBcN1KzW4ZcTmkenW','z8kwpCksWR0','fX3dS110','W7bbW7PLsq','bSkzW5pcMrq','WQTyW6xdR8o/WQxcRCoXWPOefa','WQBcQCkPyCoGrCkZ','WQzQWQlcHCoq','WRrRbSoZWPW','mHBdHMW','eehcMtmNW5FcNmoz','ew7dRHylmb4','5lIY5yQs5OMF5yQ55zw9WQ0','44cx5OYA56AL44o76kY65yAy6i6d5yYerMFcMebLeCoD55U95O+o5l2355E1cmo9u8onW7hcMEEzPUs5Oos4PEESG+wlO+IpNowoTG','xSkTkKjHjGaeW7nTWO7dUddcLW','W498WQi','yeldSJHPW6VdGeRdMcVcVmoiWQiQW4FdICk6W7JcMee7mwW5xmoupCkcCeWaW4OSWPpdTZ0','ewldTtSQiry','CLdcPq','awFdIaGT','W67dItquESohW57dL8k6W5qIqHq','WReSCX81BmoRW5iA','6i+45BYp77+r','uGm/jmoU','W5DzWRpcNSoQW5b8WORcPW/dJLK9WQ8uW60RDXlcIstdNCkdWOa','sSkQdefY','5lUu556O6ygm6i+e5B+95lUB5zA/','WRldRdTkoG','WQ/dLNxdIsHbFIa','beVcIWNdNWq','k8oBWQCSWRK','WOVdQavzbW','WPO8EGyM','WQ/dOZjueq','WQjOW4PP','W6ldJZesC8opW53dTSkuW74hsHe','m8kHtmo+WOi','WOfxWRdcMG','xq8Phmoohc/dO03dHSoTW5DDWPtdQCknW6KAW6i','WQX+amoWWOPmrfBcSmorj35yW6CQqmoLiKxcUM7dKCkwWQjfp8oiWRzTk8oNW7mUW6BdQsBcQCkPWOpcGKq+Ea','WOvIdSodWRW','6i+95B2N77Yg','WPtdTLJdIbW','W6WoWRZcS8kKWOq','W65xW5T6za','WQeqkera','W7ldMHyrW63dL8k2f8oQmZBdN8o1vComwKjYW47cJu9YWOS','W75zW51XnSkD','W7euWQH0EM0','WPRdSxZdRru','WQuxWPqXWQ1/','WP0zzt4G','aSktW7lcVdZcT8kFWPCoWQbJWR7dISkh','WOFdN8oFEmozWOu','WPrfW7JdVCoHW4pdT+w+TEwKToobMos7OEs6JoI3NUwoIG','Ce7dVJbIWQNcLX3cLZBcPCoEW7rQWPhdM8kMWQ7dLLyUzG','cSkoW6xcScm','vXJdVxvIWO/dG8oqW4q2j8ogBa','WPxcNWFdKWC','WO58e8oTWO8','WRz8W41G','kmokW5u','WRrMW4TMyW','WQBdS0xdPdm','dCkNzu7dTW','oSoudNy','W4LNWQhdG8kSxZKQWOOct0RdJ0BcN8oCWQldM8kQW50NeW','nhRcOHxdUa','rmkaW5ZcGCkjWQejW68','WQnOWP1GWQC','o8okWRWAWR4','eCowW4WpnwLEW4dcJmo6W7ZcHmow','WR/cPIFdLq','W4W2WP93Fa','WRyZpe0'].concat((function(){return['pSolWRK8WQW','WO1ammodWOO','W5jNWQFdMSkXaN9JWPe','W6KoWRVcOW','fWtdSq','WP/cGWddMXddSqP0','WORdTGu','wWZdTf7cG1hcMLVdG8kMW4mB','h13cTHpdLXxcUW','W5mWfmom','l8kkrSoZWPu','deVcTG/dNa/cPuJdUmkuW4yYW4H/','W6HBWQ/dUmk4','WQG0WO5DjG','WP43furp','gCo7WPGoWOG','W7eqWRvLExtdMW','WPaOW68','Aqy5a8oT','W7KkWQy','W69SW4WlDSklWPlcPCkLWPah','WOpcMwjjpq','r8ovu0NORl3MS6FLPQBOT6tVVRBORPtMOy3MNPNNVyxOTk/PH4BORlu','WPePW7Dn','5lIP5lMj6lwY5y2h','pSoZd3bI','f8o/W5bNta','iaZcLhK8eSk2kW','p8omWOi4WQ4','WQveW5vpCa','WQD+W596y10DASo1','u8kXpG','6i+15B+U776V','W5VdH3vUkCkobSoSWQ3cOCkaWPK','WPBcH2LGlSkp','WQhdNLNdLaW','WPZcM0PKimkdjG','WRqzWPu+WQT35BEu5AA05PArFSoCuG','r8k4purS','WO7dRCon','omkvB0RdOCoj','fCoOa1bH','lHBdKG','W6iWimouW7RdJCk5','umkbWPvzBtu','5y6J5ygG5lMX5yUH','iehcVYldIq','WRixW4HHBSokWR7cRwpcLdzEWPtdS1vGpG/dNCobuG','W6GOfCoJWO0FbbFcHSonnNvuWRa0vW','vmk7ifG','lbJdMh0','eGxdSNNdHq','k8khFu3dQCoZWOVcQmk6','5RsO6kwCmEwCUUEXTow/JowEV+E5VUA2GEwlIW','WQ/cIwmz','WR8IBtylpSkY','W418WRi','mmkmbCk8bW','WRuFWOawWQ12qW','c8oVW4jHtG','lWRdKG','t8ocW6tcUZJcQ8klWOiuWOrFWRddJCkhW4BdTcdcHCopWOxcNq','ASkAhvpdPbhcNwK','W6ewomokW7K','omogh2bc','WR0SAXi','uSk5W7RcMmkdWRfzWRC','ySohW51XyWy','E1hcTa','W5aIhG','6k6m5yQu6zIz5Ost5z6vWQpdIWKEWOFOVjxLHzBMOjZKVPlMLz7LHlRLRPBdS+w6K+ISPEMaHEI8H+IfPUAEO+wmN+IpUUwpOCo1WQ8WhSosWP4','WQ7dJ3pdJcPjyde','WQHVgSoNWO0E','WQVcVwu4W5S','W7jxW5K','y8kXlxZdIdBcGMO','WRW6WPnYeG','WRVdRSoSD8kU','W5e0f8ooW6ldSW','g3/dUWH/ALXVW55qgCk0WO0CWQxdVSkwu8opW6zuC2HYkCk/whrDAGxdKa','a0VcVHm8W5pcLW','WR/cIvimW7BcVq','44g35O2e56s544cr6kY95yET6iYG5yYxW5KmW6ixFCkLaEEyLoApP+s8N+ExSZbfBSofAN3NM63KUA3KU57NRPJLIjBOJytLJ7C','WOftW4HDrq','cehcRq','eX/dOMZdJSoBWOTEnSkrW6DDDbfjW5vlW5CkW6rYW68','hmk+DMVdNq','mmknr8oZWPW','WPVdOSojvCki','lmkrCeZdQa','aSoxjgTu','WQxdIhpdLr1yErvuWQiCW642WOqUWQeNvMK','W50+WOdcTSkz','WRlcRwnQnG','EmkOa8kHWRC','xSk0DWCNrNvuW58PW4PuCq','WP54WQH9WP84ya4ywmkqWOaAlZObWRpdVSoYfSoxuKZdGq4VzCofWOBdIJiwpSkmWP/dPSoCnxVcG8k5gCo9w8oNWONdNJhdPmo1AsJcJmo7zMRcV8ocFCoBudiVWR0MWODvWRBcTSoYW4RdVq','iCo5WQyZ','ah/dVreRiG','tmkNWQ9mBG','W6icWQDICu7dIwNdIa','jCkeca','tCkToSkEWRBdP1KpjNhdLaBcM8o0','cvNcSqC','W7Wzn8ohW48','WOBdNCovwmoj','fWtdSvNdJ8kt','WQO6WOLajW','W4u3hCogW7W','o8o3WPGIWQNcQaGC','EmkRof5N','iSokW4bqE1JdQq','WPZcHMjUpW','arBdMNnCWPpdRCkAW6m','j8okW587kq3cSw0YWPJdOCoPkHa5WOWRktK','kmkrB1RcU8kj','WPKMnKPJ','WQBdLh/dIG','cWtdPwG','qmoRW7K1W6FcPSkSW7JcNK3cNSkNb0ZdQSkvCCkmW4eEbSo8heXJBSoAWPfMW4RcQ8okWQ/cUuWotr3dMeCZW4VcSmksWPBcLXq','WPVdKCoktSoo'];}()));}()));}());Iii11l=function(){return IIIlIl;};return Iii11l();};function getUUID(llIIl1='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',ill1Il=0x0){const i1lIl1=l1iIl1,i1lll1={'CEwTs':i1lIl1(0x20b,'KN#G'),'DTzMJ':function(Ii1I1I,l1i1Ii){return Ii1I1I|l1i1Ii;},'gpiEn':function(l1iI1,lliiI1){return l1iI1*lliiI1;},'FeayE':function(IiiI1,lilII){return IiiI1!==lilII;},'dWQda':i1lIl1(0x302,'XG@#'),'iBnob':'belSc'};return llIIl1[i1lIl1(0x26e,'WgyX')](/[xy]/g,function(IIIiI){const liIli1=i1lIl1,iii1i1={'kRmlO':i1lll1['CEwTs']};var IllIll=i1lll1[liIli1(0x31c,'DFKA')](i1lll1[liIli1(0x2ad,'y&Is')](Math['random'](),0x10),0x0),i1lllI=IIIiI=='x'?IllIll:i1lll1['DTzMJ'](IllIll&0x3,0x8);if(ill1Il){if(i1lll1['FeayE'](i1lll1['dWQda'],i1lll1[liIli1(0x27f,'RNXH')]))uuid=i1lllI[liIli1(0x269,'im4$')](0x24)[liIli1(0x25d,'FK16')]();else try{return I1iIi1[liIli1(0x21d,'96tb')](lliil1);}catch(iI1IlI){return ll1l1[liIli1(0x22a,'WgyX')](iI1IlI),IllIIi[liIli1(0x201,'K892')](IllIIl['name'],'',iii1i1['kRmlO']),[];}}else uuid=i1lllI['toString'](0x24);return uuid;});}var version_ = 'jsjiami.com.v7';
// prettier-ignore
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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化