代码拉取完成,页面将自动刷新
/*
京豆红包雨
cron:1 1 1 1 * jd_redrain_hby.js
*/
const $ = new Env('京豆红包雨')
var iil='jsjiami.com.v7';const liIl1=iii1II;(function(lI11I1,l1il11,IiI1,liI,illIli,l11i1l,lIII11){return lI11I1=lI11I1>>0x9,l11i1l='hs',lIII11='hs',function(IiilI,ii1I11,liIi1,lI11II,l1llI1){const llliil=iii1II;lI11II='tfi',l11i1l=lI11II+l11i1l,l1llI1='up',lIII11+=l1llI1,l11i1l=liIi1(l11i1l),lIII11=liIi1(lIII11),liIi1=0x0;const llIIll=IiilI();while(!![]&&--liI+ii1I11){try{lI11II=-parseInt(llliil(0x131,'(jmz'))/0x1+parseInt(llliil(0xa7,'Q11z'))/0x2+-parseInt(llliil(0x132,'o[)A'))/0x3+parseInt(llliil(0xca,'VIG('))/0x4+-parseInt(llliil(0xaa,'XL5$'))/0x5+-parseInt(llliil(0xd1,'^HaM'))/0x6*(parseInt(llliil(0xe3,'tuE@'))/0x7)+parseInt(llliil(0x105,'qF4n'))/0x8;}catch(IillIi){lI11II=liIi1;}finally{l1llI1=llIIll[l11i1l]();if(lI11I1<=liI)liIi1?illIli?lI11II=l1llI1:illIli=l1llI1:liIi1=l1llI1;else{if(liIi1==illIli['replace'](/[ReLtBXPfuwWGFJCyKSUh=]/g,'')){if(lI11II===ii1I11){llIIll['un'+l11i1l](l1llI1);break;}llIIll[lIII11](l1llI1);}}}}}(IiI1,l1il11,function(lii,IllI1i,i11I1l,lil,IllI1l,i11I1i,IillIl){return IllI1i='\x73\x70\x6c\x69\x74',lii=arguments[0x0],lii=lii[IllI1i](''),i11I1l=`\x72\x65\x76\x65\x72\x73\x65`,lii=lii[i11I1l]('\x76'),lil=`\x6a\x6f\x69\x6e`,(0x16387b,lii[lil](''));});}(0x18800,0x76750,Iii11l,0xc6),Iii11l)&&(iil=0x17fb);const jdCookie=require(liIl1(0xd4,'Q11z')),notify=require(liIl1(0x12c,'qF4n')),common=require(liIl1(0xec,'Dp1w')),isNotify=![];let cookie='';function iii1II(_0x51deb7,_0x328c03){const _0x386385=Iii11l();return iii1II=function(_0x16d1b3,_0x53f392){_0x16d1b3=_0x16d1b3-0x88;let _0x44972a=_0x386385[_0x16d1b3];if(iii1II['YvvAhS']===undefined){var _0x27cca7=function(_0x1dc387){const _0x4f5783='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5401fa='',_0x174de6='';for(let _0x245270=0x0,_0x572483,_0xfc1900,_0x4a1073=0x0;_0xfc1900=_0x1dc387['charAt'](_0x4a1073++);~_0xfc1900&&(_0x572483=_0x245270%0x4?_0x572483*0x40+_0xfc1900:_0xfc1900,_0x245270++%0x4)?_0x5401fa+=String['fromCharCode'](0xff&_0x572483>>(-0x2*_0x245270&0x6)):0x0){_0xfc1900=_0x4f5783['indexOf'](_0xfc1900);}for(let _0x3fa279=0x0,_0x3843fa=_0x5401fa['length'];_0x3fa279<_0x3843fa;_0x3fa279++){_0x174de6+='%'+('00'+_0x5401fa['charCodeAt'](_0x3fa279)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x174de6);};const _0x52b5ce=function(_0x4b7f74,_0x33dec6){let _0x51d6a7=[],_0x365d1d=0x0,_0x461eab,_0x438bb1='';_0x4b7f74=_0x27cca7(_0x4b7f74);let _0x4d4c8e;for(_0x4d4c8e=0x0;_0x4d4c8e<0x100;_0x4d4c8e++){_0x51d6a7[_0x4d4c8e]=_0x4d4c8e;}for(_0x4d4c8e=0x0;_0x4d4c8e<0x100;_0x4d4c8e++){_0x365d1d=(_0x365d1d+_0x51d6a7[_0x4d4c8e]+_0x33dec6['charCodeAt'](_0x4d4c8e%_0x33dec6['length']))%0x100,_0x461eab=_0x51d6a7[_0x4d4c8e],_0x51d6a7[_0x4d4c8e]=_0x51d6a7[_0x365d1d],_0x51d6a7[_0x365d1d]=_0x461eab;}_0x4d4c8e=0x0,_0x365d1d=0x0;for(let _0x1e568c=0x0;_0x1e568c<_0x4b7f74['length'];_0x1e568c++){_0x4d4c8e=(_0x4d4c8e+0x1)%0x100,_0x365d1d=(_0x365d1d+_0x51d6a7[_0x4d4c8e])%0x100,_0x461eab=_0x51d6a7[_0x4d4c8e],_0x51d6a7[_0x4d4c8e]=_0x51d6a7[_0x365d1d],_0x51d6a7[_0x365d1d]=_0x461eab,_0x438bb1+=String['fromCharCode'](_0x4b7f74['charCodeAt'](_0x1e568c)^_0x51d6a7[(_0x51d6a7[_0x4d4c8e]+_0x51d6a7[_0x365d1d])%0x100]);}return _0x438bb1;};iii1II['bZmgWT']=_0x52b5ce,_0x51deb7=arguments,iii1II['YvvAhS']=!![];}const _0x114ab=_0x386385[0x0],_0x18aba2=_0x16d1b3+_0x114ab,_0x2a6c00=_0x51deb7[_0x18aba2];return!_0x2a6c00?(iii1II['gVVfBl']===undefined&&(iii1II['gVVfBl']=!![]),_0x44972a=iii1II['bZmgWT'](_0x44972a,_0x53f392),_0x51deb7[_0x18aba2]=_0x44972a):_0x44972a=_0x2a6c00,_0x44972a;},iii1II(_0x51deb7,_0x328c03);}const cookiesArr=Object['keys'](jdCookie)['map'](IlI1iI=>jdCookie[IlI1iI])[liIl1(0xf9,'*hd[')](Iillil=>Iillil);!cookiesArr[0x0]&&($['msg']($['name'],'【提示】请先获取Cookie'),process[liIl1(0x94,'A50j')](0x1));!(async()=>{const II1lll=liIl1,l1lIli={'zQiDL':II1lll(0xea,'A8Gk'),'lalnq':function(lIIiiI,II1lil){return lIIiiI(II1lil);},'uPPXi':'http://code.257999.xyz/redrain_hby.json','QTdtu':function(IIli1l,II1lii){return IIli1l===II1lii;},'eOVKC':II1lll(0x112,'%qBL'),'wOQri':function(lIIii1,ll1i1){return lIIii1<ll1i1;},'Xggeq':'EPWJE','YGirc':function(IIli1i,I1iIi1){return IIli1i+I1iIi1;},'LYWQS':function(lliil1,IIllI){return lliil1(IIllI);},'jlPvc':function(lliilI){return lliilI();},'oovWo':function(lili1,ll1l1){return lili1!==ll1l1;},'VRmWJ':'iiNQX'};authorCodeList=await l1lIli['lalnq'](getAuthorCodeList,l1lIli['uPPXi']);if(!authorCodeList||l1lIli['QTdtu'](authorCodeList[II1lll(0xb0,'Cn7o')],0x0)){console[II1lll(0x114,'A50j')](l1lIli[II1lll(0x9a,'tIFf')]);return;}notify[II1lll(0xa5,'K^NO')]({'title':$[II1lll(0xcf,'Q11z')]});for(let IllIIi=0x0;l1lIli[II1lll(0x95,'Dp1w')](IllIIi,cookiesArr['length']);IllIIi++){if(l1lIli['QTdtu'](l1lIli[II1lll(0x102,'1]dG')],l1lIli[II1lll(0x11c,'sVck')])){$[II1lll(0xe6,'K$jc')]=l1lIli['YGirc'](IllIIi,0x1),cookie=cookiesArr[IllIIi],common[II1lll(0x11e,'Nr@f')](cookie),$[II1lll(0xa2,'v5pu')]=l1lIli[II1lll(0x103,'duvo')](decodeURIComponent,common['getCookieValue'](cookie,II1lll(0xbc,'K$jc'))),$['message']=notify['create']($[II1lll(0xcb,'A50j')],$[II1lll(0x11a,'Dp1w')]),$[II1lll(0xad,'%qBL')]='',console[II1lll(0xd0,'Lpq^')](II1lll(0xa4,'vHLj')+$[II1lll(0xbf,'^HaM')]+'】'+($['nickName']||$[II1lll(0xdb,'M!Qg')])+II1lll(0x12e,'eC3t')),$['UA']=common[II1lll(0xfc,'Nr@f')]($[II1lll(0xf7,'tIFf')]),await l1lIli[II1lll(0x10a,'(dzO')](Main),common[II1lll(0xab,'Nr@f')]();if($[II1lll(0x117,'Dp1w')])break;await $['wait'](0x3e8);}else lilIl1['msg'](i1l1ii['name'],l1lIli['zQiDL']),i1l1['exit'](0x1);}if(isNotify&¬ify['getMessage']()){if(l1lIli[II1lll(0x106,'(jmz')](l1lIli[II1lll(0xb7,'PjC%')],l1lIli[II1lll(0x11f,'(P3L')])){IiilI1['log'](II1lll(0xde,'Cn7o'));return;}else await notify[II1lll(0xd2,'duvo')]();}})()[liIl1(0x9f,'1^im')](l1ii1=>$[liIl1(0xc5,'Lpht')](l1ii1))[liIl1(0xba,'k0U$')](()=>$['done']());async function Main(){const II1lli=liIl1,ii1ll={'hvddI':function(lliiil,lliiii){return lliiil>lliiii;},'GJalu':II1lli(0xc4,'Cn7o'),'tJTmo':function(IliI1i,ll1ii){return IliI1i===ll1ii;},'NBXqd':function(IIli11,IllIII){return IIli11<IllIII;},'mGHrE':'5|0|4|1|2|3','MmSTR':function(ii1li,IIll1){return ii1li+IIll1;},'yROYT':function(ll1il,IiiIiI){return ll1il+IiiIiI;},'ptixz':function(lilii,l1iiI){return lilii===l1iiI;},'HYWvx':II1lli(0x8f,'$3#*')},IliI1l=await common[II1lli(0x133,'duvo')](cookie);if(!IliI1l&&ii1ll[II1lli(0x8e,'*hd[')](typeof IliI1l,II1lli(0x109,'b1@V'))){console['log'](II1lli(0x91,'o[)A'));return;}try{$['sotpRun']=![];for(let ll1li=0x0;ii1ll[II1lli(0x122,'sVck')](ll1li,authorCodeList['length']);ll1li++){const Illl1I=ii1ll[II1lli(0x124,'1^im')][II1lli(0x10f,'M!Qg')]('|');let lliiiI=0x0;while(!![]){switch(Illl1I[lliiiI++]){case'0':$[II1lli(0xff,'tIFf')]=authorCodeList[ll1li][II1lli(0xc0,'^gYx')];continue;case'1':console['log']('');continue;case'2':await sendRequest('dotask');continue;case'3':await $[II1lli(0x128,'M!Qg')](0x1f4);continue;case'4':console[II1lli(0x97,'#4z]')](ii1ll['MmSTR'](II1lli(0x11d,'sVck')+ii1ll[II1lli(0xb5,'M!Qg')](ll1li,0x1)+II1lli(0x8c,'$3#*'),$[II1lli(0xfa,'3C]b')]));continue;case'5':$['encryptProjectId']=authorCodeList[ll1li][II1lli(0xe1,'$k$0')];continue;}break;}}}catch(lilil){if(ii1ll['ptixz']('bYhjv',ii1ll[II1lli(0x10c,'Nr@f')]))console[II1lli(0x111,'^gYx')](II1lli(0x8d,'luM[')+lilil);else{const Illl11=iIIIIi['rewardsInfo'][II1lli(0x12b,'w#94')];if(Illl11&&typeof Illl11===II1lli(0x93,'k0U$')&&iii1I1[II1lli(0xc9,'^HaM')](Illl11[0x3])&&ii1ll[II1lli(0xb2,'#4z]')](Illl11[0x3][II1lli(0xa3,'$k$0')],0x0)){const ii1lI=Illl11[0x3][0x0];let I1ilIl=''+ii1lI['rewardName'];I1iIl1[II1lli(0xdd,'WBhl')]('开启红包雨成功,获得:['+I1ilIl+']');}else i1il[II1lli(0xb6,'1]dG')](ii1ll[II1lli(0xf0,'VIG(')]);}}}async function handleResponse(I11iII,I1ilIi){const ii1I1I=liIl1,IiiiI={'IcLrY':ii1I1I(0x108,'$3#*'),'siIwt':function(llIlli,llIlll){return llIlli===llIlll;},'usNlq':ii1I1I(0xc7,'gzv)'),'ALPPq':ii1I1I(0xe7,'duvo'),'InHti':function(lliii1,Iiii1){return lliii1==Iiii1;},'pVCnI':ii1I1I(0xc6,'b1@V'),'xCuwd':function(lIIili,IiiIil){return lIIili>IiiIil;},'QOMzD':ii1I1I(0xf5,'k0U$'),'gfxdz':function(IiiIii,IIlll){return IiiIii!==IIlll;},'wFVWf':ii1I1I(0x9d,'b1@V'),'PAeBE':function(liliI,ll1lI){return liliI===ll1lI;}};try{if(IiiiI[ii1I1I(0xe2,'%qBL')](IiiiI[ii1I1I(0xfd,'M!Qg')],IiiiI[ii1I1I(0x88,'TK[1')]))II11Ii[ii1I1I(0xdf,'$3#*')](ii1I1I(0xcc,'XL5$')+II11Il);else switch(I11iII){case ii1I1I(0xfb,'Lpht'):if(I1ilIi&&IiiiI[ii1I1I(0xd5,'^gYx')](I1ilIi['subCode'],0x0)){const IIlli=I1ilIi[ii1I1I(0x10e,'3C]b')]['successRewards'];if(IIlli&&IiiiI[ii1I1I(0x127,'DxJZ')](typeof IIlli,IiiiI[ii1I1I(0xdc,'Dp1w')])&&Array[ii1I1I(0xc2,'vHLj')](IIlli[0x3])&&IiiiI[ii1I1I(0xce,'PjC%')](IIlli[0x3]['length'],0x0)){if('PFZOZ'===IiiiI[ii1I1I(0x101,'TK[1')])lI1IiI[ii1I1I(0xb4,'1^im')](i1lI['msg']);else{const ii1l1=IIlli[0x3][0x0];let lIIill=''+ii1l1[ii1I1I(0xaf,'1]dG')];console[ii1I1I(0xd0,'Lpq^')](ii1I1I(0xa8,'3C]b')+lIIill+']');}}else console[ii1I1I(0xe5,'M!Qg')](ii1I1I(0x115,'o[)A'));}else{if(I1ilIi[ii1I1I(0xf6,'DxJZ')]==0x1f)IiiiI[ii1I1I(0x104,'$k$0')]('oHJKK',IiiiI[ii1I1I(0xda,'o[)A')])?console[ii1I1I(0xbe,'DxJZ')](I1ilIi[ii1I1I(0x129,'c6ik')]):(i1IIi[ii1I1I(0xbd,'VIG(')]=!![],IIII1I[ii1I1I(0xc3,'1]dG')]&&Iil1I1['message'][ii1I1I(0x10d,'c6ik')](Ii1iII));else I1ilIi['subCode']==0x57b?console[ii1I1I(0xfe,'$k$0')](I1ilIi[ii1I1I(0x11b,'VIG(')]):console['log'](I1ilIi[ii1I1I(0x125,'c@h0')]);}break;}}catch(I1ilII){IiiiI['PAeBE'](ii1I1I(0xe4,'v5pu'),ii1I1I(0x118,'tuE@'))?i1iliI['log'](IiiiI['IcLrY']):console[ii1I1I(0xd7,'dG^Y')]('❌\x20未能正确处理\x20'+I11iII+ii1I1I(0x130,'vHLj')+(I1ilII['message']||I1ilII));}}function Iii11l(){const iI1ll1=(function(){return[...[iil,'yFtRjSRXsWUjePiahumPwiPLC.BcKoCmJF.RGfv7==','W4brW47dNSo4','WP8jEsi9','W7JdHgJdMa','dCocWRpcM1RcVtVcKG','5lQ15RA15yIzWPi','4PYDW7/OHiVMNOJOVAFOOyBPGRdLI5pKUQtPL4pORzFdLW','dCoOWQ5/Dq','W73dL8ozW5JdKG','5B6f5zkD57MZ5y6o6zQY5OMS5yMb77YM6iY25B6i77+Vfa','6lAw5y6g5PsO5PsA','W7SPWQLHW7zDdN3cP8orisa','E8oMW5SoW4RdKa','BdNcUZ4','W4BcK8k3W4fh','lNBdJbr+AhBcTXJdPNJcPqddPvVcSfb9WPS9W4S8WQldPq/dKXP7rceqW6vD','W6tcQ8ol','WORdPSo/CmkzWRfbnu/cNSo2WRWybXVdLG','WO4hcq','W7rVFqzU','e8oFW4XZ','WRRcRYfE','WQTiW7yWWQy','WOZcKxa','W6XBn8kwWQK','zmoJWOGCBW','sCkkcSkBWPldR8kkW5xdQ1JcOmoJW4BdGN0oWQ3dUCoqW6xdTCoDWR7cGwxdJfpcTSkqgdNcR8ojWPPoW4/cIrJcVahdINZcJvzqWOfQWPG6bCoEcxrPW4FdMmoaWRjEW4/cTSksWQXJemocm8kfW5L7rKH6WPtdUGalWRqag8kfzSoXWOjhW4CzpSokg8k6WOtdLfiIqr7dTWONjCkxW4nswSoEamk3W4X5vHtdPmoJW4NcVcBcHW58WRT5WRrWWQCWfCk3q8kiW7tdTb/dN8oyD8kGjwiNWOtdO8kgmSkDwvDJWONdQmkDDbjaigm','rSovWR4lt8kwWRNcNq','g8oBW5z1abG','nrJcIexdPJbv5B+k5AsS44cC5lU45lI+6lAI5y6R','W6BdNCk/W60ZgW','W6XvmCkg','cmkPW7pcIuBcOCkKwmkOW6FdI8kVbG','5B2u5zgu57Mp5y6c6zQp5OIZ5yIZ77+y6iYa5B+577+1W44','WOzrCJ5UiG','sI7dNCo+WOfqW7xcN8o4WROZpSkn','WPxcKgqXzWCpWONcIWG4','W6xdPSkCW7hdQNCaWO1iWP57W5DLW5HWz8oOW4/dG8o0WQDSDqhcRmoAmCopgNtdQCktpaWTuKa0wCk4W6ZcHCoTASofWQNdIa','whBdHmkBCSoWDu4','tSkjWQVcGNu','eCkKWO/dMJtcR8kKswGd','WRpdO2NcICkDW6S','W4VcOf/dUWG','W6dcSSoitmkE','W7NcUSkaW5bg','W6nvja','WPTSsqzj','d8kUWP8','W5mQWOfhAa','WQNcPKCAua','WOPtW5eocq','CSoTW58kW4xdImk3','WOldO8ogvSkj','WP/dVmodCSkjWQ8','WQLymCokASowW60','WP9yW4W','WRFcOdfAWOG','C8oKW6f3WQRdQ20ugmoKzmkQeXhdGwVcHSkrW4C','4PY1WOlMN5dOG6/MRBNNO6xLPl7NKildRG'],...(function(){return[...['vKhdOX3cVNSg','dSkKWOVdIcFcRmkp','5B6m5yUl5PYT6i2z5B2+5AEv5yUs776i5yYj6ign5RAi5yMj57MW5P2p5OMt6icx6BIu5yYv','WRqFWQLIdM8','WQnYW7yWWQCF','W7JcGvxdUWW','i2NdMW','WRFcVrrnWOlcJvG','W7uFC8k8mCkoWRH5bbbjamkg','yc/cTI9a','4PYYoEIhSUAFPoI9PUIGREMcGUwlU+s4TEMxGoIUNwm','ovZcVa','W707WPLNrG','v8o4WQRdMG','qr9W','W6/dVcDTWRpcQgZdOW','s8onWR8/','bCoBW4LNeqni','f8k2WQ3dMZldV8o7A8kfW6m','x8oKW4PXWRO','W7JdGgfHW4LZW7pcVr0rWOFdK8kMtIKBfxjSWPG','W7n9W5G','W53dMCk3W6qN','v2/dL8kCvCoYEv/dUKDCW7tcI1TewComWRZcNdJdShOmtg5+fCoycmoiWPuXtG','W4C3WP4fFa','WRDnyY1tkmoQWOC','W4hcISkLW51N','W6pdIMy','W5xLV5xMNjJMT5xLIyhLTBhNUQZNUzFMNRNcNoITHoEUQow8PUs4M+ATPoA0QEwjRCoO','W7pdOCow','t1FdLd3dTmk4WPO6W7CrWOLVW7u','eSoqW5TGdqbiWOKuEIflxCk/ux0','rxBdRSkhsa','dCoiW7BdVchdIK/cVa/dRIFcJvO','yCoPWQ43sq','WO5ryq','WOBdPSo4z8ky','CmotWROABG','WPanhXj0f2C','z8oXW5iiW4ZdL8k9','44c65O6C56wd44kJ6k6M5ywI6i655y+euYWyWQlcJCo9','WRqZvG','WP/dS8ktW4DhWOidnSoepGLUW6dcLbj4W6Hsv3lcRJ3dVG','W6GDW7TreG','vvRdPstcNG','q8oNW4ufW7W','WOfNjmoGCW','WPfnsc9Y','WPejaWi8c2eVW6CnW7G','W6GDWP9Jq8oXW7S','rwVdLCkzuSo2Cu3dQG','ECoOW7ypW4S','WObcW4KRla0Y','W4rttJ9Jqsy+','W5yyWRa','h8olWPzMF8o5','mrxcJSo1hLpdMmkeW4ubWOxdSmoKWOVcJd4','WRWFWRPgd3y','WOFcM3KbuG','WPDnsdnS'],...(function(){return['g8orW58','W7rosd9uud8AgmkKqu5HxxKLW49shq','W63dU8oFW7FdIJ8','W5bsW5pdTmon','o8kMWP/dNJC','D8oHWPSgAW','emoyW4b2dG','EmowuY7dVHO0x01sWRe2W7yX','WO0hgdb+','DCopWQm','5B+m5yUd5P6B6iYf5BYZ5Asn5yUl77+P5y6C6ics5Rw95yMp57Qy5P6+5OMk6ich6BMx5yYd','WQ5/W7m5WQekgq','fGNcSNVcOa','WP7dKmo+sCkr','WQJcP0aIAW','W7BdNw0','jH7cMSoMfuFdN8kDW5KiWOa','WPfoAJzP','bCkvA8oSW7G','ESoLW6u','pow9JoAEUoA3I+wkLow1O+E7L+E7UoAFJatOR4xNRPlLVAtKUkpMRiRMTiZLIyJcLG','WOPkCI9UC8kOW40CWQeMWRpcK0FcO8o7WOfan2FcP8o+W6D0WOzaWRe9waLtWQtcKY5YWObrW5FdLSkzW7hdSYX+cXVdISksWPa/lmkUWOCMWOKYWRZcNSkiB8okFXdcTJKDWRDbWQqtWOypWOGxWPBdTSocqmkTWORdRsJdNSkKW4WZcSopWORcMZz6s8kSW5VcUCoOW43dRCkkwWpdSSokbuVdQhn6W5BdGmorWPVdUCkThhOGgmo+h8oEW6tcHci','zs7cTq','5B+J5yI85P+I6i+L5B6n5AAY5yMt77Y+5y6I6ioL5Rs35yIx57Ij5P++5OI36io26BIX5y+s','W6pcOCojwmo6BMxdMmkIWOu','W4pcQCkiW7zaWOO','rSkvWOJcQ08','BrSCW7C/','W6tcR8kdW4fGWO8DFa','WQTEiG','W50rW4zGcG','5B6f5AA9566n','WPpcM2mxFcSlWO/cHq','W7JdNmkrW58h','W6tdONfJW7W','cmohW7tdVY7dIeBcHsxdHY3cKva','W4S0W7L0hW','WR4kCSobW7vfW7xdTbRcPCkzbgxdHG','W6j9c8khWOq','E0ZdOG','cmkoW7rUcG/cGYBdSv0Gia','WObEW6iFnW','WPvFBYS','W73dH3i','ueFdLINcOhSy','phpdNXTYEgtcKrtdVNFdUbZcUW','z8ojf27cO0D2qM9EWPOcW7SSW48praVcTd5AWRvhW5uwtSkR','h3RcJCkGW5qyW7FdU8kbW6HcumoTEG','W7ldM0xcO8oVtte','W4lcI8kTW59e','h+IVHEAZOowsOUw5MdO','W5fEvL4JxuewW5aIW6ju','WODiW71MkmosWPTZgf9EW40','xmoDWRGBv1hcUbJdSM81amoZW5m','vSoSWRpdUr3dSCoZ','c8k0WOldQbi','WRddS3pcQmkfW6ie','WQxOROhMS6pLPltOTz7dNEkDUCk1'];}())];}())];}());Iii11l=function(){return iI1ll1;};return Iii11l();};async function sendRequest(l1l11l){const IiIl=liIl1,IilIil={'OakmA':IiIl(0xa9,'M!Qg'),'GWeEn':IiIl(0x12d,'XL5$'),'TJzHO':function(iiilll,lI11Il){return iiilll(lI11Il);},'qXbKq':IiIl(0xd9,'%qBL'),'ssNpo':IiIl(0x116,'#4z]'),'nFtXX':IiIl(0x96,'w#94'),'jGzqu':'https://pro.m.jd.com','AAcaO':'h5_1.0.0','jhGKR':'empty','ZhRdR':'dWJtx','Hffch':'nVvVd','mkZTi':function(lIII1i,l11i11){return lIII1i===l11i11;},'tVdrF':'KbdeO','sWKlj':IiIl(0xb9,'DxJZ'),'GUHaU':function(IilIl1,lIII1l,l1iIIi){return IilIl1(lIII1l,l1iIIi);},'ryjKl':function(lilIi,l1l11I){return lilIi>=l1l11I;},'WctnU':function(lilIl,IilIlI){return lilIl!==IilIlI;},'wESen':IiIl(0x135,'1]dG')};if($[IiIl(0x100,'$3#*')]||$[IiIl(0x134,'Q11z')])return;let l1iIi='',l1l11i='',l1iIl=IiIl(0xcd,'XL5$');switch(l1l11l){case IilIil['OakmA']:;l1l11i={'completionFlag':!![],'sourceCode':IilIil[IiIl(0x119,'A8Gk')],'encryptProjectId':$[IiIl(0x98,'K$jc')],'encryptAssignmentId':$['encryptAssignmentId']},l1iIi=IiIl(0x113,'M!Qg')+IilIil[IiIl(0x110,'luM[')](encodeURIComponent,JSON[IiIl(0xf4,'%qBL')](l1l11i));break;default:console[IiIl(0x97,'#4z]')]('❌\x20未知请求\x20'+l1l11l);return;}const illIll={'url':l1iIi,'method':l1iIl,'headers':{'Accept':IilIil[IiIl(0x10b,'K$jc')],'Accept-Encoding':'gzip,\x20deflate,\x20br','Accept-Language':IiIl(0xac,'$3#*'),'Connection':IilIil[IiIl(0xf1,'M!Qg')],'Content-Type':IilIil['nFtXX'],'Cookie':cookie,'Origin':IiIl(0xd6,'c6ik'),'Referer':IilIil['jGzqu'],'x-rp-client':IilIil['AAcaO'],'Sec-Fetch-Dest':IilIil[IiIl(0xee,'vHLj')],'Sec-Fetch-Mode':IiIl(0xa6,'1^im'),'Sec-Fetch-Site':IiIl(0xf2,'(jmz'),'User-Agent':$['UA']},'timeout':0x7530},iIli1I=0x1;let Iiil1=0x0,iiilli=null,l1iIIl=![];while(Iiil1<iIli1I){if(IilIil['ZhRdR']===IilIil[IiIl(0xb3,'Dp1w')]){const Iiiil=i1li[0x3][0x0];let Iiiii=''+Iiiil['rewardName'];li1II[IiIl(0x99,'(jmz')](IiIl(0x90,'K^NO')+Iiiii+']');}else{Iiil1>0x0&&await $[IiIl(0x8a,'WBhl')](0x3e8);const l11i1I=await common[IiIl(0xe8,'(jmz')](illIll);if(!l11i1I[IiIl(0xe9,'k0U$')]){if(IilIil[IiIl(0xed,'sVck')](IilIil[IiIl(0xb1,'gzv)')],IilIil[IiIl(0x120,'c6ik')])){iiilli='🚫\x20'+l1l11l+IiIl(0x137,'sVck')+l11i1I['error'],Iiil1++;continue;}else iIIl1i[IiIl(0xdd,'WBhl')](I1lllI),ill111&&(Ii1iIl[IiIl(0x12a,'vHLj')]=!![],iliIIi[IiIl(0xf3,'PjC%')]&&li1Il['message'][IiIl(0x107,'v5pu')](li1Ii));}if(!l11i1I?.[IiIl(0x9c,'^HaM')]){if(IilIil[IiIl(0xbb,'K$jc')](IilIil[IiIl(0xd8,'(P3L')],IilIil[IiIl(0x12f,'Dp1w')])){iiilli='🚫\x20'+l1l11l+'\x20请求失败\x20➜\x20无响应数据',Iiil1++;continue;}else i1ilii[IiIl(0x9e,'Nr@f')](IiIl(0xc1,'*hd[')+iIIII1+'\x20请求响应\x20'+(i1l1ll['message']||I1iIiI));}IilIil[IiIl(0x89,'iuWu')](handleResponse,l1l11l,l11i1I['data']),l1iIIl=![];break;}}IilIil[IiIl(0xae,'tuE@')](Iiil1,iIli1I)&&(IilIil[IiIl(0xef,'k0U$')](IilIil[IiIl(0xa0,'v5pu')],IilIil['wESen'])?I1iIil[IiIl(0xc8,'w#94')](lI1Iil['msg']):(console[IiIl(0xeb,'iuWu')](iiilli),l1iIIl&&($[IiIl(0x136,'Cn7o')]=!![],$['message']&&$['message'][IiIl(0xf8,'o[)A')](iiilli))));}async function getAuthorCodeList(illIlI){const IiIi=liIl1,liIiI={'IXPNC':IiIi(0xa1,'L*%$')},l1il1I=await common[IiIi(0xd3,'$k$0')]({'url':illIlI,'method':'GET','headers':{'User-Agent':liIiI[IiIi(0xb8,'Nr@f')]},'proxy':null,'debug':![],'timeout':0x7530}),Iiili=l1il1I[IiIi(0x9b,'$k$0')];return Iiili;}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) }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。