mirror of https://github.com/KingRan/KR.git
21 lines
37 KiB
JavaScript
21 lines
37 KiB
JavaScript
/*
|
||
活动名称:店铺关注有礼
|
||
环境变量:jd_drawShopGift_argv // 活动参数,格式:”<shopId(店铺id)>_<venderId(店主id)>“
|
||
jd_drawShopGift_Notify // 是否推送通知(true/false),默认不推送
|
||
|
||
注:运行频繁会403限制IP
|
||
|
||
cron:1 1 1 1 *
|
||
============Quantumultx===============
|
||
[task_local]
|
||
#店铺关注有礼
|
||
1 1 1 1 * jd_daily.js, tag=店铺关注有礼, enabled=true
|
||
|
||
|
||
*/
|
||
|
||
const $ = new Env('店铺关注有礼')
|
||
var version_='jsjiami.com.v7';const I1I1lI=iii1II;(function(llIIi1,iI1IlI,l1i1Il,ill1I1,l1i1II,ili111,Ii1I11){return llIIi1=llIIi1>>0x8,ili111='hs',Ii1I11='hs',function(IllIli,ii1Ii,ii1Il,l1iII,iI1Ill){const Iii1=iii1II;l1iII='tfi',ili111=l1iII+ili111,iI1Ill='up',Ii1I11+=iI1Ill,ili111=ii1Il(ili111),Ii1I11=ii1Il(Ii1I11),ii1Il=0x0;const lilI1=IllIli();while(!![]&&--ill1I1+ii1Ii){try{l1iII=parseInt(Iii1(0x1c6,'TR0O'))/0x1+-parseInt(Iii1(0x207,'^O6!'))/0x2*(parseInt(Iii1(0x2c6,'HHJh'))/0x3)+parseInt(Iii1(0x1fb,'i4[B'))/0x4+-parseInt(Iii1(0x221,'nK!q'))/0x5+parseInt(Iii1(0x26a,'nK!q'))/0x6+parseInt(Iii1(0x235,'DzcJ'))/0x7*(parseInt(Iii1(0x280,'i4[B'))/0x8)+-parseInt(Iii1(0x1a7,'F#E!'))/0x9*(parseInt(Iii1(0x28a,'tvE4'))/0xa);}catch(IIIi1){l1iII=ii1Il;}finally{iI1Ill=lilI1[ili111]();if(llIIi1<=ill1I1)ii1Il?l1i1II?l1iII=iI1Ill:l1i1II=iI1Ill:ii1Il=iI1Ill;else{if(ii1Il==l1i1II['replace'](/[qGSePXpLdROMFElyxYW=]/g,'')){if(l1iII===ii1Ii){lilI1['un'+ili111](iI1Ill);break;}lilI1[Ii1I11](iI1Ill);}}}}}(l1i1Il,iI1IlI,function(i1llli,i1llll,iI1Ili,llIIiI,iI1111,IIIl1,ii1ii){return i1llll='\x73\x70\x6c\x69\x74',i1llli=arguments[0x0],i1llli=i1llli[i1llll](''),iI1Ili='\x72\x65\x76\x65\x72\x73\x65',i1llli=i1llli[iI1Ili]('\x76'),llIIiI='\x6a\x6f\x69\x6e',(0x13b04c,i1llli[llIIiI](''));});}(0xca00,0x9abd4,Iii11l,0xcc),Iii11l)&&(version_=Iii11l);const i1ili=require(I1I1lI(0x237,'i4[B')),Iiill1=require(I1I1lI(0x224,'S[4@')),I1iII1=require(I1I1lI(0x2b9,'ar$x')),lilII1=require(I1I1lI(0x24c,'RL9M')),iill1=process[I1I1lI(0x24b,'Pjc0')][I1I1lI(0x247,'7F)[')]||'',iii1l1=process['env'][I1I1lI(0x2d7,'m@%1')]===I1I1lI(0x212,'^O6!');let IIliIl='';const II11ll=Object['keys'](i1ili)[I1I1lI(0x284,'c9Lt')](II11i1=>i1ili[II11i1])[I1I1lI(0x1da,'c9Lt')](iliIil=>iliIil);!II11ll[0x0]&&($[I1I1lI(0x213,'Pjc0')]($[I1I1lI(0x276,'c9Lt')],I1I1lI(0x209,'uiVh')),process[I1I1lI(0x2cc,'Pjc0')](0x1));!(async()=>{const ii1il=I1I1lI,iliIii={'KQeEZ':function(lill1i,il1li){return lill1i(il1li);},'DcTWl':'⚠\x20请先定义必要的环境变量后再运行脚本','NGvgm':function(iIIill,iilii){return iIIill!==iilii;},'zmAsH':ii1il(0x1e2,'UZa%'),'avZtX':ii1il(0x197,'@8ce'),'bjxds':function(Ill11i,iilil){return Ill11i<iilil;},'KYqMp':ii1il(0x208,'SK8V'),'oFBwU':ii1il(0x282,'K8^j'),'zyHKl':function(Ill11l){return Ill11l();},'XuyNy':ii1il(0x2b5,'luKK'),'fuPfb':function(il1ll,i1ilIi){return il1ll+i1ilIi;}};if(!iill1){console[ii1il(0x20b,']j&Y')](iliIii[ii1il(0x274,'F#E!')]);return;}try{if(iliIii[ii1il(0x22e,'(@V]')](iliIii[ii1il(0x23c,'RL9M')],ii1il(0x198,'D6pz'))){const l1l1i1=IlI1I[ii1il(0x1cb,'e%gr')]('_');II11Ii['shopId']=l1l1i1[0x0],II11Il[ii1il(0x216,'!hQU')]=l1l1i1[0x1];}else{const i1iiI=iill1[ii1il(0x2aa,'TR0O')]('_');$[ii1il(0x1be,'Qs^#')]=i1iiI[0x0],$['venderId']=i1iiI[0x1];}}catch{console['log'](ii1il(0x2d1,'c9Lt'));return;}finally{if(!$['shopId']||!$[ii1il(0x2b4,'gx*0')]){console[ii1il(0x263,'Z0xk')](iliIii['avZtX']);return;}}Iiill1[ii1il(0x21d,'NXHv')]({'title':$[ii1il(0x206,'Pjc0')]}),console[ii1il(0x1b6,'NXHv')](ii1il(0x1c3,'L(Fq')+$['shopId']+'&venderId='+$[ii1il(0x233,'UZa%')]);for(let i1ilIl=0x0;iliIii['bjxds'](i1ilIl,II11ll['length']);i1ilIl++){if(iliIii[ii1il(0x1ac,'e%gr')](iliIii['KYqMp'],iliIii[ii1il(0x27c,'gx*0')]))liIil[ii1il(0x1a6,'PuTn')](IllI1I),liIii[ii1il(0x1c4,'Pjc0')](II1ll1,IlI1Ii);else{$[ii1il(0x201,'IGSK')]=i1ilIl+0x1,IIliIl=II11ll[i1ilIl],$[ii1il(0x18c,'c[Yq')]=decodeURIComponent(I1iII1['getCookieValue'](IIliIl,iliIii[ii1il(0x21a,'i[^B')])),$['UA']=I1iII1['genUA']($['UserName']),$[ii1il(0x2d4,'7iyQ')]=Iiill1[ii1il(0x1f3,'nK!q')]($[ii1il(0x1c0,'Wf0l')],$[ii1il(0x1bb,'DzcJ')]),$['nickName']='',console[ii1il(0x199,'uiVh')]('\x0a******开始【京东账号'+$[ii1il(0x23f,'nK!q')]+'】'+($[ii1il(0x25d,'NXHv')]||$['UserName'])+ii1il(0x248,'c9Lt')),await iliIii[ii1il(0x2db,'gx*0')](liiI1I);if($[ii1il(0x1b9,'i[^B')])break;await $['wait'](0x3e8);}}iii1l1&&Iiill1['getMessage']()&&(iliIii[ii1il(0x26e,'XeoI')]===iliIii['XuyNy']?(Iiill1[ii1il(0x1a9,'t5P0')](iliIii[ii1il(0x22c,'L(Fq')](Iiill1[ii1il(0x29a,'hb!z')],ii1il(0x1de,'Pjc0')+$['shopId']+ii1il(0x2a0,'z$%d')+$[ii1il(0x297,'m@%1')])),await Iiill1['push']()):illIl1[ii1il(0x1ec,'i[^B')](iliIii[ii1il(0x1d9,'luKK')](l1llII,IilIll)));})()[I1I1lI(0x220,'Qs^#')](iii1li=>$[I1I1lI(0x27d,'K8^j')](iii1li))['finally'](()=>$['done']());function iii1II(_0x3bdddf,_0xe63c4e){const _0x28a590=Iii11l();return iii1II=function(_0xcda786,_0x234d9f){_0xcda786=_0xcda786-0x18c;let _0xfcf533=_0x28a590[_0xcda786];if(iii1II['ggAfnk']===undefined){var _0x13e8d8=function(_0x8b7c41){const _0x20f1ff='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ac569='',_0x5c0ede='';for(let _0x2ce632=0x0,_0x10fd69,_0x26e80d,_0x47d6c6=0x0;_0x26e80d=_0x8b7c41['charAt'](_0x47d6c6++);~_0x26e80d&&(_0x10fd69=_0x2ce632%0x4?_0x10fd69*0x40+_0x26e80d:_0x26e80d,_0x2ce632++%0x4)?_0x1ac569+=String['fromCharCode'](0xff&_0x10fd69>>(-0x2*_0x2ce632&0x6)):0x0){_0x26e80d=_0x20f1ff['indexOf'](_0x26e80d);}for(let _0xc46792=0x0,_0x12257c=_0x1ac569['length'];_0xc46792<_0x12257c;_0xc46792++){_0x5c0ede+='%'+('00'+_0x1ac569['charCodeAt'](_0xc46792)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5c0ede);};const _0x41a71f=function(_0x258705,_0x5e2fd4){let _0x27be9d=[],_0x26f70e=0x0,_0x235b04,_0x11e223='';_0x258705=_0x13e8d8(_0x258705);let _0x6e5c5a;for(_0x6e5c5a=0x0;_0x6e5c5a<0x100;_0x6e5c5a++){_0x27be9d[_0x6e5c5a]=_0x6e5c5a;}for(_0x6e5c5a=0x0;_0x6e5c5a<0x100;_0x6e5c5a++){_0x26f70e=(_0x26f70e+_0x27be9d[_0x6e5c5a]+_0x5e2fd4['charCodeAt'](_0x6e5c5a%_0x5e2fd4['length']))%0x100,_0x235b04=_0x27be9d[_0x6e5c5a],_0x27be9d[_0x6e5c5a]=_0x27be9d[_0x26f70e],_0x27be9d[_0x26f70e]=_0x235b04;}_0x6e5c5a=0x0,_0x26f70e=0x0;for(let _0x43dee4=0x0;_0x43dee4<_0x258705['length'];_0x43dee4++){_0x6e5c5a=(_0x6e5c5a+0x1)%0x100,_0x26f70e=(_0x26f70e+_0x27be9d[_0x6e5c5a])%0x100,_0x235b04=_0x27be9d[_0x6e5c5a],_0x27be9d[_0x6e5c5a]=_0x27be9d[_0x26f70e],_0x27be9d[_0x26f70e]=_0x235b04,_0x11e223+=String['fromCharCode'](_0x258705['charCodeAt'](_0x43dee4)^_0x27be9d[(_0x27be9d[_0x6e5c5a]+_0x27be9d[_0x26f70e])%0x100]);}return _0x11e223;};iii1II['SHWnJB']=_0x41a71f,_0x3bdddf=arguments,iii1II['ggAfnk']=!![];}const _0xfeca48=_0x28a590[0x0],_0x1a5b15=_0xcda786+_0xfeca48,_0x56023a=_0x3bdddf[_0x1a5b15];return!_0x56023a?(iii1II['mzxAlJ']===undefined&&(iii1II['mzxAlJ']=!![]),_0xfcf533=iii1II['SHWnJB'](_0xfcf533,_0x234d9f),_0x3bdddf[_0x1a5b15]=_0xfcf533):_0xfcf533=_0x56023a,_0xfcf533;},iii1II(_0x3bdddf,_0xe63c4e);}async function liiI1I(){const l1iIlI=I1I1lI,Iil1i1={'upjOK':function(IIii11,iliIl1){return IIii11(iliIl1);},'KCicV':function(Ii1il1,iii1ll){return Ii1il1(iii1ll);},'SQIjp':l1iIlI(0x281,'hb!z'),'YYGCS':function(IIliI1,il1lI){return IIliI1===il1lI;},'LeIFA':function(IliIIl){return IliIIl();},'tLHHr':l1iIlI(0x258,'Pjc0'),'hVoKK':'CrPyj','OSWPo':function(I1il1l){return I1il1l();},'PzKzz':l1iIlI(0x2cd,'i[^B'),'MjTxJ':l1iIlI(0x26d,'ar$x'),'HqEmZ':l1iIlI(0x1a1,'L(Fq'),'EWBRX':l1iIlI(0x29d,'RT@N'),'EBFgU':l1iIlI(0x1ab,'lZOK'),'nrHuu':l1iIlI(0x2a2,'7iyQ'),'zQFXb':function(lI1l1l,IIliII){return lI1l1l===IIliII;},'xYuoW':function(iiliI,Ill11I){return iiliI===Ill11I;},'NECcQ':function(I1il1i,IliIIi){return I1il1i!==IliIIi;},'QgceS':l1iIlI(0x1ad,'TR0O'),'gyUgx':function(lI1l1i,i1iil){return lI1l1i<=i1iil;},'lzMlW':function(llI11l,I1llIl){return llI11l-I1llIl;},'mnxpo':function(i1iii,I1llIi){return i1iii!==I1llIi;},'YIctD':l1iIlI(0x1e6,'!hQU'),'PFBGR':l1iIlI(0x1d6,'i4[B'),'onVFG':l1iIlI(0x232,'7iyQ'),'LVDPG':function(IIii1I,llI11i){return IIii1I!==llI11i;},'eUfXW':l1iIlI(0x254,'SK8V'),'hRZxc':'未知活动状态,请查看日志'};$[l1iIlI(0x1bd,'D6pz')]=![],await Iil1i1[l1iIlI(0x192,']j&Y')](Ii1ilI);if($[l1iIlI(0x1b0,'(@V]')])return;try{if(Iil1i1[l1iIlI(0x1f1,'luKK')]!==Iil1i1['hVoKK']){const i1iIi1=await Iil1i1['OSWPo'](ililII);if(!i1iIi1){console[l1iIlI(0x214,'xAi(')](Iil1i1[l1iIlI(0x2b6,'IGSK')]),$[l1iIlI(0x2a6,'RL9M')]['fix'](Iil1i1[l1iIlI(0x19a,']j&Y')]);return;}const l1l1il=i1iIi1?.[l1iIlI(0x25a,'m@%1')]?.['activityId'];if(l1l1il)$['activityId']=l1l1il;else{console[l1iIlI(0x1e7,'7iyQ')](Iil1i1[l1iIlI(0x1af,'CU**')]),$[l1iIlI(0x205,'ar$x')][l1iIlI(0x291,'SK8V')](Iil1i1['HqEmZ']);return;}if(i1iIi1['result'][l1iIlI(0x298,'IGSK')]){if(l1iIlI(0x1e4,']j&Y')!==Iil1i1[l1iIlI(0x2ac,']j&Y')]){console['log'](Iil1i1[l1iIlI(0x2de,'PuTn')]);const l1l1ii=await lI1II1();Iil1i1[l1iIlI(0x196,'ar$x')](l1l1ii[l1iIlI(0x1d7,'K8^j')],Iil1i1[l1iIlI(0x267,'i[^B')])?console[l1iIlI(0x22d,'RL9M')](l1l1ii[l1iIlI(0x200,'XeoI')]):Iil1i1[l1iIlI(0x19b,'(@V]')](l1iIlI(0x242,'TR0O'),l1iIlI(0x21f,'z$%d'))?console['log'](JSON[l1iIlI(0x2a7,'L(Fq')](l1l1ii)):II1li1={'follow':0x0,'shopId':l1lIlI[l1iIlI(0x292,'m@%1')],'activityId':IiiIl1,'sourceRpc':'shop_app_home_window','venderId':lIIil1[l1iIlI(0x1ee,'kec(')]};}else ill11i[l1iIlI(0x1b7,'DzcJ')]('京东服务器返回空数据'),lllill[l1iIlI(0x2d8,'e%gr')]=!![];}const I11i1I=i1ilII(i1iIi1,l1l1il),iliIi1=await iIIii1(I11i1I);if(Iil1i1['xYuoW'](iliIi1[l1iIlI(0x2bd,'e%gr')][l1iIlI(0x29f,'HHJh')],Iil1i1[l1iIlI(0x2cb,'ar$x')])){if(Iil1i1[l1iIlI(0x2c0,'PuTn')](l1iIlI(0x203,'z$%d'),l1iIlI(0x26f,'tvE4')))IiiIli?lIIiii['log'](Iil1i1[l1iIlI(0x1dc,'Z0xk')](iI1lli,ll1iI)):(iI1lll=l1lIll[l1iIlI(0x294,'F32V')](I1l1II),IIli1I&&I1i11I[l1iIlI(0x230,'L(Fq')]&&llIliI[l1iIlI(0x1f9,'F32V')](I1l1I1['data'])==='{}'&&ilI1ll['log'](Iillii['stringify'](IlI1iI)));else{const il1l1=iliIi1[l1iIlI(0x20a,'DzcJ')][l1iIlI(0x250,'hb!z')];switch(iliIi1[l1iIlI(0x1cf,'gx*0')][l1iIlI(0x1a4,'tvE4')]){case Iil1i1[l1iIlI(0x2d9,'t5P0')]:const Ii1iil=JSON[l1iIlI(0x25e,'c9Lt')](JSON[l1iIlI(0x2a3,'@8ce')](iliIi1['result'][l1iIlI(0x1ed,'K8^j')]));for(let Ilil1i=0x0;Iil1i1['gyUgx'](Ilil1i,Iil1i1[l1iIlI(0x23b,'F#E!')](Ii1iil['length'],0x1));Ilil1i++){const iili1=Ii1iil[Ilil1i][l1iIlI(0x1d1,'Pjc0')]+Ii1iil[Ilil1i]['rearWord'];console['log']('🎉\x20'+iili1),$[l1iIlI(0x289,'e%gr')][l1iIlI(0x27f,'^O6!')](iili1);}break;case l1iIlI(0x1e0,'SK8V'):console[l1iIlI(0x1ea,'HHJh')](il1l1);for(let II11ii of['抢完']){if(Iil1i1['mnxpo'](l1iIlI(0x1a2,'L(Fq'),Iil1i1['YIctD'])){if(il1l1['includes'](II11ii)){if(Iil1i1[l1iIlI(0x2c0,'PuTn')](Iil1i1['PFBGR'],Iil1i1[l1iIlI(0x251,'CU**')]))Iil1i1[l1iIlI(0x29e,'Wf0l')](ll1,iI1llI||{});else{$[l1iIlI(0x1b8,'CU**')]=!![],$[l1iIlI(0x28f,'UZa%')][l1iIlI(0x23d,'Qs^#')](il1l1);break;}}}else lilIl1[l1iIlI(0x2a5,'&D%M')](i1l1ii[l1iIlI(0x275,'hb!z')],Iil1i1['SQIjp']),i1l1['exit'](0x1);}break;default:console[l1iIlI(0x2b1,'F#E!')](iliIi1),$['message'][l1iIlI(0x253,'Pjc0')](Iil1i1[l1iIlI(0x2a4,'SK8V')]);break;}}}else Iil1i1['YYGCS'](iliIi1[l1iIlI(0x19d,'7F)[')]['followCode'],l1iIlI(0x28e,'tvE4'))?(console['log'](iliIi1['result']['followDesc']),$[l1iIlI(0x243,'Wf0l')]['fix'](iliIi1['result'][l1iIlI(0x296,'L(Fq')])):Iil1i1[l1iIlI(0x2d5,'XeoI')]('GZPXz',Iil1i1['eUfXW'])?(IiilI=ii1I11['parse'](liIi1),lI11II&&l1llI1[l1iIlI(0x2b0,'e%gr')]&&Iil1i1[l1iIlI(0x268,'Pjc0')](llIIll['stringify'](IillIi[l1iIlI(0x261,'K8^j')]),'{}')&&lil[l1iIlI(0x1e5,'(@V]')](IllI1l[l1iIlI(0x2bb,'lZOK')](i11I1i))):(console['log'](JSON[l1iIlI(0x2b7,'uiVh')](iliIi1)),$[l1iIlI(0x1d0,'xAi(')]['fix'](Iil1i1[l1iIlI(0x2c8,'i4[B')]));}else i1l1I['log'](IiilIi[l1iIlI(0x285,'hb!z')]);}catch(I1il1I){console[l1iIlI(0x2c4,'Qs^#')](I1il1I[l1iIlI(0x1b2,'DzcJ')]);}}async function ililII(){const iI111I=I1I1lI,II111={'wLoHC':function(I11i11,I1llII){return I11i11+I1llII;},'RYlCA':function(Iil1il,I11i1i){return Iil1il*I11i1i;},'FqdMO':function(l1l1iI,I1llI1){return l1l1iI-I1llI1;},'WeUsx':function(I11i1l,il1il){return I11i1l+il1il;},'OJFsH':iI111I(0x222,'HHJh'),'leJNf':function(Il1i1i,iIIili){return Il1i1i*iIIili;},'IAeAd':function(Ii1iiI,Ilil1I){return Ii1iiI-Ilil1I;},'mrGaG':function(iliIiI,II11iI,Il1i1l){return iliIiI(II11iI,Il1i1l);},'MciyL':iI111I(0x19f,'^O6!'),'nrgAu':iI111I(0x240,'ar$x'),'oXpYf':'1170.000000','eLQBs':iI111I(0x193,'c9Lt')},lI1l1I=II111[iI111I(0x2a9,'z$%d')](II111['wLoHC'](iI111I(0x19e,'K8^j'),Math[iI111I(0x2da,'PuTn')](II111[iI111I(0x1d8,'F32V')](Math['random'](),II111['FqdMO'](0x2710,0x1869f)))),0x1869f),lill11=II111[iI111I(0x28d,'TR0O')](II111[iI111I(0x265,'xAi(')](II111['OJFsH'],Math[iI111I(0x211,'gx*0')](II111[iI111I(0x290,'Pjc0')](Math['random'](),II111[iI111I(0x1a5,'XeoI')](0x2710,0x1869f)))),0x1869f),liI1i1=await II111[iI111I(0x23a,'Wf0l')](IllIi1,II111['MciyL'],{'shopId':$[iI111I(0x219,'luKK')],'source':II111[iI111I(0x1f0,'S[4@')],'latWs':lI1l1I,'lngWs':lill11,'displayWidth':II111[iI111I(0x21c,'DzcJ')],'sourceRpc':II111['eLQBs'],'lng':lill11,'lat':lI1l1I,'venderId':$[iI111I(0x1ce,'nK!q')]});return liI1i1;}async function lI1II1(){const IIIlI1=I1I1lI,Iil1ii={'Ykkjv':function(Ii1ii1,Ilil11,i1ii1){return Ii1ii1(Ilil11,i1ii1);},'LeoNt':IIIlI1(0x1bf,'&D%M'),'XCyrx':IIIlI1(0x229,'t5P0'),'RnkUs':IIIlI1(0x28c,'c9Lt')},lill1I=await Iil1ii[IIIlI1(0x1f8,'F#E!')](IllIi1,Iil1ii[IIIlI1(0x1e1,'i4[B')],{'follow':IIIlI1(0x226,'&D%M'),'shopId':$[IIIlI1(0x273,'c9Lt')],'award':Iil1ii['XCyrx'],'sourceRpc':Iil1ii['RnkUs']});return lill1I;}function i1ilII(il1ii,llI111){const i1lIiI=I1I1lI,i1iIiI={'GuyVX':i1lIiI(0x299,'luKK'),'LESlK':i1lIiI(0x1d5,'gx*0'),'YwxMf':function(I1il11,lI1l11){return I1il11===lI1l11;},'YPvlf':i1lIiI(0x256,'uiVh')};let IlllI1;if(il1ii['result'][i1lIiI(0x246,'IGSK')])IlllI1={'giftType':i1iIiI[i1lIiI(0x1e3,'^O6!')],'follow':0x0,'shopId':$[i1lIiI(0x20c,'S[4@')],'activityId':llI111,'sourceRpc':i1iIiI[i1lIiI(0x288,'RT@N')],'venderId':$[i1lIiI(0x216,'!hQU')]};else il1ii[i1lIiI(0x1c8,'CU**')]['giftsToast']&&(i1iIiI['YwxMf'](i1lIiI(0x1b3,'hb!z'),i1iIiI[i1lIiI(0x24d,'7iyQ')])?i1IIi['log'](IIII1I[i1lIiI(0x29c,'IGSK')]):IlllI1={'follow':0x0,'shopId':$[i1lIiI(0x1f5,'!lDe')],'activityId':llI111,'sourceRpc':i1iIiI[i1lIiI(0x1dd,'nK!q')],'venderId':$[i1lIiI(0x1aa,'lZOK')]});return IlllI1;}async function iIIii1(){const IiiIl=I1I1lI,II11i={'mxWxM':function(iI1Iii,liI1ii){return iI1Iii(liI1ii);},'mJGal':function(lIIiIl,iI1Iil){return lIIiIl===iI1Iil;},'czxSO':IiiIl(0x245,'i[^B'),'mvTuw':IiiIl(0x1f6,'IGSK'),'RBXOo':function(il1iI,i1iIii){return il1iI===i1iIii;},'pIfzX':'rtqAG','WapBt':'tBelh','XMnTD':IiiIl(0x190,'L(Fq'),'EABLR':function(i1iIil,liI1il){return i1iIil(liI1il);},'dCZaj':'api.m.jd.com','WHDGm':IiiIl(0x228,'Wf0l'),'hjAgZ':IiiIl(0x28b,'Z0xk')};return new Promise(llIlIi=>{const ii1l1l=IiiIl;$[ii1l1l(0x1ca,'uiVh')]({'url':'https://api.m.jd.com/client.action?g_ty=ls&g_tk=518274330','body':ii1l1l(0x279,'(@V]')+$[ii1l1l(0x1c2,']j&Y')]+'\x22,\x22activityId\x22:\x22'+$['activityId']+ii1l1l(0x1a0,'^O6!')+$[ii1l1l(0x249,'DzcJ')]+ii1l1l(0x22b,'uiVh'),'headers':{'Host':II11i['dCZaj'],'content-type':II11i[ii1l1l(0x271,'&D%M')],'accept':II11i[ii1l1l(0x1ff,'Qs^#')],'user-agent':$['UA'],'accept-language':ii1l1l(0x1eb,'m@%1'),'Cookie':IIliIl}},(llIlIl,II11I,il1i1)=>{const IiiIi=ii1l1l,lIIiIi={'Rlpsi':function(liI1iI,iI1Il1){const l1lli1=iii1II;return II11i[l1lli1(0x2bf,'!lDe')](liI1iI,iI1Il1);}};try{if(llIlIl)console[IiiIi(0x27e,'cv7K')](String(llIlIl));else{if(II11i[IiiIi(0x2d0,'PuTn')](II11i[IiiIi(0x2c2,'!hQU')],II11i[IiiIi(0x2b3,'Z0xk')])){if(!II1Ii[IiiIi(0x2d3,'L(Fq')]||!i1ii['venderId']){i1il[IiiIi(0x27e,'cv7K')](IiiIi(0x1fd,'RL9M'));return;}}else il1i1=JSON['parse'](il1i1),il1i1&&il1i1[IiiIi(0x1db,'Z0xk')]&&II11i[IiiIi(0x283,'7F)[')](JSON[IiiIi(0x26b,'tvE4')](il1i1[IiiIi(0x194,'&D%M')]),'{}')&&(II11i['pIfzX']!==II11i['WapBt']?console[IiiIi(0x18f,'S[4@')](JSON[IiiIi(0x264,'CU**')](il1i1)):(i1i1I1[IiiIi(0x18e,'tvE4')](IlII1(IiI11)),lli[IiiIi(0x27e,'cv7K')](liIlI['name']+IiiIi(0x239,'i[^B'))));}}catch(llIlII){console[IiiIi(0x29b,'ar$x')](il1i1),$[IiiIi(0x25c,'S[4@')](llIlII,II11I);}finally{II11i[IiiIi(0x2af,'hb!z')]===II11i['XMnTD']?II11i[IiiIi(0x21e,'K8^j')](llIlIi,il1i1||{}):II1lil[IiiIi(0x244,'IGSK')](lIIiIi['Rlpsi'](IIli1l,II1lii));}});});}function Iii11l(){const i1lIii=(function(){return['version_','GMejdLsWjOYSiqaYpmlRixp.PFxcSoGGEmXOy.v7==','WPKXW7bUWPhcGSopW4ldICkIWONcQcu','W64ncSoWuZVdJuJcSCoMWP1tW7JdL31cWQNdVCoa','WP7dTMm','vdrXW6L2AX08WQK','W5qJWPJcGSk3','W5hcLXpdPerJ','WOKqqtir','dtJcNuys','W6znWOy6W7y','fCoaFSoVW5i','dmonrmo+W60','sY9K','ixPV','WQusW6JdIwFdHq','b1aUW7BdMNXwWOJdKW','pg/cOG','CG3cJ8k+wq','W7GEWOpcJSkG','WPxcRNnlzq','WQ5qjmoWsa','vZXFWR4','5lIS5lId5RkE5P676l+35zMb5PAI5O2EjG','WR7dRSoRtsK','WPddUxdcHsW','W4vcWOi4W4S','4PI7pUISHEwGI+wgKUAGSEw9LUAUKUEIQoEBM+EmHowGIownHoMfVq','lZlcRLZcIW','WQPLW7uQiMO','W5nqW5lcMrpdGCk7','W4/dGSo0nxO','WQ8Ib8kOaW','rCklW44XW5TOpM3cPL7cSSoniMJdImotW4bzW5dcQ8kCWOC','W5dcMqNdOxPIkG','WQGeWQxcPfm','W45KWQO2W5u','us4SW7zy','WO7dOMqpvG','W4HqW4/cJHFdLmkxW4q','W61kWOm+W7i','WR8lqI0uWQZcPfm','hmoCvCoDW7dcQmkA','WOibmq','WQBdKN8','WQfpW4OUjq','W5BcICk4WQDmW4fi','WRxdTL4mDq','W6H2WP0qvgWPWOhcMtFdHmoMW7NdRCozWQ1cDa','W6q1W6XP','WRyWmW','WPL7k8ogBG','4PUkd+ISMEwISowhOUAIKow9TUATKoEIJoEBPoEoM+wHSowoNoMgJa','WQKwpSonW4u','BSo6DG','WQNdQvWWtG','WQD7n8o5W4G','vCkyW5mxW5K','W609W6ZdG27cPq','W5/dQtq','CsxdVmkgW4/dJWbhtmoaW43cLg0YW6P2umoSb0j6x8oF','ngZcQSkMW4JdLqjSrSo/W5JcTIX8WQfZuCo3dLr1sCoaDNK4dmk6WPtcMSkKW5/cNmoPWOKbzYSoWOTBWOG/qmoGW7/dSmkeWP4','5REI5yQL5lQx5AYc5z2d5OIy5BwH6Aoa6l+v','WPf8W4Kyhq','EcpdQSk0W4m','WOKhmmkTjK3cN8kL','W4RdLCovjfK','W4rNWQi','sINcGYJdOxFcKXNdHLNcN8kM','WP9Cc8omW6W','WOWtWQlcOhrSWP7cMSooW7yByM0','usvTW6r9FJ0+','5BEv57Qp5ywW5RgO6k+95BQB6zko772w5OQ36kgi5y6D5ysy5PcW5l6F','W63cTrBdTKu','o8oigq','WPxdGvJcPXOUl0BcVrlcRx8','EhP+cr8','WQ5bgmorW7JdTmkn','yWi8W6Dy','x8koWPTtlCoLdq','WOKRWPWhW54','jddcT3tcNG','wx9n','W7uXW4y','xSkeWO8','r2vendT1','W7jQuCo3tCo7','WOVcO3nil8ocWR9qWQ43WQnqEuVdUrBdQq','z8kyWO1saSoJbqC','4P2/qoI0VEwnU+AvV+AvHG','WQK0pCozW5JcGWG','pN1NstWS','W6y7W7rKW4SkWRxdUSo/W6q','W5ZcOtRcOGe','W6K9W7hdKMFcO8ocrW','WORdU3G6Fv4','5BMo6zo35z6Q5zYA772XzSoNmMi7WOekaGbgW4JdIWVcKuTVW7azvrrIsmk4aZPiBCkJW4z5','xITrWO8Cua','BCkZtX8P','p8olewXCuCome8oNW5JdNIq','6lwb5y2N5PAs5PAa','r3vzbdLL','WPqgE8krbeZcImoTrt0KbSkHW6fGkmkiWRVdSSoBWOldTmk9WPKqySotqwddGvZdPIvxW40YW6NcHwGXW5NdRLhdVKX/rJlcObT1W7tdHmkmz8oIW5nGoCkijSkQWOtcQMVcMN3dICodkSoP','CSo6yLm','W5dcGGZdUfW','ihH3WQuJ','iaVcS1FcPa','W5pcH8k/WRn7W4zVpq','wtixW4HyWPe','WQhdOSopAahcPIq','qcfsWP0bueq','mfxdOL/cVq','WPqXWRCFW4nbWPFcVhe','wZywW45r','wd8lW41RWOqFW7D5g8kHemk2h8k+nrJdUmkLW60','vaVcKSkdua','WOpcQw57BmkgWR4','W4mSW4JdP8oR','W5/cSGVcSaS','W713WP4uBN8','a8oXbSkP','eSoGgmkhnq','W6NcP8kcWRTv','ooobLow6OEMqSowDNUwDOUoaSCkoWQ0jeSk0mmk2WOdcR2dcQ8kIyCkdW5dcKCoKnmkiACoujmkumLSHntHzyG','ah3cQCk/ma','WPOXBW','vJRcUSkitG','j2jeWRic','utxdSCkdW78','WQ/dKL4Tra','WRfffG','bCogvCopW6K','W5jAW4y','hr/cUMlcKG','qbrPW6xdSwLqWQJdNG','xW98','vCkhWRWDW4HNoHpcHghdUCo7DJ/cKmkSW6TyWONcImkQW4xdG8oSWP3cGIxdNmoQdGL0W41TWOv6kCo5rWxcHSk3n3eFqHunWQddSCote3GXW5/cUcdcJXS4WPSlW6/dVchcRG9ue8ovW7C','W6XWwa','WO3cTwHDySkgWQjNWQ04WQDnAGlcVtpdSGVdO8kz','WQZcRrelW5P2W47cQG','W6HRs8ocumkLW70FzSkXrflcU8otcCk0ygRcRSkYdMlcVCoPyKpdVc9vAHVdMmo4W6P8FfHPWQtdKHfzqSkCrSkm','WQtdJ3/cLXu','W6dcRYBcVsm','W6fVvSkCtSkXWRHukCkIqHe','W4BcKmk0WRzQW5e','WRNdS0JcGtC','eYJcPu4wWOe','pGRcR0NcTG','WPCRiCo5W70','ixFdMhpcPW','W6ibW5BdJCoelmkMW55V','WPqTWQOgW7jhWO7cQLCcWOVcTSobzHpcMmk6W4TIWRS','k2BdOmoXdmowy8orWQyXwCkBwW','WRa6WRxcRee','4PIauUISHowIOowfO+AIJEw9N+AUHoEJLEEAU+EpGowHRUwpTUMfHq','W5BcMIFcPGC','jx9jxI8','W67dP8ox','dHxcM3/cNW','WPLSfmopEa','C8korCk3za','W7mMW6/dOSon','WQ1hh8o2xd/dNa','xcvBWQ8','j3lcVmoHWPhdPdP7Bmo6W6y','W4rZbX/dQq','44cs5O2f56sR44c26kYx5yEZ6i265yYgW4NcShaBhmkW','qmkoWPTvimo2','WPxdVha','WRNdLxFcPIKY','agdcN8k0gG','WPOXAcJdMmoHWRO9WRq','WQK3o8ozW4pcKG','uHbRW6ddTM1yWRRdJSoTW4zqtmo8rSk3W4LruCk/smkCWQpdOmkkW7XcDmoSWOhdNmk7WP8','ttSlW5jg','yJldVCkW','xZDr','WQddQmoB','WRBcPXG','gCosuSojW4FcR8k9WRi','WPNdTLhcHGy','W4C+WQpcVCki','W6FcIWhcHrJcGa','W69zFCofDG','W4SxWPBcU8oxW5a8WO7dJvO','xCkZWPH5kG','W7OXW488W43dLa','WQNcMfH0uq','yCkGDSkksG','lNr8wH0','WPFdKSoHW6qVWOCtdI3dGmkUe2e','aLeVWQi','aN1PCIe','W6tcKN7cOW41W6mPxsnUW6rwWPjByrtdN2pdHCkksbO','WRSVjmofW6pcLqCdW7Wefwq7W6fDWQtdTWq/W7u2qvq9W7ZcHmkGW4ldOHFdRmoHaq','W6y1W7r7W4e','dc/cRq','W5tcVY7cQXddNvhdNHaGWQqSWPhcTtmRWOldIxyDCcr4dIVdJSkHaq7cGrHdW7S','WP8cWQRcSMu','WRtcUWWjW7G','imoOn0tcJmosWQJcVSo+W6j+aaxcUCkUWQycWONcJsVcI2SJnmkKW4K0WO3dUh/dGsddLLKFdCkKbSkxnKVdGSkMthldRConhCoqi0pcQ8kZEdldLSkym1WVu8kjW6HFWRaiW6pdTHBdKSo7WRixW7pcTIFcOW7cQdldPSoyBmkCW6pdL8ojW6H/gIRcH8oo','WR94W4O8cq','W4WDWPq','WPnTb8ogW4C','s8koW6u0','WR1SW647','estcS1ms','5P6u55+q5AE35zcR6Ao05y2W54MO5OkH776r6k+x5P6I55YM5PA65B+T','iK5aWRiOW4rjWO8','W4KCWOdcRSkiW4u','a8oAW5GsF8k6ucpdGmoEESkVW70','WRhcPmkavGWqWO7cUmoKAxRdNZy','nhdcV8kIECkppmoYWOSc','WQG6nCoBW53cMrqt','WQbEB8o76k+u5RoD5AEJ6lsv77Yl6kY25QoT5P6z576h6lss6yAU6kYf','W5JcVrNcPJ4','fgBdVNxcHG','W5OFWRlcUmkY','jhT7xaC8','rCk9W5yXW6i','W4ZcJmk1WRjM','WQfshmkOtJddLLe','xqzsW4RdUW','BCkVtbic','W5JcQI3cTbJdMvu','cXtcMa','W656BSozrG','ablcMw7cS3hcH8kLW6q','W7u8W4ddKNdcSmo8Cmo3WRJdTSoCW53cJGFcVmoSgmoUWOi','WRe0W5HkisDt','rmkoWOzekCoWiqy','W6zoWOCwW4i','vYPa','WO5DWPxcVSkuW5iKWO7dLffaWOzCW61nW7hcMbFcKCoY','W6DLW5FcHHq','WOWaWPhdM0lcL8k0W5tdQ3KEBG','W5HCW5K','WOaSWQmcW6LdWO3cUq','zvzOnGC','5lQE5lMy5PY75yMR5zIg6l+25zU+56QC5PAP5OYt','vc1o','W6LBdqRdPW','axWgWPGlr0lcHCkU','CSo8veBcLa','WPtdTMq5vv1r','qJDHWQSS','WQW2ja','xCkkW6iGW4v9','W55BWOOtW7q','WQBdKN/cKXiK','W7C3W4iXW6RdKSo9iW','W6T/WOatBG','W4RcUSkwWP1g','WQPSWPrVWPlcHCkGdZxcU35/WO4','WOJcUg5z','m0jiWQi+W6jVWOOhea','c8o/fq','rMrygdT2FmoqWPG','WRVdI8otuYm','WOyxqbOOWR8','W65TD8ohvG','AX1XWOK9','WQJcOsG5W7y','WPBdKmoKW6iOWOiwectdJ8k+eeG','WP0AjmkWc0xcKSkMDG','5lIm5lMU5P++5yMQ5zQs6l2L5zQo56QD5PEl5O2r','5P+Q5P+h6k6o5yQ15Rsg5yUW5l2y5Ogo5OUi5Bw66Ac05y+V6l2B5AEc5yQJ','W5VdOCojk0q','WPGxamkSjW','W5VcQapcVWy','W5CCW5XpW4K','5lQF5lM85PYw5yIT5zU36l+A5zUN56Q05PEx5O+S','W6H2WP0qqMK','ph/dP07cVq','WOKKWQGt','W7v/WP8f','CgbbjbO','WPxdGwuJDq','WRTFh8ocW57dQmkmnmkOWOZcOmkYW7nGfMeaW5SVBGGWwKnIdSowW63cItlcGSo7mSkhWRRcRwpdSe5IgHRcUSoAgNZcQCoBhwpcOq','WONdV3GTxvqAWOmsrCknbmkysGa','WOdcTN0','ya4vW7be','WOdcTN19CCkq','WQusW6G','FY7dU8kWW5xdLa','lgVcPCkJxmkehCor','44o35O6v56E/44gN6k2A5ywU6i2j5yYmsWxcI8kWW41C','WPZcRuviASkm','W40AW4FdUw0','W7z/WOi','WOO2WQi','u8kBWOeoiCkSaGBcHmonBmkR','WP7cVgLnB8kw','WOZdRdRcTmoQ','W47cLXpdOKLWiq','W51wzSklaeFcMCkJEa','tCk/wa','W6H2WP0qvgWPWOhcMtFdHmoMW7NdRCoxWQ1dFCkFW6O','xSkDFcKw','WQHEySoPvW','ou5DWQuSW5fL','xIf8WOqi','W4HOjq','xmkhW74LW6bT','W5zbW5xcMGhcNmoXWO/dVfaUaZiukmoKhSkaW6ZcUrtcV3W3nmkLv0tdR8oVrCkyWRHavSkkD0ldPLNcOq/dSfOrzW','W6euW5BdL8op','rIlcPvOMW5G','WR9IW7y2bhNdLYnHkW','wCkkW78XW4X7afO','artcK3BcIg/cLSkT','W6lcIH4','WOqQWQScW4HiWOO','WQXncW','cH7cJgNcHN/cLG','WONdVb/cImop','W77cJdFcPc8','vq93W6ddShL6WQhdG8oN','i8kbDSkSqHNdU2WuyG','W5bwW4pcIXy','W7GeWPhdMKlcLG','gvVcNmkYfColefxcMW','W4fVcXtdMG','W60NW78','W40xWOdcUmkBW5y1','WQP5W6GZbwNdUIbR','BdBcPq','CSk7Fmkkzq','ESkirtmA','W7ifW5rcW6y','WRZdHfuyBa','W6FdTCoeba','qCkFWPPjiSoLaqtdKW','WR8iWQSIW6K','W4FcKXtdSa','fhpdLa','WQbhWPdcKmkCd8kfW4XzW5ldLa','cSoMjSk9cq','xtikW5LrWPCMW6m','W7dcPqRcTWe','nWhcTgdcNq','CCoHy07cJSoCWQtcTSoZ'];}());Iii11l=function(){return i1lIii;};return Iii11l();};async function IllIi1(lIIiII,i1iIlI){const ii1l1i=I1I1lI,li111={'BvzmF':'shop_app_home_window','xGBSr':function(lIIiI1,ll1I1,Ii1ili,iI1Ii1){return lIIiI1(ll1I1,Ii1ili,iI1Ii1);},'HUXZl':function(Ii1ill,llIlI1,iI1IiI){return Ii1ill(llIlI1,iI1IiI);}},liI1lI=await li111[ii1l1i(0x1b1,'gx*0')](lilII1,lIIiII,i1iIlI);return new Promise(IIlI1=>{const l1iIl1=ii1l1i,i1iIli={'ywisf':li111[l1iIl1(0x1a8,'(@V]')],'GiaIN':l1iIl1(0x23e,'m@%1'),'HIQFl':function(i1iIll,i1lliI){return i1iIll(i1lliI);},'SKIPf':function(liI1l1,IllIlI){return liI1l1===IllIlI;}};$['post'](li111['xGBSr'](lilIII,lIIiII,i1iIlI,liI1lI),(IiillI,ili11I,li11l)=>{const ii1iI=l1iIl1,lliiIl={'vSOJS':ii1iI(0x259,'D6pz'),'qdymM':i1iIli[ii1iI(0x2ca,'K8^j')]};if(ii1iI(0x1df,'@8ce')!==i1iIli['GiaIN']){let lliiIi;if(Iliili['result']['giftTitle'])lliiIi={'giftType':lliiIl[ii1iI(0x25b,'PuTn')],'follow':0x0,'shopId':l1i111['shopId'],'activityId':iliII1,'sourceRpc':lliiIl[ii1iI(0x231,'!lDe')],'venderId':II11I1[ii1iI(0x1c1,'7F)[')]};else i1illl[ii1iI(0x287,'K8^j')][ii1iI(0x262,'UZa%')]&&(lliiIi={'follow':0x0,'shopId':Iii11I[ii1iI(0x20f,'D6pz')],'activityId':Iil1II,'sourceRpc':'shop_app_home_window','venderId':iIIl1I['venderId']});return lliiIi;}else try{IiillI?console[ii1iI(0x22d,'RL9M')](i1iIli[ii1iI(0x1d2,'F#E!')](String,IiillI)):(li11l=JSON['parse'](li11l),li11l&&li11l[ii1iI(0x22f,'m@%1')]&&i1iIli[ii1iI(0x217,'S[4@')](JSON[ii1iI(0x1d3,'hb!z')](li11l[ii1iI(0x2ad,'XeoI')]),'{}')&&console[ii1iI(0x27b,'K8^j')](JSON['stringify'](li11l)));}catch(iiIi1I){console[ii1iI(0x2c3,'lZOK')](li11l),$[ii1iI(0x2c5,'cv7K')](iiIi1I,ili11I);}finally{i1iIli[ii1iI(0x2d2,'IGSK')](IIlI1,li11l||{});}});});}function lilIII(IllIl1,ll1Ii,ll1Il){const IIIil=I1I1lI,iiIi11={'sNPWW':IIIil(0x225,'D6pz'),'PxGyL':IIIil(0x2c7,'^O6!')};return{'url':IIIil(0x1ef,'i[^B')+IllIl1+'&body='+encodeURIComponent(JSON[IIIil(0x1e9,'HHJh')](ll1Ii)),'body':ll1Il,'headers':{'Host':IIIil(0x1f2,'i[^B'),'content-type':iiIi11[IIIil(0x1f4,'S[4@')],'accept':iiIi11['PxGyL'],'user-agent':$['UA'],'accept-language':IIIil(0x1c9,'tvE4'),'Cookie':IIliIl}};}function Ii1ilI(){const IIIii=I1I1lI,ill1II={'EpkUO':function(i1llil,i1llii){return i1llil+i1llii;},'sEIbV':IIIii(0x2a8,'i4[B'),'wqsEb':IIIii(0x286,'DzcJ'),'lRriA':IIIii(0x210,'HHJh'),'oXGJX':'*/*','ZDhSL':'zh-Hans-JP;q=1,\x20en-JP;q=0.9,\x20zh-Hant-TW;q=0.8,\x20ja-JP;q=0.7,\x20en-US;q=0.6','flVzF':function(l1i1I1,llIIil){return l1i1I1===llIIil;},'bSKFg':IIIii(0x1fe,'luKK'),'OhaKT':IIIii(0x1c7,'Z0xk'),'YNxJE':'sxnuz','nssfG':IIIii(0x1ba,'K8^j'),'fHHSG':'zh-CN,zh-Hans;q=0.9','rQLJB':IIIii(0x21b,'RL9M'),'tYFbm':IIIii(0x27a,']j&Y')};return new Promise(async llIIii=>{const I1I1l1=IIIii,Ii1I1i={'zdExu':function(Ii1I1l,IIlIl){const iI111i=iii1II;return ill1II[iI111i(0x277,'CU**')](Ii1I1l,IIlIl);},'CKHny':ill1II['sEIbV'],'tSYsn':ill1II[I1I1l1(0x2dc,']j&Y')],'wbvwN':ill1II[I1I1l1(0x278,']j&Y')],'NFBOe':ill1II[I1I1l1(0x25f,'nK!q')],'XlpEZ':ill1II[I1I1l1(0x2cf,'S[4@')],'riWVI':function(ili11l,Iiilll){return ill1II['flVzF'](ili11l,Iiilll);},'ALQqf':ill1II[I1I1l1(0x204,'F32V')],'jOqoa':function(Iiilli,IIlIi){return Iiilli===IIlIi;},'gLPvr':I1I1l1(0x1a3,'^O6!'),'IYsmA':'ExHUU','dKfEG':ill1II[I1I1l1(0x223,'Qs^#')],'tQkIM':function(ili11i,iiIi1l){return ili11i!==iiIi1l;},'TvqJh':ill1II[I1I1l1(0x202,'ar$x')],'nfIFd':function(li11I){return li11I();}},llIIlI={'url':'https://plogin.m.jd.com/cgi-bin/ml/islogin','headers':{'Accept':'*/*','Accept-Encoding':ill1II[I1I1l1(0x22a,'kec(')],'Accept-Language':ill1II['fHHSG'],'Connection':ill1II[I1I1l1(0x2ab,'&D%M')],'Cookie':IIliIl,'Host':ill1II['tYFbm'],'User-Agent':$['UA']}};$[I1I1l1(0x2ba,']j&Y')](llIIlI,(lliiII,iiIi1i,liI1ll)=>{const iI111l=I1I1l1,ll1II={'GpLMC':Ii1I1i[iI111l(0x1cc,'UZa%')],'OKmJW':Ii1I1i['wbvwN'],'chfmK':Ii1I1i[iI111l(0x24a,'PuTn')],'xNfin':Ii1I1i[iI111l(0x2c9,'RL9M')]};try{if(lliiII){if(Ii1I1i[iI111l(0x2ce,'xAi(')](iI111l(0x19c,'m@%1'),iI111l(0x2c1,'!hQU')))console[iI111l(0x195,'D6pz')](String(lliiII)),console[iI111l(0x1ea,'HHJh')]($['name']+'\x20API请求失败,请检查网路重试');else return{'url':iI111l(0x293,'7iyQ')+ii1I1i+iI111l(0x295,'!lDe')+llI(llliI[iI111l(0x2ae,'DzcJ')](iI1li1)),'body':lllii1,'headers':{'Host':ll1II[iI111l(0x1cd,'IGSK')],'content-type':ll1II[iI111l(0x270,'luKK')],'accept':ll1II[iI111l(0x2be,'c[Yq')],'user-agent':liIli['UA'],'accept-language':ll1II['xNfin'],'Cookie':liIll}};}else{if(liI1ll){if(Ii1I1i[iI111l(0x2d6,'tvE4')]!==Ii1I1i['ALQqf'])iI11I1['logErr'](il1i1l,IlIlll);else try{if(Ii1I1i[iI111l(0x20d,'@8ce')](Ii1I1i[iI111l(0x218,'RL9M')],iI111l(0x2a1,'7iyQ'))){liI1ll=JSON[iI111l(0x1d4,'gx*0')](liI1ll);if(Ii1I1i[iI111l(0x269,'kec(')](liI1ll['islogin'],'0')){if(iI111l(0x1f7,'D6pz')===Ii1I1i[iI111l(0x1fc,'t5P0')]){const ill1Ii=Ii1I1i[iI111l(0x1e8,'IGSK')](I1iIiI[li1I1]['redWord'],i1ilil[lilIii][iI111l(0x238,'D6pz')]);i1ill1[iI111l(0x1b5,'CU**')]('🎉\x20'+ill1Ii),iIIl1l['message'][iI111l(0x234,'RL9M')](ill1Ii);}else console[iI111l(0x215,'kec(')](iI111l(0x1bc,'HHJh')),$[iI111l(0x257,']j&Y')][iI111l(0x24f,'7iyQ')](Ii1I1i[iI111l(0x1c5,'TR0O')]),$['skipRun']=!![];}}else lllili[iI111l(0x227,'!lDe')](iI111l(0x272,'HHJh')),IliiiI['skipRun']=!![];}catch{Ii1I1i[iI111l(0x2bc,'RL9M')](Ii1I1i['TvqJh'],'sxnuz')?iIIl11={'giftType':Ii1I1i[iI111l(0x1b4,'IGSK')],'follow':0x0,'shopId':l1l1I1[iI111l(0x20f,'D6pz')],'activityId':I1iIll,'sourceRpc':iI111l(0x1fa,'hb!z'),'venderId':I1lliI[iI111l(0x2dd,'7iyQ')]}:(console[iI111l(0x29b,'ar$x')](iI111l(0x252,'Pjc0')),$[iI111l(0x191,'nK!q')]=!![]);}}else console[iI111l(0x2b1,'F#E!')](iI111l(0x26c,'RL9M')),$[iI111l(0x18d,'!hQU')]=!![];}}catch(i1lll1){$[iI111l(0x266,'c[Yq')](i1lll1,iiIi1i);}finally{Ii1I1i[iI111l(0x241,'HHJh')](llIIii);}});});}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) }
|