mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
16 lines
37 KiB
JavaScript
16 lines
37 KiB
JavaScript
/*
|
||
小程序天天领红包
|
||
|
||
入口:微信小程序-京东购物-超级省
|
||
|
||
jd_wechat_ttlzq_exchange //兑换红包,默认不兑换,true开启,false关闭,默认兑换最高奖励
|
||
|
||
定时随机
|
||
|
||
*/
|
||
|
||
const $ = new Env('天天领红包小程序版')
|
||
var iil='jsjiami.com.v7';const iiilll=iii1II;function Iii11l(){const l1iIIi=(function(){return[...[iil,'GDLjSnsQudjCiXFaUpmdqi.qcMoyNYmbX.SRyvh7==','vgrbfr4','W6JcKtG0BCo3oIe','W7dcVc0','xSoPW5FdJ8oukSkBsaSmASkuCqaEW7ddKCoeW60','m8kwtrXLW6mMgmk3W7m','W7JdNCoXW5CD','5PYZ5BIk5AYm','5yYg5yA35O6o776N','W5pcNtLuWO5EWO1tWO/dRmoIaG','pmo0WQSQW4ziemk6W6JcOmoEW57cUY0LW7W','t8o+W4tdMa','tSokh8k3vqqBo8kduG','x8oYvKS','55636zoB5BIqW5LbW6G','WQBdPdq','WRRdUd/dH8kFqqi','W6NORBRMSj/LPRxOT5uf4P+7W4G','u8oohSkLwra6','W63cKdKPyq','ku/dJvlcMG','5lMn5yMavW','lCkBWRfggGBdIG','WQtdRcu','W5JdU8oinq','hSo/WRVdRJFdHG','W6hcOcJcLmkV','tSoZt1O','W6hcTdZdRa','sCk9W4mxsW','W5ZcJMuB','zCkeW5K9rG','W4e0iCoOBaG2','aCo8W6uKl8kWlKpcR8krsCoK','eXBcStO','FG/cMSkIWOtdOSkRW5hcIZaCWOi','W4vRn8kg','cCkDWQr3CSkIWQe/w1G','W6aTW54','W4LdWRxdVtNdRsie','u8opcSkIxW','5OUj5yQg5ysC5O28','rCkSW4SKwqnDja','WQ5yWQKGW7NcNSogpYDsW604qf4OeCkTbtZcOCoSWQy','teldRwXzWOmiW4ZcHxe5W6dcMW','W5jTj8kpWQi','W5ldGxy8vSoiWP0tb8o+','W5RcG8kyW7xdVrtdHG','W5VcHmkdW6xcQW','vCkFWOKNW58','W4FcGGzsWRm','W4rleSk7WPm','W5ZdI8okW7ycCmkvjSoOW6rWW53dJmk8iKH3e8ke','cMG0WOVcJSkPW7OW','CmoVWRqnW7G','WRFcPCkx','kfdcMa7cOCkTW7NcJCkIWPWt','W4uEy8k1vmk7W5W','WP7cPSkLW5NdLvJdNmocgK0GWP00WOdcUtjNyCopidlcLrXzWRNdVLJdO8k+WR4NW53cVCoa','566L5yU65zky5PYV56+U','W5hdV8opj25Pva','WPBdNCokEW','W7GRW43dM8oU','DmoyW7Wcy1JcOrldVCkE','WPRcVCk2','CqNdJ17dHSoWWQxdQmk9WP0nWRrhaq','zCoLWP41W50KW5fFWQdcVCkoW7W','A8kJWQehW44','W77dKZ4RW7mcWO8','W68grmk3Eq','lCkvWOtdJG','nbpcIJqC','WRhdMYDKff3cOW','cCkjyCoMWOXoWQbnWPqMlgVcK8kimGy','ne/cMq','aCoJWRVdGGBdHSkKmSoTW5/dJW','ce7dQNFcIq','W4XQtgy2WRi','zCk7WOaPW45ifW','556Y6zoG5BMr5lQq6lA677235PUa5lUz6ioH5ywo5OYh','WPu3f3GEWO5AhYq','W77cVwzSWObJWPnSW5zkWOeR','zmoWW7ehqa','W6xcTmooWQiJ','tmoeW7CTeCoIW7uzt0JdQSobBW','q8oAW7iQd8oIW7a','n8kDWQ1WDCk3WRmGCxJdSCoAzMqunZe','cSkfACoMWRK','8yMkSM0','fSkfzW','kfxcJv0','wCocW7hdNSoL','W4FdJveHs8opWQCn','kvBcKq','W6tcQMOxxG','W5dcLsXBWRDmWRPzWRFdPa','a8o3W6eMdmkgoK7cMCkCsCk3kq','W5FcMHldJ8k+','cN9H','jCk1le8','5yAX5lIq5lQI6ls354Mz57UV5yYL77Y3','W4FdM3iW','55296zkw5BQF77Yx57Mk56YF5lMZ','nLRcLWNcV8k6W6xcT8kSWPuqWRbFb8kdW70','q8onW7uTf8oKWPi7r0JdGSo8','aSk6c1rIW5hcG8kNyq','C8k9WPSPW44','p3nbWQ1n','ASofBgS','iSkyWOxdM8oE','W4nUqhGwWQD8mq','W5PMsMC'],...(function(){return[...['W7xcKI4eBW','W4tcOXxcRCkh','xKH7gsG','W7VLPzlLI6ldMCoN','W4hdH3u0s8ocWOClgSo+','cXu9WOW','6Ak85y2C5lUe5yQEFW','W5/cLwKyy8k8','g8oRWRZdNW','n8kdBSoHWPLCWQbpWQWBiM/cK8kUhHxdOmo8yG','5yAJ5O+E5AEO5zoB5yQV6ikW77Y6','W6rPBeOw','56Ye5yUA5OIq5yIxW7C','556x6zgK5BMu','WOZdLmoCW5BcRGRdNeRdMW','s8kmW5KqxG','lq/cTSk6ya','e15uWRzC','W4xcGM0BA8kRpSoyW5uSE8klmeyPWPi','Er3cNmouWOO','BbBcLmoIWQdcOSkNW5O','W4NcGdTxWPnB','ACk1WOiG','W5tcLJGRASoY','WR3dPqlcRSkdzMpdTCkeemo2W4G9uCkCwW','5AY15OQ15lMs5yILioA1J+IKQEAnOowSGEwhSUwpUSoN5AAt6lE0FqyJ','xmk0W4mE','W7RcUJi','WQxdIJ4FW4C','iSk/nLjUeSkC','5B+U5yQV5P2u','tSoAoCkXW7ueW6asWOuUmw/cI8ko','jSociIC','W4D0i8kgWQLkWRlcJGBdJWhdKCoW','zmoqW7u7uvJcPrtdOCkdW7G','WPZORA3MS77LPAxOTkOU4P6TioAxIEwrVUw7IEAuGoAmKa','W7tcSZeREG','W6pOR4BMSOxLKOtLUlNdNW','W5lcGhGu','oxK+WQhcOW','W4pcKbZcI8ki','WO1fWQKqW5C','W5dcLtP/WRrB','CmoFa8kpqG','W6BcR8ogWRGIWPe','sSo4jKdcRrbpW6f7WRe','W6VcOshcTCkj','W6VcRcJcQmk6zNNdSmoMeSoWWQu2x8kFdSk5W6uGDWDd','W4TUAeuP','W7tcTSoiWRK5WPy','W4RdKCoBW60vz8kiaCoI','WOFcUSo4o2jVwg4uW5K5xH0EW6BcGq','WRddIIjjd0RcLSoTWRr+mfq','tvVcQgFdNYRdJsFdJCkXW6D0Ca','W43dJmoDW6GE','umoRW4hdICoI','ESoPWPG','WP7dK8oz','556Y6zct5BId5ysq6lAk776Q5yYM5ys75OYv5zED5zgT','W50Pb8oqxW','W7JcVSouWR82WOuG','kHlcSmk/A8kmW4VcKSkJ','kSkBWPtdIG','WRNdVYe1W5W2WPvpW7y','W7lcPdxcQG','W4RcH8kfW4K','eML2WPa','lGFcQ8kI','W5dcTJj4WPW','cmkrWRr4u8kYWOeMqv7dVmop','WOldK8oxDeq','wmk5W6WlrWW','lSk3kLrHaq','W4ZcMZK','W4BcLJfIWRK','W5ZcHvmct8k7jCoqW4yDySkAmKGrWQLzo8o7WOFcTmkPt8kF','nSkcWQ5Fce/cSXFdSmkFW7e','DCkHWOeaW4vn','d8opW7WtfW','pehcILq','44kT5OYY56wN44gx6k+u5yEE6i+G5y6sd8k+kSoVtGe','WQtdPdpdRCkKrbtcG8olqJ/cRmoElJS6ifbAtcuj','W7lcTZpcPa','ereNWOVcM0NdRW','r8kgW5OADW','nqNcPq','WRBcO8kEwCkwWQBcTmkNWP7dOCkhWRPGvmkAW5mpW7irWO3dPCkzx8keW4D5W4ZdPCklDW','cCkECSoHWQnAWRPcWOO','E8oVWPeYW50KW5fFWRpcVmkFW4VcTNLPW5JcHehcR8ovWOdcPa','WR9WiwRcMaq','W77cPwq','uSoecG','W6D9n8kaWO8','ASkXWPW2W4Poha','W5vXmmkaWQjDWOi','FCkSWP3dMmoqW5VdSG','eN9aWPXNBt4','W7NcTmoa','W4NdLmoUf0W','pmk5je9obSkkECowW6hcGqnWWR1pW4i','W7dcGYFcLCkO','nmoBWOpdKJi','DmofW6KfxKVcQqddSq','W6TTpCkkWPnpWOlcIJFdQaFdNSoQWQVdNMpcIa','W7TjBLq9','iSoxor8kjW4','eSoRW6OX','u8oTmuZcIqC','d1ldVfJcGZlcMa','n1xcINpcSalcGq','C8oiW6Sj','nCkqtt0/W74g','WQtdQc7dT8krqGi'],...(function(){return['772W6z206kEv','FG/cG8oGWOdcR8kGW4hdJdWDW4btyGdcKSk+WRSEFW7cIWVdNSozbSoDWOmuWRuXWPJcOa','W4VdU8ovia','fKO9WPtcMq','pSkAxG','tSkEW50CBW','W6GRFxxcMXVcMgGn','n8objaSa','oCoVWQtdGdS','s0FdQgTyWO8iW6VcKemUW7JcHG','W55Yqva3WQj0','WRxcVCk/W53dGWZcH8oal0q5W5y','WOpdOWq7W5u','W43cKs1jWRTyWPS','W4BcLh8D','W4LlWQpdIXRdRtGBW4XLmvvPWOiXWO3cH8kKWO/cOmkUW43cL8ocWQjmW40ijem','WP/dOWavW4q','56YH5yIR5OMb5yMMW7RdQoERREAXGq','er06WPhcRK/dUCkMmCkeWOW+d8k3W6ddNsKHWQOpxbe','WOddMCojE0iPyvBdTG7dQCkL','w8k4W5e4qqzr','qUAjR+wjRa','W5ddTCoB','gCkRASoJWR0','CHRcGmo/WOJcQ8kK','WQ1GpxS','W6K6W5RdN8oQWOHwWRJdMCoasJVdICkEW7lcHq','W4aYmCoZsaGXWR17CqJcOmk4n8oSbq','eUwNQ+I1ObSVvq','W6jSiCkPWRC','W43cNtbtWO5EWO1tWPZdRCoZnCkJW53dHdVdO8kOrmojWRBdJW','5yEW5yY477695B2I5l625BoT56Mo5BMaW7hKURtKUOZOTiFNIPZdH+I0GEE4MEEFQa','w8kUW5ivBXfhoxFcKCkVltBcJxJcVW','kK3dMNJcUa','dWa1WOZcJ10','W7lcVdBcPa','WRv2kG','W6aGEYRdI0tcPhuXWO/dMCkH','W47cJtryWRy','mKhcLXFcJSkwW6xcVCkUWPuyW6Gaq8o7WQdcT8kegeD9shpdG8oqhCoFs8kLW4lcOMm','W580pSo6Frm','rmkIW5q','imkaWPxdGSoyW6W','BSk6WOSGW5m','W7xcLJf6c2ZcHSoxWRzFBgtdOHNdOuVcJ8kXkNRdLLrwWPnmW4dcTW','tSokcCktvHm','WOJdISophhX5Fq','W4ddL2awvSocWQW','WPVdImoBD3KP','feJdQKtcJZ7cNdxcLSkOWR8','tCoHnvhcSdX4W6nQWR43WR0','dSkPjKTL','W5RcJMS','naFcUSkjCSkkW4VcGa','D8kHWPWT','FKb6eJ3cLCoIa1FcIG','W4H1uxWQ','d0tdV3xcRsxcJJlcN8kJWR5TlmkhkCkh','WQddUtJdQCk5qq','pComlbyrjG','W47cK8koW77cPWpdLW','smoZW4BdLmodpCkgBWe','DuPP','bmoVWRtdJZZdKmk4','WPFdNdbAm0/cUSoL','WPldMGuLW5K','W5rGWQhdOaG','W6xcTJtdTSkSnqRcLmk5fa7dVh3dUCk+WOu','dXCXWPBcNW','W7xdPCkfrmkRWQVcTmoJWPpdO8kaWQTivCkKW4KeW70sWQldTCk2q8kBW7X6W4i','WQtdPdpdRCkKrbtcG8olwJlcHSoyoXaSjLrRqYuj','W5ZcISolWQeo','W5RdHmoDW6Ct','tSoEhSk+','BXdcMSoIWP0','W5G9jCoPrG','p0xcINNcSWtcJZPcCCo9WQSvhW','oh4LWRhdTCk7W6m','W53dUCoipwbGzxLzW5y','WQhdGdfn','WOzKWP0dW4S','5AY65OUX5lU35yUuCEA2L+IMHEAoTUwSQoweP+wpTCkZ5OMo5yQT772S6i2b5B6RECk4','hCk8WPL8wq','eb7cSJy8W5PoW5lcRLa5W6VcJ24IWQtcTt9cWQTxwG','WRfuWRaOW5/cM8o0orDpW6ep','WPuxW7ZcKx/cTh4fW6Dto0nx','W43cGY8NtSoLeYu4WRa','W7xcSsFcTCkBDa','FCkLW6aYwa','cq7cRdO','W57dN8oaW7rximkfaSo9W7T4W47dH8o9z0rX','d1C7WRVcJa','n8okaaus','nmonkceAja5wWPr5W5tcVcfiDIFdTatdTa','W5L+u3y','e351WPbRsZvAW7RdT8oy','drBcRJ4fW4H5W5JcHue','WQ11WQuAW7u','dxvJWOuYAtzCW6FdUW','W7vcs2KC','WRfTow7cJKZdMsORWONdU8kqv8oHW7/dSCoMW5m/WPXOiLRdTxSQmglcMmolyhmgwWFdUdBcVJm+W7upnCoWWQRdHmkoW5j/WPtcLcudvCklC385W604qwOcsW','WRr8pM3cNbhcKW','WQldQctdTW','l3q4WPFcTa','A8ouW7ulreq','W6uSW53dKSoZ','W5/dR8oojMPGruriW4O','5yE35O2M5Asf5zcI5yMy6iot5yAc6zsm772K5lQ25ys15O+D','b8kDxSoVcKnVhCkgFqyCWOK','DCo0WPO6W70G','oGNcRmkWBmkm'];}())];}())];}());Iii11l=function(){return l1iIIi;};return Iii11l();};(function(IiiIii,IIlll,liliI,ll1lI,l1iii,IIlli,l1iil){return IiiIii=IiiIii>>0x6,IIlli='hs',l1iil='hs',function(ii1l1,lIIill,I11iIi,I1ilII,I11iIl){const l1iIIl=iii1II;I1ilII='tfi',IIlli=I1ilII+IIlli,I11iIl='up',l1iil+=I11iIl,IIlli=I11iIi(IIlli),l1iil=I11iIi(l1iil),I11iIi=0x0;const l1l11l=ii1l1();while(!![]&&--ll1lI+lIIill){try{I1ilII=parseInt(l1iIIl(0x1ec,'exH9'))/0x1*(-parseInt(l1iIIl(0x1f9,'exH9'))/0x2)+-parseInt(l1iIIl(0x2de,'2%hk'))/0x3+-parseInt(l1iIIl(0x2b7,'6Pzr'))/0x4*(-parseInt(l1iIIl(0x292,'*4J['))/0x5)+-parseInt(l1iIIl(0x1f8,'iqqP'))/0x6*(parseInt(l1iIIl(0x264,'cD6Z'))/0x7)+-parseInt(l1iIIl(0x1a6,'#pKG'))/0x8+-parseInt(l1iIIl(0x210,'X46g'))/0x9*(parseInt(l1iIIl(0x226,'MX#j'))/0xa)+parseInt(l1iIIl(0x1e9,'W^gZ'))/0xb;}catch(IilIil){I1ilII=I11iIi;}finally{I11iIl=l1l11l[IIlli]();if(IiiIii<=ll1lI)I11iIi?l1iii?I1ilII=I11iIl:l1iii=I11iIl:I11iIi=I11iIl;else{if(I11iIi==l1iii['replace'](/[NSdXUunCQqGDhyFRLYpMb=]/g,'')){if(I1ilII===lIIill){l1l11l['un'+IIlli](I11iIl);break;}l1l11l[l1iil](I11iIl);}}}}}(liliI,IIlll,function(l1iIi,l1l11i,l1iIl,illIll,iIli1I,Iiil1,iiilli){return l1l11i='\x73\x70\x6c\x69\x74',l1iIi=arguments[0x0],l1iIi=l1iIi[l1l11i](''),l1iIl=`\x72\x65\x76\x65\x72\x73\x65`,l1iIi=l1iIi[l1iIl]('\x76'),illIll=`\x6a\x6f\x69\x6e`,(0x16a749,l1iIi[illIll](''));});}(0x3200,0xad105,Iii11l,0xca),Iii11l)&&(iil=Iii11l);const notify=require(iiilll(0x2ce,'vrZO')),jdCookie=require('./jdCookie'),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H'),exchange=process['env'][iiilll(0x263,'zkdn')]===iiilll(0x26a,'8F5b'),isNotify=![],appId='60d61',appid=iiilll(0x2ba,'^rLn'),client=iiilll(0x1c5,'u^Ej'),clientVersion=iiilll(0x1fd,'X46g'),Referer=iiilll(0x2ed,'S(kJ'),TASK_GET=0x1,TASK_COMP=0x0;let waitTimes=0x7d0,cookie='';function iii1II(_0x391382,_0x509972){const _0x3ca124=Iii11l();return iii1II=function(_0x2b12fd,_0x4e513e){_0x2b12fd=_0x2b12fd-0x1a2;let _0x24bfd2=_0x3ca124[_0x2b12fd];if(iii1II['MLobAx']===undefined){var _0x49389d=function(_0x2243c9){const _0x4059c3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1786df='',_0x454578='';for(let _0x75a218=0x0,_0x39ed30,_0x3364cb,_0x2262b3=0x0;_0x3364cb=_0x2243c9['charAt'](_0x2262b3++);~_0x3364cb&&(_0x39ed30=_0x75a218%0x4?_0x39ed30*0x40+_0x3364cb:_0x3364cb,_0x75a218++%0x4)?_0x1786df+=String['fromCharCode'](0xff&_0x39ed30>>(-0x2*_0x75a218&0x6)):0x0){_0x3364cb=_0x4059c3['indexOf'](_0x3364cb);}for(let _0x3b7468=0x0,_0x48507a=_0x1786df['length'];_0x3b7468<_0x48507a;_0x3b7468++){_0x454578+='%'+('00'+_0x1786df['charCodeAt'](_0x3b7468)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x454578);};const _0x52878f=function(_0x5bb60e,_0x5bcfbf){let _0x12f132=[],_0x5a82b2=0x0,_0x5a9919,_0x5dd146='';_0x5bb60e=_0x49389d(_0x5bb60e);let _0x4cf8b7;for(_0x4cf8b7=0x0;_0x4cf8b7<0x100;_0x4cf8b7++){_0x12f132[_0x4cf8b7]=_0x4cf8b7;}for(_0x4cf8b7=0x0;_0x4cf8b7<0x100;_0x4cf8b7++){_0x5a82b2=(_0x5a82b2+_0x12f132[_0x4cf8b7]+_0x5bcfbf['charCodeAt'](_0x4cf8b7%_0x5bcfbf['length']))%0x100,_0x5a9919=_0x12f132[_0x4cf8b7],_0x12f132[_0x4cf8b7]=_0x12f132[_0x5a82b2],_0x12f132[_0x5a82b2]=_0x5a9919;}_0x4cf8b7=0x0,_0x5a82b2=0x0;for(let _0x4930f0=0x0;_0x4930f0<_0x5bb60e['length'];_0x4930f0++){_0x4cf8b7=(_0x4cf8b7+0x1)%0x100,_0x5a82b2=(_0x5a82b2+_0x12f132[_0x4cf8b7])%0x100,_0x5a9919=_0x12f132[_0x4cf8b7],_0x12f132[_0x4cf8b7]=_0x12f132[_0x5a82b2],_0x12f132[_0x5a82b2]=_0x5a9919,_0x5dd146+=String['fromCharCode'](_0x5bb60e['charCodeAt'](_0x4930f0)^_0x12f132[(_0x12f132[_0x4cf8b7]+_0x12f132[_0x5a82b2])%0x100]);}return _0x5dd146;};iii1II['ufwsFH']=_0x52878f,_0x391382=arguments,iii1II['MLobAx']=!![];}const _0x45fc74=_0x3ca124[0x0],_0x14d22b=_0x2b12fd+_0x45fc74,_0x222427=_0x391382[_0x14d22b];return!_0x222427?(iii1II['YaytND']===undefined&&(iii1II['YaytND']=!![]),_0x24bfd2=iii1II['ufwsFH'](_0x24bfd2,_0x4e513e),_0x391382[_0x14d22b]=_0x24bfd2):_0x24bfd2=_0x222427,_0x24bfd2;},iii1II(_0x391382,_0x509972);}const cookiesArr=Object[iiilll(0x2ef,'hjbQ')](jdCookie)['map'](ill11I=>jdCookie[ill11I])[iiilll(0x271,'S(kJ')](Iliiil=>Iliiil);!cookiesArr[0x0]&&($['msg']($[iiilll(0x1ca,'*4J[')],iiilll(0x268,'*krm')),process[iiilll(0x1b5,'TfgV')](0x1));!(async()=>{const lI11Il=iiilll,li1Il={'KMawO':function(li1Ii,Iliiii){return li1Ii(Iliiii);},'VjDcT':lI11Il(0x25f,'u^Ej'),'HpsBL':function(i1illI){return i1illI();},'yrJcY':function(i1IIl,I1lll1){return i1IIl+I1lll1;},'eftIv':function(i1IIi,IIII1I){return i1IIi*IIII1I;}};console['log'](lI11Il(0x2a8,'NzlG')),console[lI11Il(0x29f,'6Pzr')](lI11Il(0x222,'XO[Z')+(exchange?'开启':'关闭')),notify[lI11Il(0x1a8,'3aFs')]({'title':$[lI11Il(0x22e,'5eBP')]});for(let Iii111=0x0;Iii111<cookiesArr[lI11Il(0x1a2,'cD6Z')];Iii111++){$['index']=Iii111+0x1,cookie=cookiesArr[Iii111],common['setCookie'](cookie),$[lI11Il(0x2c9,'CaK1')]=li1Il['KMawO'](decodeURIComponent,common['getCookieValue'](cookie,li1Il[lI11Il(0x2aa,'^rLn')])),$['UA']=common[lI11Il(0x1c2,'8F5b')]($[lI11Il(0x1dd,'E[z[')]),$['message']=notify[lI11Il(0x1a7,'[28V')]($[lI11Il(0x1a3,'P*#*')],$['UserName']),$['nickName']='',console[lI11Il(0x1df,'vrZO')]('\x0a******开始【京东账号'+$[lI11Il(0x2b4,'5eBP')]+'】'+($[lI11Il(0x216,'iqqP')]||$[lI11Il(0x1aa,'*krm')])+lI11Il(0x1be,'cD6Z')),await li1Il[lI11Il(0x218,'*krm')](Main),common[lI11Il(0x2e8,'kfeI')]();if($[lI11Il(0x1c1,'vLG6')])break;await $['wait'](parseInt(li1Il['yrJcY'](li1Il['eftIv'](waitTimes,0x1),0x64),0xa));}isNotify&¬ify[lI11Il(0x2c0,'Z@Oj')]()&&(notify[lI11Il(0x239,'68bl')]('\x0a'),await notify[lI11Il(0x297,'zkdn')]());})()[iiilll(0x2d1,'TjTV')](l1l1II=>$[iiilll(0x2c4,'7&5@')](l1l1II))['finally'](()=>$[iiilll(0x282,'Au25')]());async function Main(){const lIII1i=iiilll,Iil1I1={'BfSli':lIII1i(0x1af,'fHL!'),'IhWgg':function(Ii1iII,l1i11I){return Ii1iII>l1i11I;},'uNRCC':function(II11II,Ii1iI1){return II11II===Ii1iI1;},'bOAXT':lIII1i(0x1f6,'5eBP'),'yKxGH':function(lilIli,Iliili){return lilIli(Iliili);},'XQVyk':'miniTask_hbChannelPage','cWFGD':function(Iliill,IIII11){return Iliill/IIII11;},'wMzll':function(i1illi,i1illl){return i1illi>=i1illl;},'oKiaY':'miniTask_pointExchange','IQlmY':function(I1llil,I1llii,lilIll){return I1llil(I1llii,lilIll);},'RKfbt':function(l1i111,iliII1){return l1i111+iliII1;},'fiKVq':function(II11I1,Iii11I){return II11I1*Iii11I;},'PrdoB':'mini_doSign','VNMGe':function(Iil1II,iIIl1I){return Iil1II===iIIl1I;},'IdVkt':function(I1iIli,lI1Ill){return I1iIli*lI1Ill;},'cAjkp':'MiniTask_ScanTask','HYOlt':function(lI1Ili,IliilI){return lI1Ili+IliilI;},'nDbSX':function(i1II1,iIIl11){return i1II1==iIIl11;},'AOGWS':'miniTask_getDrainageTaskReward','gHZex':function(l1l1I1,I1iIll,I1lliI){return l1l1I1(I1iIll,I1lliI);},'YbLDO':function(llIllI,I1ilI1){return llIllI+I1ilI1;},'DTXGr':function(iillll,lIIilI,II1li1){return iillll(lIIilI,II1li1);},'oAmCu':function(l1lIlI,IiiIl1){return l1lIlI+IiiIl1;},'lwNBe':function(lIIil1,IIli1){return lIIil1+IIli1;},'zUZyW':function(II1liI,IlI1i1){return II1liI*IlI1i1;},'YcGXR':function(l1lIl1,IiiIlI){return l1lIl1(IiiIlI);}};$[lIII1i(0x23a,'cD6Z')]=!![];try{const Iilli1=await common[lIII1i(0x2d5,'dLi9')](cookie);if(!Iilli1&&Iil1I1[lIII1i(0x229,'kfeI')](typeof Iilli1,Iil1I1[lIII1i(0x1db,'68bl')])){console['log']('账号无效');return;}$[lIII1i(0x1f0,'CaK1')]=lIII1i(0x2b0,'W^gZ'),$['miniTask_hbChannelPage']='',await Iil1I1['yKxGH'](sendRequest,Iil1I1[lIII1i(0x27d,'vLG6')]);if($[lIII1i(0x247,'8F5b')]){const I1l1Il=$[lIII1i(0x2a7,'8#IW')]?.[lIII1i(0x25e,'XO[Z')]||0x0,llIll1=$['miniTask_hbChannelPage']?.[lIII1i(0x2a3,'P*#*')]||[],Illl1l=I1l1Il?Iil1I1['cWFGD'](I1l1Il,0x3e8):0x0;console[lIII1i(0x205,'W^gZ')](lIII1i(0x236,'*krm')+I1l1Il+lIII1i(0x20e,'^rLn')+Illl1l[lIII1i(0x278,'kfeI')](0x2)+'元');let Illl1i=0x0,lIIiil;llIll1['forEach'](IiiIli=>{const l11i11=lIII1i;let iillli=IiiIli[l11i11(0x244,'NzlG')]==0x0?Iil1I1[l11i11(0x219,'8F5b')]:'无库存';console[l11i11(0x1e8,'EinJ')](IiiIli[l11i11(0x21c,'mm%h')][l11i11(0x2b6,'#pKG')](0xa)+'\x20|\x20需'+IiiIli[l11i11(0x1fb,'NzlG')][l11i11(0x204,'mm%h')]()[l11i11(0x242,'8#IW')](0x5)+l11i11(0x1b6,'aqjp')+iillli),Iil1I1[l11i11(0x295,'exH9')](IiiIli['point'],Illl1i)&&Iil1I1['uNRCC'](IiiIli['status'],0x0)&&(Illl1i=IiiIli[l11i11(0x2d3,'2WKi')],lIIiil=IiiIli);});lIIiil&&Iil1I1['wMzll'](I1l1Il,lIIiil[lIII1i(0x2f0,'E[z[')])?(console['log'](lIII1i(0x252,'mm%h')),exchange?(console[lIII1i(0x2bd,'zkdn')](lIII1i(0x1b0,'MX#j')+lIIiil['rewardName']+lIII1i(0x289,'arIE')+lIIiil[lIII1i(0x1ff,'u$ky')]+'省钱币'),$[lIII1i(0x2e6,'7&5@')]=lIIiil[lIII1i(0x1dc,'TjTV')],await sendRequest(Iil1I1[lIII1i(0x26c,'u^Ej')]),await $[lIII1i(0x220,'vLG6')](Iil1I1['IQlmY'](parseInt,Iil1I1['RKfbt'](Iil1I1[lIII1i(0x1de,'[28V')](waitTimes,0x1),0x3e8),0xa))):console[lIII1i(0x26d,'3aFs')](lIII1i(0x1a5,'68bl'))):console[lIII1i(0x1ce,'P*#*')](lIII1i(0x1f7,'*H6n'));let l1lIii=$['miniTask_hbChannelPage']?.[lIII1i(0x22c,'2WKi')];$[lIII1i(0x1e1,'aqjp')]=lIII1i(0x2bb,'fHL!')+($[lIII1i(0x2a7,'8#IW')]?.[lIII1i(0x208,'Au25')]||0x458)+lIII1i(0x230,'8F5b');for(let I1l1Ii of l1lIii?.[lIII1i(0x1b1,'8#IW')]||[]){if(I1l1Ii[lIII1i(0x1a4,'6Pzr')]){console[lIII1i(0x28d,'UDC!')](lIII1i(0x1e3,'vrZO')+l1lIii['signDays']+'天,'+(I1l1Ii[lIII1i(0x1e7,'cD6Z')]?'已':'未')+'签到');!I1l1Ii[lIII1i(0x1cd,'X46g')]&&($[lIII1i(0x22d,'8#IW')]=I1l1Ii['itemId'],$[lIII1i(0x1f5,'iqqP')]=I1l1Ii['amount']||0x0,$[lIII1i(0x24c,'CaK1')]=I1l1Ii[lIII1i(0x25d,'X46g')]||0x0,await sendRequest(Iil1I1[lIII1i(0x1bb,'*krm')]),await $['wait'](Iil1I1[lIII1i(0x23c,'*krm')](parseInt,Iil1I1[lIII1i(0x1d9,'5eBP')](waitTimes*0x1,0x1f4),0xa)));break;}}let I11iI1=0x0,l1lIil=[];for(let I1i11i of $[lIII1i(0x29b,'arIE')]?.[lIII1i(0x1ea,'[28V')]||[]){if(Iil1I1[lIII1i(0x27a,'6Pzr')](I1i11i[lIII1i(0x2a2,'S(kJ')],'3'))continue;if(Iil1I1[lIII1i(0x280,'iqqP')](I1i11i?.[lIII1i(0x2e0,'8F5b')],0x0)){if(I1i11i[lIII1i(0x25a,'kfeI')]=='6'){$[lIII1i(0x281,'7&5@')]=lIII1i(0x1c9,'Au25')+(I1i11i?.[lIII1i(0x2cd,'arIE')]||0x3fb)+lIII1i(0x24b,'6Pzr'),await Iil1I1[lIII1i(0x266,'Au25')](sendRequest,Iil1I1[lIII1i(0x2ca,'exH9')]),await $['wait'](parseInt(Iil1I1[lIII1i(0x248,'iqqP')](waitTimes,0x1)+0x1f4,0xa)),$['scanAssignmentId']=I1i11i[lIII1i(0x1f1,'u$ky')],await sendRequest('miniTask_getDrainageTaskReward'),await $[lIII1i(0x217,'iqqP')](Iil1I1[lIII1i(0x2d0,'NzlG')](parseInt,Iil1I1[lIII1i(0x206,'zkdn')](Iil1I1[lIII1i(0x1ef,'*4J[')](waitTimes,0x1),0x3e8),0xa));continue;}l1lIil['push'](I1i11i),$[lIII1i(0x1cf,'2%hk')]=Math[lIII1i(0x1bf,'hjbQ')](I11iI1,I1i11i['times']||0x0),$['actionType']=TASK_GET,$[lIII1i(0x22a,'zkdn')]=I1i11i[lIII1i(0x2a4,'*H6n')],$[lIII1i(0x2b9,'XO[Z')]=I1i11i['itemId'],$[lIII1i(0x2ac,'8F5b')]=I1i11i[lIII1i(0x20d,'mm%h')],$['title']=I1i11i['title'],await Iil1I1['yKxGH'](sendRequest,Iil1I1[lIII1i(0x227,'u^Ej')]),await $[lIII1i(0x25b,'3aFs')](Iil1I1[lIII1i(0x28c,'E[z[')](parseInt,Iil1I1['HYOlt'](waitTimes*0x1,0x3e8),0xa));}else{if(I1i11i?.[lIII1i(0x2ab,'arIE')]===0x1){if(Iil1I1[lIII1i(0x2ea,'lp0!')](I1i11i[lIII1i(0x2e7,'iqqP')],'6')){$['strList']='wxapp_scene='+(I1i11i?.['scene']||0x3fb)+lIII1i(0x1b2,'5eBP'),$[lIII1i(0x27b,'E^[w')]=I1i11i[lIII1i(0x22a,'zkdn')],await sendRequest(Iil1I1[lIII1i(0x209,'ykob')]);continue;}$['actionType']=TASK_COMP,$['scanAssignmentId']=I1i11i[lIII1i(0x2a9,'u^Ej')],$[lIII1i(0x283,'fHL!')]=I1i11i[lIII1i(0x2b3,'u7RE')],$[lIII1i(0x2e2,'*4J[')]=I1i11i['type'],$[lIII1i(0x1f4,'^rLn')]=I1i11i['title'],await Iil1I1['yKxGH'](sendRequest,Iil1I1[lIII1i(0x1fa,'cD6Z')]),await $[lIII1i(0x28b,'6Pzr')](Iil1I1[lIII1i(0x2db,'X46g')](parseInt,Iil1I1['YbLDO'](Iil1I1[lIII1i(0x2e5,'7&5@')](waitTimes,0x1),0x3e8),0xa));}}}if($[lIII1i(0x2be,'3aFs')]>0x0)await $[lIII1i(0x1c4,'ykob')](Iil1I1['IdVkt']($[lIII1i(0x1d2,'u^Ej')],0x3e8));await $[lIII1i(0x238,'7&5@')](Iil1I1['DTXGr'](parseInt,Iil1I1[lIII1i(0x234,'exH9')](waitTimes*0x1,0x3e8),0xa));for(let I1i11l of l1lIil){const llIlii=lIII1i(0x24d,'^rLn')['split']('|');let llIlil=0x0;while(!![]){switch(llIlii[llIlil++]){case'0':$['type']=I1i11l[lIII1i(0x1b3,'aTu&')];continue;case'1':$[lIII1i(0x1d6,'mm%h')]=TASK_COMP;continue;case'2':await $[lIII1i(0x259,'MX#j')](parseInt(Iil1I1[lIII1i(0x1eb,'5eBP')](Iil1I1['zUZyW'](waitTimes,0x1),0x3e8),0xa));continue;case'3':$[lIII1i(0x21f,'zkdn')]=I1i11l[lIII1i(0x2c3,'hjbQ')];continue;case'4':await Iil1I1[lIII1i(0x213,'kfeI')](sendRequest,Iil1I1[lIII1i(0x2a0,'u$ky')]);continue;case'5':$[lIII1i(0x1e6,'P*#*')]=I1i11l[lIII1i(0x24e,'TjTV')];continue;case'6':$['scanAssignmentId']=I1i11l['scanAssignmentId'];continue;}break;}}}}catch(IIlil){console['log']('❌\x20脚本运行遇到了错误\x0a'+IIlil);}}async function handleResponse(ilI1lI,IiiIll){const IilIl1=iiilll,IIlii={'VLNiB':IilIl1(0x270,'[28V'),'klutO':function(IlI1il,IilliI){return IlI1il===IilliI;},'MIjFh':IilIl1(0x1f3,'vLG6'),'Ascjj':function(IlI1ii,lIIiii){return IlI1ii>lIIiii;},'EUZJf':function(iI1lli,ll1iI){return iI1lli===ll1iI;},'AydcH':function(iI1lll,l1lIll){return iI1lll==l1lIll;},'bEEcH':function(I1l1II,IIli1I){return I1l1II==IIli1I;},'AZZlZ':function(I1i11I,llIliI){return I1i11I(llIliI);},'hFMqK':IilIl1(0x221,'u$ky'),'nyjbl':function(I1l1I1,I1i111,ilI1li){return I1l1I1(I1i111,ilI1li);},'ckefi':function(IIliI,ilI1ll){return IIliI+ilI1ll;},'ZLgex':function(Iillii,IlI1iI){return Iillii*IlI1iI;},'PqTTm':function(Iillil,l1lIli){return Iillil===l1lIli;},'InOYN':function(lIIiiI,II1lil){return lIIiiI===II1lil;},'aGjMP':function(IIli1l,II1lii){return IIli1l===II1lii;}};try{switch(ilI1lI){case IIlii['VLNiB']:if(IiiIll?.[IilIl1(0x256,'u7RE')]===0x0&&IIlii[IilIl1(0x24f,'aTu&')](IiiIll?.[IilIl1(0x2c5,'MX#j')],0x0))$['miniTask_hbChannelPage']=IiiIll[IilIl1(0x267,'dLi9')];else IiiIll[IilIl1(0x26b,'arIE')]?console[IilIl1(0x1b7,'exH9')](''+IiiIll[IilIl1(0x288,'hjbQ')]):console[IilIl1(0x233,'ykob')]('❓'+ilI1lI+'\x20'+JSON[IilIl1(0x2c6,'aTu&')](IiiIll));break;case IIlii[IilIl1(0x1c7,'u^Ej')]:if(IiiIll?.[IilIl1(0x2d8,'CaK1')]===0x0&&IIlii[IilIl1(0x2d4,'*H6n')](IiiIll?.[IilIl1(0x284,'^rLn')],0x0)){let ll1i1=[];IIlii['Ascjj']($[IilIl1(0x260,'E^[w')],0x0)&&ll1i1[IilIl1(0x2bf,'5eBP')]($[IilIl1(0x249,'NzlG')]+'红包'),IIlii[IilIl1(0x2bc,'E^[w')]($[IilIl1(0x2dd,'lp0!')],0x0)&&ll1i1[IilIl1(0x2d2,'#pKG')]($[IilIl1(0x29c,'XO[Z')]+'省钱币'),ll1i1[IilIl1(0x2b1,'*H6n')]?console[IilIl1(0x2c7,'Z@Oj')](IilIl1(0x224,'u$ky')+ll1i1[IilIl1(0x20b,'E^[w')]('+\x20')):console['log'](IilIl1(0x29a,'E[z['));}else IiiIll[IilIl1(0x296,'8#IW')]?console[IilIl1(0x2ad,'S(kJ')]('签到失败:\x20\x20'+IiiIll[IilIl1(0x235,'E^[w')]):console[IilIl1(0x273,'#pKG')]('❓'+ilI1lI+'\x20'+JSON[IilIl1(0x27e,'cD6Z')](IiiIll));break;case IilIl1(0x298,'2%hk'):if(IIlii[IilIl1(0x2d9,'lp0!')](IiiIll?.['code'],0x0)&&IIlii['klutO'](IiiIll?.[IilIl1(0x2b8,'mm%h')],0x0))console[IilIl1(0x20a,'kfeI')](IilIl1(0x2da,'zkdn')+IiiIll['data']?.['rewardAmount']+'省钱币');else IiiIll[IilIl1(0x1ba,'#pKG')]?console[IilIl1(0x201,'u$ky')](IilIl1(0x231,'TjTV')+IiiIll['message']):console['log']('❓'+ilI1lI+'\x20'+JSON[IilIl1(0x26f,'u$ky')](IiiIll));break;case IilIl1(0x1fe,'X46g'):let lIIii1=IIlii[IilIl1(0x274,'68bl')]($[IilIl1(0x2d7,'6Pzr')],0x1)?'领取':'完成';if(IiiIll?.['code']===0x0&&IIlii[IilIl1(0x215,'u7RE')](IiiIll?.[IilIl1(0x293,'iqqP')],0x0))console['log'](lIIii1+IilIl1(0x1bd,'zkdn')+$[IilIl1(0x1d5,'68bl')]+IilIl1(0x29e,'2WKi')),IIlii[IilIl1(0x203,'aTu&')]($['actionType'],TASK_COMP)&&(await IIlii['AZZlZ'](sendRequest,IIlii['hFMqK']),await $[IilIl1(0x21d,'arIE')](IIlii[IilIl1(0x2af,'8#IW')](parseInt,IIlii['ckefi'](IIlii['ZLgex'](waitTimes,0x1),0x3e8),0xa)));else IiiIll[IilIl1(0x275,'5eBP')]?console[IilIl1(0x251,'XO[Z')](lIIii1+'任务['+$[IilIl1(0x212,'5eBP')]+IilIl1(0x2a5,'E^[w')+IiiIll[IilIl1(0x254,'NzlG')]):console[IilIl1(0x261,'8#IW')]('❓'+ilI1lI+'\x20'+JSON[IilIl1(0x255,'3aFs')](IiiIll));break;case IIlii['hFMqK']:if(IIlii['PqTTm'](IiiIll?.['code'],0x0)&&IIlii[IilIl1(0x223,'iqqP')](IiiIll?.[IilIl1(0x1b8,'hjbQ')],0x0)){let IIli1i=[];for(let I1iIi1 of IiiIll[IilIl1(0x1e5,'XO[Z')]){let lliil1=I1iIi1[IilIl1(0x232,'u^Ej')]==0x0?IilIl1(0x225,'ykob'):'红包';IIli1i[IilIl1(0x202,'dLi9')](''+I1iIi1['discount']+lliil1);}console['log']('领取任务['+$['title']+IilIl1(0x21b,'68bl')+IIli1i[IilIl1(0x1c6,'zkdn')](','));}else IiiIll[IilIl1(0x2ee,'S(kJ')]?console[IilIl1(0x1f2,'dLi9')](IilIl1(0x21e,'TfgV')+$[IilIl1(0x228,'3aFs')]+']奖励失败:\x20\x20'+IiiIll[IilIl1(0x1e4,'6Pzr')]):console[IilIl1(0x1df,'vrZO')]('❓'+ilI1lI+'\x20'+JSON[IilIl1(0x24a,'TjTV')](IiiIll));break;case IilIl1(0x2cf,'hjbQ'):if(IIlii['aGjMP'](IiiIll?.[IilIl1(0x1cc,'68bl')],0x0)&&IIlii[IilIl1(0x240,'8F5b')](IiiIll?.[IilIl1(0x29d,'u^Ej')],0x0))console[IilIl1(0x26d,'3aFs')](IilIl1(0x1d1,'S(kJ')+IiiIll[IilIl1(0x23e,'zkdn')]['discount']+IilIl1(0x20c,'XO[Z')+IiiIll[IilIl1(0x267,'dLi9')]['successTxt']);else IiiIll['message']?console[IilIl1(0x250,'[28V')](''+IiiIll['message']):console[IilIl1(0x2bd,'zkdn')]('❓'+ilI1lI+'\x20'+JSON[IilIl1(0x257,'exH9')](IiiIll));break;}}catch(IIllI){console[IilIl1(0x279,'NzlG')]('❌\x20未能正确处理\x20'+ilI1lI+IilIl1(0x23d,'lp0!')+(IIllI[IilIl1(0x2a1,'2WKi')]||IIllI));}}async function sendRequest(lliilI){const lIII1l=iiilll,lili1={'MAOJF':lIII1l(0x214,'TfgV'),'pBlBF':lIII1l(0x1d3,'lp0!'),'fboXc':lIII1l(0x272,'exH9'),'UhSIv':lIII1l(0x1e2,'EinJ'),'nxWMV':lIII1l(0x1e0,'W^gZ'),'vFaTF':lIII1l(0x26e,'vrZO'),'AxXSf':lIII1l(0x2b5,'CaK1'),'mdgtg':lIII1l(0x27f,'68bl'),'NtnYz':'MiniTask_ScanReward','gvXhi':lIII1l(0x2dc,'*4J['),'fSngA':'application/json,\x20text/plain,\x20*/*','YlUND':lIII1l(0x2e3,'TjTV'),'XEhzD':'zh-cn','tLyBk':function(IIli11,IllIII){return IIli11+IllIII;},'Ueqkb':function(ii1li,IIll1){return ii1li===IIll1;},'GmuFp':'GET','DhrJp':function(ll1il,IiiIiI){return ll1il<IiiIiI;},'Wsevq':function(lilii,l1iiI,ll1li){return lilii(l1iiI,ll1li);},'PLjBL':function(Illl1I,lliiiI){return Illl1I>=lliiiI;}};if($[lIII1l(0x265,'5eBP')])return;let ll1l1='',IllIIi=null,IllIIl=null,IiiIi1=lili1[lIII1l(0x1a9,'Z@Oj')],l1ii1={},ii1ll={};switch(lliilI){case lili1[lIII1l(0x25c,'8#IW')]:ii1ll={'appId':appId,'functionId':lili1[lIII1l(0x2cb,'2%hk')],'appid':appid,'clientVersion':clientVersion,'client':client,'body':{},'version':lili1[lIII1l(0x1d8,'MX#j')],'ua':$['UA'],'t':!![]},l1ii1=await H5st[lIII1l(0x1d7,'MX#j')](ii1ll),ll1l1=lili1['UhSIv'],IllIIi=l1ii1['paramsData'];break;case lili1[lIII1l(0x253,'*H6n')]:let lilil=$['itemId']||'1';ii1ll={'appId':appId,'functionId':lIII1l(0x269,'hjbQ'),'appid':appid,'clientVersion':clientVersion,'client':client,'body':{'itemId':lilil},'version':lili1[lIII1l(0x290,'7&5@')],'ua':$['UA'],'t':!![]},l1ii1=await H5st[lIII1l(0x287,'UDC!')](ii1ll),ll1l1='https://api.m.jd.com/client.action',IllIIi=l1ii1[lIII1l(0x207,'8#IW')];break;case lili1[lIII1l(0x27c,'8F5b')]:let ll1ll=$[lIII1l(0x20f,'W^gZ')]||lili1[lIII1l(0x1ae,'TjTV')];ii1ll={'appId':appId,'functionId':lili1['vFaTF'],'appid':appid,'clientVersion':clientVersion,'client':client,'body':{'rewardAssignmentId':ll1ll},'version':lili1[lIII1l(0x262,'8#IW')],'ua':$['UA'],'t':!![]},l1ii1=await H5st['getH5st'](ii1ll),ll1l1=lili1['UhSIv'],IllIIi=l1ii1[lIII1l(0x1b4,'#pKG')];break;case lili1[lIII1l(0x246,'8F5b')]:ii1ll={'appId':appId,'functionId':lili1[lIII1l(0x1d0,'#pKG')],'appid':appid,'clientVersion':clientVersion,'client':client,'body':{'actionType':$[lIII1l(0x1ad,'UDC!')],'scanAssignmentId':$[lIII1l(0x2c2,'^rLn')],'itemId':$[lIII1l(0x22f,'*krm')],'type':$[lIII1l(0x1c3,'TfgV')]},'version':lili1['fboXc'],'ua':$['UA'],'t':!![]},l1ii1=await H5st['getH5st'](ii1ll),ll1l1=lili1[lIII1l(0x2e1,'u^Ej')],IllIIi=l1ii1[lIII1l(0x2e9,'*4J[')];break;case lili1[lIII1l(0x243,'#pKG')]:ii1ll={'appId':appId,'functionId':lili1[lIII1l(0x241,'lp0!')],'appid':appid,'clientVersion':clientVersion,'client':client,'body':{'scanAssignmentId':$[lIII1l(0x2cc,'ykob')],'type':$[lIII1l(0x286,'cD6Z')]},'version':lili1[lIII1l(0x23f,'E[z[')],'ua':$['UA'],'t':!![]},l1ii1=await H5st[lIII1l(0x2d6,'E[z[')](ii1ll),ll1l1=lili1[lIII1l(0x1bc,'^rLn')],IllIIi=l1ii1[lIII1l(0x2df,'*krm')];break;case lili1['gvXhi']:ii1ll={'appId':appId,'functionId':lili1[lIII1l(0x1da,'8#IW')],'appid':appid,'clientVersion':clientVersion,'client':client,'body':{'encryptAssignmentId':$[lIII1l(0x1ac,'aTu&')],'source':lIII1l(0x258,'8F5b')},'version':lili1[lIII1l(0x22b,'2WKi')],'ua':$['UA'],'t':!![]},l1ii1=await H5st['getH5st'](ii1ll),ll1l1=lili1[lIII1l(0x299,'exH9')],IllIIi=l1ii1[lIII1l(0x245,'fHL!')];break;default:console[lIII1l(0x28d,'UDC!')]('❌\x20未知请求\x20'+lliilI);return;}const IliI1l={'url':ll1l1,'method':IiiIi1,'headers':{'Accept':lili1[lIII1l(0x28e,'u^Ej')],'Accept-Encoding':lili1[lIII1l(0x1ed,'aqjp')],'Accept-Language':lili1[lIII1l(0x2ec,'iqqP')],'Host':lIII1l(0x1cb,'2WKi'),'Connection':lIII1l(0x2eb,'kfeI'),'Content-Type':lIII1l(0x28a,'2WKi'),'Cookie':lili1['tLyBk'](cookie,'wxapp_scene='+0x3fb+lIII1l(0x1b2,'5eBP')),'Referer':Referer,'User-Agent':$['UA']},'params':IllIIl,'data':IllIIi,'timeout':0x4e20};lili1[lIII1l(0x291,'vLG6')](IiiIi1,lili1[lIII1l(0x21a,'Z@Oj')])&&(delete IliI1l[lIII1l(0x1ee,'u7RE')],delete IliI1l[lIII1l(0x2c8,'vLG6')][lIII1l(0x294,'EinJ')]);const lliiil=0x1;let lliiii=0x0,IliI1i=null,ll1ii=![];while(lili1[lIII1l(0x2a6,'68bl')](lliiii,lliiil)){lliiii>0x0&&await $['wait'](0x3e8);const Illl11=await common[lIII1l(0x1c8,'*H6n')](IliI1l);if(!Illl11[lIII1l(0x276,'68bl')]){IliI1i=lIII1l(0x200,'S(kJ')+lliilI+lIII1l(0x1b9,'hjbQ')+Illl11[lIII1l(0x2c1,'iqqP')],lliiii++;continue;}if(!Illl11?.['data']){IliI1i='🚫\x20'+lliilI+lIII1l(0x23b,'6Pzr'),lliiii++;continue;}lili1['Wsevq'](handleResponse,lliilI,Illl11[lIII1l(0x1c0,'6Pzr')]),ll1ii=![];break;}lili1[lIII1l(0x2e4,'E[z[')](lliiii,lliiil)&&(console[lIII1l(0x2b2,'u^Ej')](IliI1i),ll1ii&&($[lIII1l(0x285,'dLi9')]=!![],$[lIII1l(0x235,'E^[w')]&&$['message'][lIII1l(0x1ab,'ykob')](IliI1i)));}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) }
|