faker3/jd_sign.js
2024-11-12 11:17:55 +08:00

12 lines
30 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
小豆签到
cron: 35 9 * * * jd_sign.js
*/
const $ = new Env('小豆签到')
var version_='jsjiami.com.v7';const Ill11Ili=lI11li1l;(function(iIliIiIl,IiI11i1l,iil1ii,I1ilIIli,l1lIIlll,llllillI,liIIIl11){return iIliIiIl=iIliIiIl>>0x3,llllillI='hs',liIIIl11='hs',function(lIlilIII,ilIIl1I,iII1Il,II1IIi1I,IllIIIil){const I1illil=lI11li1l;II1IIi1I='tfi',llllillI=II1IIi1I+llllillI,IllIIIil='up',liIIIl11+=IllIIIil,llllillI=iII1Il(llllillI),liIIIl11=iII1Il(liIIIl11),iII1Il=0x0;const lIII1ill=lIlilIII();while(!![]&&--I1ilIIli+ilIIl1I){try{II1IIi1I=-parseInt(I1illil(0x21a,'TfX#'))/0x1+-parseInt(I1illil(0x1dd,'Ti7e'))/0x2*(-parseInt(I1illil(0x28e,'s@Cy'))/0x3)+-parseInt(I1illil(0x25f,'RpXr'))/0x4+-parseInt(I1illil(0x1fc,'SnC%'))/0x5*(-parseInt(I1illil(0x1e8,'8a#H'))/0x6)+parseInt(I1illil(0x1fe,'7Hf3'))/0x7*(-parseInt(I1illil(0x21f,'D9dD'))/0x8)+-parseInt(I1illil(0x289,'#ZUu'))/0x9*(parseInt(I1illil(0x2a6,'7Hf3'))/0xa)+parseInt(I1illil(0x292,'s@Cy'))/0xb*(parseInt(I1illil(0x1f3,'Ti7e'))/0xc);}catch(l1lI1I){II1IIi1I=iII1Il;}finally{IllIIIil=lIII1ill[llllillI]();if(iIliIiIl<=I1ilIIli)iII1Il?l1lIIlll?II1IIi1I=IllIIIil:l1lIIlll=IllIIIil:iII1Il=IllIIIil;else{if(iII1Il==l1lIIlll['replace'](/[xNIlwQtFSfeTqCgEHBO=]/g,'')){if(II1IIi1I===ilIIl1I){lIII1ill['un'+llllillI](IllIIIil);break;}lIII1ill[liIIIl11](IllIIIil);}}}}}(iil1ii,IiI11i1l,function(lii1illi,II1ilI,i1iiIi1,II11iI1,l1i1llI,ll1Iill,Iiili1l){return II1ilI='\x73\x70\x6c\x69\x74',lii1illi=arguments[0x0],lii1illi=lii1illi[II1ilI](''),i1iiIi1=`\x72\x65\x76\x65\x72\x73\x65`,lii1illi=lii1illi[i1iiIi1]('\x76'),II11iI1=`\x6a\x6f\x69\x6e`,(0x14304c,lii1illi[II11iI1](''));});}(0x610,0x3b671,iIIlIiIl,0xc4),iIIlIiIl)&&(version_=iIIlIiIl);const ilIi1ill=require(Ill11Ili(0x213,'#ZUu')),li1ll=require('./function/sendJDNotify'),IiIil111=require(Ill11Ili(0x22a,'Zr]C')),i1IIli1l=![];let iIIlil1I='';const iI1liIli=Object[Ill11Ili(0x290,'^]VQ')](ilIi1ill)[Ill11Ili(0x223,'@^#w')](IIiIliiI=>ilIi1ill[IIiIliiI])['filter'](II1il1Il=>II1il1Il);!iI1liIli[0x0]&&($[Ill11Ili(0x2b6,'hJeS')]($[Ill11Ili(0x2bb,'#ZUu')],Ill11Ili(0x1e3,'iHbm')),process[Ill11Ili(0x20c,'s@Cy')](0x1));function iIIlIiIl(){const lii111il=(function(){return[...[version_,'TxqjlQsBjIEiOamSfi.ItcQBoemCTw.QCv7NOHFg==','ASo/khyMWOBdQSkRWQa','t8kjWRGnla','BgpcTIVdRaX/n0mT','k8olW5RcIaW','BMJcSdFcTaL2lq','cSoWW7lcMXRdUWRcVq','WQ1DD8oAlq','WPnSgXFdSq','hCoZWPRcH2FcHam','WOzTWOiZWOi','W71Ccq','F3ndWQ1IWRiq','reVdQshdKG','W7jcWPNcTmo3','lmkkca','qvdcSsVcRW','WO98cbNdQW','WPChWQqSW4ZdQblcVZhdNCohvSo6','sM3dOaRdOCkcpq','dSk5C8kgpeSXFCoP','W4yLk8kgsJJdG2fEWQTwWOTY','eSk3CJP5W4/cISo1W6RcICk8WPDhW48zW5ZcMCkmWRqeW6mZwenqWRaBW6ddP8oHWOdcG1LlDCozCmkfWROfrI3dSmknW53dICk1ArxcPK3dR8oO','k2NdLLrLW4LTcgi','cSkbWOq','hCkRESoH','t3ZdPWNdS8oFDYb+eSkwySkCv8kLW4S+huSZvMCVivTbESo0W7tcKH7dOCoMW6xdLNLPWOZdUCkkWP3dVCoUW4FcKdldLSoek3ldHCo6lCotsIxcKtSKh1BdJhz9W5WFdCoDWR/dN1xdMW','lM/dKZqWW6zjnMbqbW','vY1KW7Go','W5NdU8kGqJNdJxa9WPKA','jmoPWQZcUmoEW58D','gmkKW5/dHGK','W5vuWR/cRmoEWQ8buq','WP9HcWldUq','cCoQW7y','e8o5WOFcGgpcJri','DCoPoa','W7rNW5BdVffEnCkJ','5PEN5zol5BMh5PsR5O6V','aSoQWQRcPSov','CuRdImkLW6a','pSkHxJ7cKSk+','gCk7D8ouDb4y','fmkWW7a','fCkZW5ddTwK','oCk3sGJdMfBcHSkX','oCkeFSkxka','tSoSFSkKcf0Yrq','W6zjWO4','eNhdUCkegtRdQ2Snx8oNf8ocWPddJYddGWi','W5nIua93u8kcW5nVnJBcKCkIW5u','f3xdPmktfdJdJa','eSoxE8o4pdT15B635Ase44k35lM25lQq6lsE5y6t','bCoMWO3cLxlcHIvsW7u+WOZdSCkP','BYH+W4q5','W69SW4ldSvzEhCkJCW','cSoMW5ZdPCkT','W6/ORAhMS5NLP7hOT5CoC8oMW6m','xoISQ+AXHUwqQUw7MG8','WQxcHgRdG8kYaCowAL0','44k15O+M56AT44cf6kYm5yAs6i6r5yYfaSo6W6nnW6uY','WOvrWQq','WPPiiJRdTCksWOqppCkuW61EW5PcW6aNWQW0W4tcGWBcSe7cSmoKWQ7cK8khpxqLWOjX','WPSxyq','iSkVW4xdLrmz','DCkonG','W6vyWP8N','WQ7cRe3dVmkv','W4TxW7PX','ASoBk8kjWOpdLLKIDmkU','fmo4W6pcGZe','imoiy8oIyKSkW6/cPCoD','p8knz8o9WOtdI0aJzSkWWR0+W7NdOG','D3TaWQP6','u8owzCoaWPe'],...(function(){return[...['56+k5yI35Asv6lwP77Yu','WQrUW6L1W7y','44gC5OYe56sk44gQ6kYl5yAs6iY05y6MW4/cSSkzWPKMiG','WOrnWQq','W5WdWRtcLsW','WPtOR7dMSABPHihNVBBLJ77MLPNPLQpOR6xVVAZORQdOGQNNSkZLVRdLJR3OGOpOV5lOOiJLJ5JPPAVVVjtdGgBcGa7cINdcU0/cK3bPWO7cHLi','WOtdLXS','W48jAM/cPmktWOOCoSkqW6G','5lIf5PwZ5BwP566+','kCkrW5hdIeG','WPuqr8o0uG','wv/dMSoaxG','W7K5WPy','WQT3aqi','W4Tscg3dNq','imk7vW','extdPCkbfG','WOddI8kYxu/cMsHZWQ7dIq/cRbzEWQdcHMtdGmo+mmkgg8ofWPxcGCkq','kSooACoQFMSVW5JcJSon','WPaVW5uinf/dQSkyW6NcOq','WOxdPCoOBXpcHhGCW4zwtMdcRSkBoIpdRSo9WQJdSY8nW6ldJv9fWPj1cuJdK2GyWPhdLCotFHrwW4WbW6xcIMBdQsldJG','WQ54W6a','wGLAW70F','f8oKWQq','qIZcNtXYFSol','cmo+WQdcH8kKWRPL','kSkDhCkNha','dSoWW58eccBdMmkRoW','WPr9DSotegW','rCoTnSosEH4jx8oSwLSF','WOubCSo4A8kPWRhcVgS','mSkbWRqehq','dCkOWRqPg8k+WOZdVG','W7njWPe9','56Ye5yIG5AAM6lEf7725','W6LoWPu/W6PHv8oq','W70IWOxcSdpcHCoZr8kGd8kHWQZdJSkaW7lcI20QWPXzjvS4WRO','ggpdRua3','lmo7WPVcL8kp','AxddLJRdKq','pCkQtG','W6/cQ8kLW6a','WO9ftComfq','FYhcINe','nmkTW7/dPcG','W6TLWOlcImoh','DSkCpmk3','W7S7WRawWOrPWO3dLwZdNLjQW6mEW68uWQGmW5ldJbq6W4lcP8kRo2H4WPRcNCkijW','roITRUAZK+wNGEI1SE++KJxcVCk1W4RdTd/cLmoLWQhcMw3cJ8kEWRu','gSogWR3cRCot','WOSzW71WWRJcTuNcUcJdSa','WPtOR7dMSABLJO7MLAG','pmk2tG','WPhdIHhcLgbY','umkIWOeHgY0','amkhWPS','fJJcPIJdPSkWmf5h','D8k7WQtcTSotW55pWOjqW5ZdVa','amoAWQ7cPCow','aSkbWP8/imoeiXu','jd4/rCkk','cmkjmSkDW57dPSoji8oAimoZscu','WQLEjehdGsBdQa','WPpdOSkI','lmoIW7a','5lQn5Psi5O+B55MA6k2N5Rkm5PEv5RoH','WRNdG8kV','i8k4FbpdPG','u2FdUbZdRG','cxNdSmkojZRdMNSarCoQlCoR','WRZcQuBdVCkb','qhpcMYZcKq','W7H/W6BdQMC','W5hcOSkJwtpdI3yDWPjjxdRdPmoHEsVdRCk/WPm','aCkBWPS','g8kzW6pdGeq'],...(function(){return['eCkXW7pdHMG','aCkjrcRdQa','WQpdG8k2ta','WQLujq/dPa','W7rJWOdcKCoN','WPf/pchdPa','WR3dO8o1WOxcNeO','w8oiCComWO3dQCkrlSoAhComwxxcNSoNkmk3nK8jnmkWWPdcRSk/W4/cVxZcSsZcV2yDiqZdMSoBW7FdI8oHW4/cMCk6WPKCWQj0ngNdUXmLW5DLzSkmwW','W7G3WPJcRG','aSoWW6K','c8kRW6xdIN5brZJcIa','W75Lh0ZdJW','WRJdJCk4','W7jsgK3dOq','WQ9KW6a','562F5yI45AA+6lAC77Y+','jI1xW5qBj8owWQ8TxYDTW68BW4Gzs3bpWROUmSkjWPLfamotWRK','nmkhDa','za/dGW','emkRzSo2sa0qW7aIA8oC','WRVcKu/dRSkY','cmoIWQtcISktWQXLfZNdGCoRFrW','qL7cQsVcPW','p8kGqHlcKSk9W6OwW7u','6lwk5yYF5PsC5PsC','W75MW4FdOW','hGmABmkq','yHBdNLz1','8lQfSCor','nSkkubpdHq','WRFdT8kNtwO','A2NcTa','soIVSEAZTEwKP+I1VE+9MmkiW6pOORFPM4pLIBpVV58QqCoIFSkZWQyBkrBdUY/cTg7dUW','gCoNWQ3cGSk5','AMpcOcJcOaP2','WRjwvCoqaW','tuZdUSobra','t1JdLb7dPa','l8kPCCkXiG','y8oWWPRdPZ0Ewmk4oG','p8k9vXxcR8kUW6ieW7NcRG','W6HfWPC3W7P3qq','WQdOR5FMSRtPHj7NV7hLJ4FMLylPLRRORQJVVyVOROFOGlZNSlhLVBRLJjFOGAROV5lOOk3LJj3PPjZVV73dJw3cQCoMWOzqz2BdNsuQWR/cUwm','WRnwWQqfW489bSowlcKxjSkInmkFou0WWOtdJmkaW45zWQddNmkdv2a','e8ovWPpcRfq','dmkfWRecda','W6zoWRtcV8o8WQiv','p8kZASktk0eii8oADwKY','WPLIW7nMW58','WPBdICkVsdS','sCoOWQtcKcmvgbNcPmkjW7/cISoy','6lsU5y6x5Pwe5Pw9','jCoJWRG','E8oIa0RdI8kVW40fW4/cMCkJ','emocW4tdKW','WR/cR27dVa','W6pOR7ZMS4xLPjhOTPj8WOddMxq','rZldR01g','gbCpBmkErbi','oSo4WR7cV8okW4S7i8khca','WPifCSoA','WQ5UW7rtW5y7W5G','WPNcGehdO8k+','W5nIuaf9t8kAW5TTbq','CuFdNmoT','W6/ORAhMS5NLP7hOT5FVVkyCWR3cSexdR8kqW6KLxmo5W6hdMCohqa','WRDKW6XfW5K','4PYnW5NMNyxOGlVMRjZNOipLPPZNKBhcOa','4P67mUACSUEDKoIUJUAXICov','zJhdOd/cPa52BbH+WOBdLCkkDJfdaq8ikMa/dSkTWPGmWPOiW7y1wHbkaeNcNG','WO5fW5DcW7K','5lIV5yId5BsT5A605OIW','WRf0WRSuWR4','8kYzVXa','gZa2xSkS'];}())];}())];}());iIIlIiIl=function(){return lii111il;};return iIIlIiIl();};!(async()=>{const Illii1ll=Ill11Ili,lIi1iil1={'TLQMq':function(Ii1I1iil,l1Ii1lIl){return Ii1I1iil<l1Ii1lIl;},'IcucS':function(lIIlIIiI,l11lii1){return lIIlIIiI(l11lii1);},'IUEUl':'pt_pin','ofPWC':function(iIIlIlil,lIi1i1ii){return iIIlIlil+lIi1i1ii;}};li1ll[Illii1ll(0x1fd,'u5JU')]({'title':$['name']});for(let ilI1il11=0x0;lIi1iil1[Illii1ll(0x21d,'&p*6')](ilI1il11,iI1liIli[Illii1ll(0x217,'SnC%')]);ilI1il11++){$[Illii1ll(0x22d,'RpXr')]=ilI1il11+0x1,iIIlil1I=iI1liIli[ilI1il11],IiIil111[Illii1ll(0x1ff,'hJeS')](iIIlil1I),$['UserName']=lIi1iil1[Illii1ll(0x296,'X]0u')](decodeURIComponent,IiIil111[Illii1ll(0x2a9,'UYrf')](iIIlil1I,lIi1iil1[Illii1ll(0x1e5,'Ef4h')])),$['UA']=IiIil111[Illii1ll(0x1e2,'2N!w')]($['UserName']),$['message']=li1ll['create']($['index'],$[Illii1ll(0x297,'1szc')]),$[Illii1ll(0x27d,'Q%qo')]='',console['log'](Illii1ll(0x2ab,'Ti7e')+$[Illii1ll(0x1e0,'UCae')]+'】'+($[Illii1ll(0x21c,'Y#yh')]||$['UserName'])+Illii1ll(0x1f9,'N#KZ')),await liIiI111(),IiIil111['unsetCookie']();if($[Illii1ll(0x2a0,'iHbm')])break;await $[Illii1ll(0x264,'Kkid')](0x3e8);}i1IIli1l&&li1ll[Illii1ll(0x26c,'UYrf')]()&&(li1ll[Illii1ll(0x2ac,'&GH9')](lIi1iil1['ofPWC'](li1ll[Illii1ll(0x29a,'&GH9')],'\x0a【店铺地址】https://shop.m.jd.com/?shopId='+$[Illii1ll(0x2b7,'X]0u')]+Illii1ll(0x294,'Zr]C')+$['venderId'])),await li1ll['push']());})()[Ill11Ili(0x23a,'D9dD')](II1iIiIl=>$['logErr'](II1iIiIl))[Ill11Ili(0x25b,'1szc')](()=>$['done']());async function liIiI111(){const IIll1ll1=Ill11Ili,Iiil1iii={'dYYTe':function(Ii1ii,i1I11iI){return Ii1ii!==i1I11iI;},'nrhtl':function(iIi1i1i1,i1lIIiIl){return iIi1i1i1===i1lIIiIl;},'ORKxX':IIll1ll1(0x241,'j07@'),'VGcAs':IIll1ll1(0x235,'Ef4h')},Ii1l1lli=await IiIil111[IIll1ll1(0x1de,'QNfV')](iIIlil1I);if(!Ii1l1lli&&Iiil1iii[IIll1ll1(0x298,'8a#H')](typeof Ii1l1lli,undefined)){console['log'](IIll1ll1(0x260,'KIAm'));return;}try{Iiil1iii['nrhtl'](Iiil1iii[IIll1ll1(0x27b,'Q%qo')],Iiil1iii[IIll1ll1(0x266,'KIAm')])?await llI1iIi(Iiil1iii[IIll1ll1(0x200,'ewji')]):iIIIIi1i=lIiilii+'\x20请求失败Response\x20code\x20'+lilIIIiI+'';}catch(ii1l1lIi){console[IIll1ll1(0x23f,'KIAm')](ii1l1lIi['message']);}}function lI11li1l(_0x59cf1e,_0x15400d){const _0x39a116=iIIlIiIl();return lI11li1l=function(_0x18a15e,_0x1d12c8){_0x18a15e=_0x18a15e-0x1dd;let _0x463df4=_0x39a116[_0x18a15e];if(lI11li1l['GWmOGa']===undefined){var _0x2cdc67=function(_0x38d058){const _0x3b3ded='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc7ad18='',_0x116898='';for(let _0x464085=0x0,_0x39cac4,_0x13e036,_0x2310a7=0x0;_0x13e036=_0x38d058['charAt'](_0x2310a7++);~_0x13e036&&(_0x39cac4=_0x464085%0x4?_0x39cac4*0x40+_0x13e036:_0x13e036,_0x464085++%0x4)?_0xc7ad18+=String['fromCharCode'](0xff&_0x39cac4>>(-0x2*_0x464085&0x6)):0x0){_0x13e036=_0x3b3ded['indexOf'](_0x13e036);}for(let _0x409540=0x0,_0x3e8030=_0xc7ad18['length'];_0x409540<_0x3e8030;_0x409540++){_0x116898+='%'+('00'+_0xc7ad18['charCodeAt'](_0x409540)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x116898);};const _0x567fcd=function(_0x3068e2,_0x10bbb8){let _0x3073bb=[],_0x2711a8=0x0,_0x17c4b2,_0x5c137b='';_0x3068e2=_0x2cdc67(_0x3068e2);let _0x419af3;for(_0x419af3=0x0;_0x419af3<0x100;_0x419af3++){_0x3073bb[_0x419af3]=_0x419af3;}for(_0x419af3=0x0;_0x419af3<0x100;_0x419af3++){_0x2711a8=(_0x2711a8+_0x3073bb[_0x419af3]+_0x10bbb8['charCodeAt'](_0x419af3%_0x10bbb8['length']))%0x100,_0x17c4b2=_0x3073bb[_0x419af3],_0x3073bb[_0x419af3]=_0x3073bb[_0x2711a8],_0x3073bb[_0x2711a8]=_0x17c4b2;}_0x419af3=0x0,_0x2711a8=0x0;for(let _0x31cd49=0x0;_0x31cd49<_0x3068e2['length'];_0x31cd49++){_0x419af3=(_0x419af3+0x1)%0x100,_0x2711a8=(_0x2711a8+_0x3073bb[_0x419af3])%0x100,_0x17c4b2=_0x3073bb[_0x419af3],_0x3073bb[_0x419af3]=_0x3073bb[_0x2711a8],_0x3073bb[_0x2711a8]=_0x17c4b2,_0x5c137b+=String['fromCharCode'](_0x3068e2['charCodeAt'](_0x31cd49)^_0x3073bb[(_0x3073bb[_0x419af3]+_0x3073bb[_0x2711a8])%0x100]);}return _0x5c137b;};lI11li1l['LQeDzr']=_0x567fcd,_0x59cf1e=arguments,lI11li1l['GWmOGa']=!![];}const _0x46e961=_0x39a116[0x0],_0x3d8c7e=_0x18a15e+_0x46e961,_0x42fc94=_0x59cf1e[_0x3d8c7e];return!_0x42fc94?(lI11li1l['jWkZzX']===undefined&&(lI11li1l['jWkZzX']=!![]),_0x463df4=lI11li1l['LQeDzr'](_0x463df4,_0x1d12c8),_0x59cf1e[_0x3d8c7e]=_0x463df4):_0x463df4=_0x42fc94,_0x463df4;},lI11li1l(_0x59cf1e,_0x15400d);}async function l1ili1ll(liIlli11,lIII111I){const iIIIiII1=Ill11Ili,ilil1l1l={'YJVYi':'main','kdrac':function(lIIII1II,ilIIiI){return lIIII1II===ilIIiI;},'hCfGb':function(lllilli,li1IliI){return lllilli!==li1IliI;},'saUwK':'XtvDu','OhomU':'JWxvs','EXzpf':iIIIiII1(0x1e9,'a&bU')};try{switch(liIlli11){case ilil1l1l[iIIIiII1(0x1eb,'Z9d*')]:if(ilil1l1l[iIIIiII1(0x1f1,'@C4h')](lIII111I[iIIIiII1(0x1fa,'PyPo')],!![])&&lIII111I?.[iIIIiII1(0x269,'hJeS')]?.[iIIIiII1(0x242,'PyPo')]){const l1iilIiI=lIII111I?.['data']?.[iIIIiII1(0x226,'@C4h')];l1iilIiI?.[iIIIiII1(0x255,'iHbm')]?ilil1l1l[iIIIiII1(0x25a,'ewji')](ilil1l1l[iIIIiII1(0x224,'9mjD')],ilil1l1l[iIIIiII1(0x1f7,'qdJ$')])?console[iIIIiII1(0x2a2,'RpXr')]('签到成功'+(l1iilIiI?.[iIIIiII1(0x2ae,'O6&d')]?''+l1iilIiI?.[iIIIiII1(0x28b,'7Hf3')]:'')):IllIl1I[iIIIiII1(0x23f,'KIAm')](iI11llii[iIIIiII1(0x26a,'2N!w')]):ilil1l1l[iIIIiII1(0x1fb,'83I1')](l1iilIiI?.['msg'],iIIIiII1(0x274,'@^#w'))?(console[iIIIiII1(0x239,'@^#w')](ilil1l1l[iIIIiII1(0x2a5,'7Hf3')]),$['message'][iIIIiII1(0x28f,'Y#yh')](ilil1l1l[iIIIiII1(0x243,'qMKi')])):(console[iIIIiII1(0x24c,'qMKi')](iIIIiII1(0x23c,'Inoj')+l1iilIiI?.[iIIIiII1(0x286,'83I1')]),$[iIIIiII1(0x295,'Wn%s')][iIIIiII1(0x1e7,'NA*5')]('签到失败,'+l1iilIiI?.[iIIIiII1(0x22b,'Y#yh')]));}else lIII111I['msg']?(console[iIIIiII1(0x23b,'2N!w')](lIII111I[iIIIiII1(0x2b4,'rK0K')]),$[iIIIiII1(0x280,'&GH9')][iIIIiII1(0x2a7,'(%On')](lIII111I[iIIIiII1(0x2b8,'Ti7e')])):console[iIIIiII1(0x1ed,'Ef4h')]('❓'+liIlli11+'\x20'+JSON[iIIIiII1(0x237,'RpXr')](lIII111I));break;}}catch(lIiii1I1){console['log'](iIIIiII1(0x270,'83I1')+liIlli11+iIIIiII1(0x2b1,'7Hf3')+(lIiii1I1[iIIIiII1(0x283,'F9Hp')]||lIiii1I1));}}async function llI1iIi(IlIIi1l1){const iliIIli=Ill11Ili,ii1l1IiI={'QkocY':iliIIli(0x25c,'7Hf3'),'reCjg':iliIIli(0x1ee,'8a#H'),'yQzbP':function(l1I1ilI1,I1IllI1l){return l1I1ilI1(I1IllI1l);},'kBXVW':iliIIli(0x202,'(%On'),'uYMtA':iliIIli(0x240,'^]VQ'),'ZitFh':iliIIli(0x210,'2N!w'),'BLQhD':iliIIli(0x272,'qMKi'),'ZafCT':iliIIli(0x258,'(%On'),'EDMez':'gzip,\x20deflate,\x20br','OadVh':iliIIli(0x27a,'qMKi'),'zGrkA':'application/x-www-form-urlencoded','jGnwx':iliIIli(0x291,'P!GR'),'Pfoxu':'https://pro.m.jd.com','MNPbN':iliIIli(0x1df,'F9Hp'),'lDuxv':'same-origin','cCzXR':function(iII1l1iI,l1i1liIi){return iII1l1iI===l1i1liIi;},'cUxuJ':'rHmaB','xWUyl':'WgHMS','wRodV':function(l1IIl111,iI1ilIll){return l1IIl111<iI1ilIll;},'RlwYx':function(i111iIll,iIiI11i1){return i111iIll>iIiI11i1;},'QNFkX':iliIIli(0x279,'SnC%'),'blnfx':function(IIiI1Iil,i1iiI1l1,Ili1lIlI){return IIiI1Iil(i1iiI1l1,Ili1lIlI);},'WpXsN':function(li1i1ii1,IliII1l){return li1i1ii1===IliII1l;},'FVbpn':iliIIli(0x216,'NA*5'),'oVqbF':iliIIli(0x1f2,'@^#w'),'mlGVy':function(I1l1I1Il,lll1ill){return I1l1I1Il!==lll1ill;},'cFtcT':iliIIli(0x252,'P!GR'),'sbpBN':function(liIilIii,lilI1lI1){return liIilIii===lilI1lI1;},'ZOooT':iliIIli(0x29e,'Wn%s'),'tgAug':iliIIli(0x29f,'E)%H'),'lMcYp':iliIIli(0x281,'rK0K'),'zIKTs':iliIIli(0x28d,'f7Jy'),'peZVo':'ZTLkt','zPkTh':function(Il1liI11,I11lilli){return Il1liI11===I11lilli;},'fbJts':iliIIli(0x24a,'9mjD'),'NxECQ':function(l1Iiil1l,i1IIi){return l1Iiil1l||i1IIi;},'evSzC':iliIIli(0x29d,'qMKi'),'JkKbI':function(llIiIIli,l1llllIi){return llIiIIli>=l1llllIi;},'hTIAm':iliIIli(0x231,'1szc')};if($[iliIIli(0x233,'a&bU')]||$['outFlag'])return;let li1llllI='',iIIIiill={},I1il1i1i=ii1l1IiI[iliIIli(0x285,'1szc')];switch(IlIIi1l1){case'main':iIIIiill=iliIIli(0x234,'UCae')+ii1l1IiI['yQzbP'](encodeURIComponent,JSON[iliIIli(0x2b2,'j07@')]({'methodName':iliIIli(0x2a8,'@C4h'),'functionId':ii1l1IiI[iliIIli(0x277,'&p*6')],'osName':ii1l1IiI['uYMtA'],'appId':ii1l1IiI[iliIIli(0x25d,'2N!w')],'version':'1','deviceNo':ii1l1IiI[iliIIli(0x293,'qdJ$')],'handleType':ii1l1IiI[iliIIli(0x20e,'1szc')],'encryptProjectId':ii1l1IiI[iliIIli(0x1ef,'D9dD')],'encryptAssignmentIds':[iliIIli(0x23d,'qdJ$')],'deviceType':0x1,'lng':115.491643,'lat':38.897564,'itemId':'1'})),li1llllI=iliIIli(0x205,'Ef4h');break;default:console['log'](iliIIli(0x271,'u5JU')+IlIIi1l1);return;}const IlliI1Ii={'url':li1llllI,'headers':{'Accept':iliIIli(0x2b5,'8a#H'),'Accept-Encoding':ii1l1IiI[iliIIli(0x250,'u5JU')],'Accept-Language':iliIIli(0x1f5,'Zr]C'),'Connection':ii1l1IiI['OadVh'],'Content-Type':ii1l1IiI['zGrkA'],'Cookie':iIIlil1I,'Host':'api.m.jd.com','Referer':ii1l1IiI[iliIIli(0x232,'8a#H')],'Origin':ii1l1IiI['Pfoxu'],'Sec-Fetch-Dest':ii1l1IiI[iliIIli(0x273,'2N!w')],'Sec-Fetch-Mode':iliIIli(0x246,'O6&d'),'Sec-Fetch-Site':ii1l1IiI[iliIIli(0x251,'Inoj')],'User-Agent':$['UA']},'body':iIIIiill,'timeout':0x7530};if($[iliIIli(0x26f,'2N!w')]){if(ii1l1IiI['cCzXR'](iliIIli(0x228,'qMKi'),ii1l1IiI[iliIIli(0x24b,'@^#w')])){lil1i11l[iliIIli(0x1f8,'PyPo')](iliIIli(0x245,'Y#yh'));return;}else IlliI1Ii['headers']['token']=$[iliIIli(0x225,'P!GR')];}if(ii1l1IiI[iliIIli(0x259,'&GH9')](I1il1i1i,'GET')){if(ii1l1IiI[iliIIli(0x284,'P!GR')](ii1l1IiI[iliIIli(0x1ec,'Inoj')],ii1l1IiI[iliIIli(0x20b,'u5JU')]))delete IlliI1Ii['body'],delete IlliI1Ii[iliIIli(0x256,'(%On')][ii1l1IiI['QkocY']];else{if([0x193,0x1ed][iliIIli(0x201,'ewji')](IIli11li))IIllIII1=l1l1iliI+iliIIli(0x24d,'N#KZ')+II1IIIi1+'',l1li1Ii=!![];else[0x190,0x194][iliIIli(0x29c,'O6&d')](IIIiillI)?iliiilIi=lilIliii+iliIIli(0x1e6,'UYrf')+IlilillI+'':i1II1Il=iIll1liI+iliIIli(0x211,'Q%qo')+IIiilIli+'';}}const Ii1I1Ill=0x5;let iIlllli1=0x0,liiil1ii=null,lli1111l=![];while(ii1l1IiI['wRodV'](iIlllli1,Ii1I1Ill)){ii1l1IiI[iliIIli(0x230,'8a#H')](iIlllli1,0x0)&&(ii1l1IiI[iliIIli(0x26b,'Kkid')]!==ii1l1IiI[iliIIli(0x1ea,'RpXr')]?(iI1lIi1i[iliIIli(0x215,'9mjD')](lI1IlIi1),lIlilIi1&&(ll1l1li[iliIIli(0x2a1,'^]VQ')]=!![],l1ii11i[iliIIli(0x2aa,'@C4h')]&&IlI1lIl['message']['fix'](iilI1i1i))):await $[iliIIli(0x22f,'@^#w')](0x3e8));const {err:il1111il,res:illIIIll,data:l1Il1IiI}=await ii1l1IiI[iliIIli(0x24e,'PyPo')](l1liiIII,IlliI1Ii,I1il1i1i);if(il1111il){if(ii1l1IiI[iliIIli(0x207,'PyPo')](typeof il1111il,ii1l1IiI[iliIIli(0x287,'qMKi')])&&il1111il[iliIIli(0x2a4,'9mjD')](ii1l1IiI[iliIIli(0x238,'D9dD')]))ii1l1IiI[iliIIli(0x2a3,'RpXr')](ii1l1IiI[iliIIli(0x22c,'RpXr')],ii1l1IiI['cFtcT'])?i1iiI1ll[iliIIli(0x267,'&p*6')]['token']=iI1l1III[iliIIli(0x225,'P!GR')]:liiil1ii=IlIIi1l1+'\x20请求超时请检查网络重试';else{const l1lIli1l=illIIIll?.[iliIIli(0x268,'Wn%s')];if(l1lIli1l){if([0x193,0x1ed][iliIIli(0x204,'(%On')](l1lIli1l))ii1l1IiI['sbpBN'](ii1l1IiI['ZOooT'],ii1l1IiI[iliIIli(0x27e,'u5JU')])?(liiil1ii=IlIIi1l1+'\x20请求失败IP被限制Response\x20code\x20'+l1lIli1l+'',lli1111l=!![]):(liiIilIl[iliIIli(0x221,'TfX#')](IliliilI[iliIIli(0x299,'Q%qo')]),I1i1i111[iliIIli(0x24f,'qMKi')]['fix'](I1IliI1i['msg']));else[0x190,0x194][iliIIli(0x27c,'qMKi')](l1lIli1l)?liiil1ii=IlIIi1l1+iliIIli(0x257,'(%On')+l1lIli1l+'':liiil1ii=IlIIi1l1+iliIIli(0x26e,'a&bU')+l1lIli1l+'';}else ii1l1IiI[iliIIli(0x227,'Kkid')]==='QUWOO'?liiil1ii=IlIIi1l1+iliIIli(0x2b0,'a&bU')+(il1111il[iliIIli(0x26a,'2N!w')]||il1111il):(IIlIiIi1[iliIIli(0x1e4,'rK0K')](iliIIli(0x1e1,'UYrf')+ii1llIIl?.[iliIIli(0x209,'9mjD')]),liilliI1['message'][iliIIli(0x236,'Q%qo')](iliIIli(0x203,'@C4h')+il1Il?.[iliIIli(0x1f6,'2N!w')]));}iIlllli1++;}else{if(ii1l1IiI['lMcYp']!==ii1l1IiI['lMcYp'])ilIi11Ii({'err':ll11IIII,'res':lii1lili,'data':illii1II});else{const IllIi1I=IiIil111['getResponseCookie'](illIIIll),IIII11il=![];IIII11il&&(console[iliIIli(0x24c,'qMKi')](ii1l1IiI['zIKTs']),console[iliIIli(0x1e4,'rK0K')]('🔧\x20'+IlIIi1l1+'\x20响应Body\x20=>\x20'+(l1Il1IiI||'无')+'\x0a'),console[iliIIli(0x282,'D9dD')]('🔧\x20'+IlIIi1l1+'\x20响应Cookie\x20=>\x20'+(IllIi1I||'无')+'\x0a'),console[iliIIli(0x239,'@^#w')](iliIIli(0x249,'Ef4h')+IlIIi1l1+iliIIli(0x214,'UYrf')),console['log'](IlliI1Ii),console[iliIIli(0x1e4,'rK0K')](ii1l1IiI['zIKTs']));try{if(ii1l1IiI['cCzXR'](ii1l1IiI[iliIIli(0x206,'N#KZ')],ii1l1IiI['peZVo'])){const l1ll111l=JSON[iliIIli(0x2bd,'Q%qo')](l1Il1IiI);l1ili1ll(IlIIi1l1,l1ll111l);break;}else delete liliIiII['body'],delete l1i1iI1i['headers'][ii1l1IiI['QkocY']];}catch(ll1l11l){ii1l1IiI['zPkTh'](ii1l1IiI[iliIIli(0x2ba,'Kkid')],iliIIli(0x253,'7Hf3'))?I11i111=II1iiIIl+iliIIli(0x265,'2N!w')+(lilIlill['message']||il11i1l):(liiil1ii='❌\x20'+IlIIi1l1+'\x20接口响应数据解析失败:\x20'+ll1l11l['message'],console[iliIIli(0x218,'Y#yh')](iliIIli(0x276,'iHbm')+IlIIi1l1+iliIIli(0x20a,'a&bU')+ii1l1IiI['yQzbP'](String,ii1l1IiI[iliIIli(0x208,'P!GR')](l1Il1IiI,ii1l1IiI[iliIIli(0x229,'O6&d')]))),IIII11il&&(console['log'](ii1l1IiI['zIKTs']),console[iliIIli(0x220,'Zr]C')](activityCookie),console[iliIIli(0x23e,'QNfV')](ii1l1IiI[iliIIli(0x2ad,'qdJ$')])),iIlllli1++);}lli1111l=![];}}}ii1l1IiI[iliIIli(0x2af,'TfX#')](iIlllli1,Ii1I1Ill)&&(console[iliIIli(0x1f0,'iHbm')](liiil1ii),lli1111l&&($['outFlag']=!![],$[iliIIli(0x28a,'P!GR')]&&(ii1l1IiI[iliIIli(0x27f,'8a#H')]!==iliIIli(0x288,'8a#H')?IiilIl[iliIIli(0x261,'Wn%s')]('签到成功'+(IiiI1i1l?.[iliIIli(0x278,'f7Jy')]?''+iiIIlI1I?.['rewardMsg']:'')):$['message']['fix'](liiil1ii))));}async function l1liiIII(lill11iI,IlillI1i=Ill11Ili(0x263,'TfX#')){const ll1ili1i=Ill11Ili,I1III11i={'SJbfl':ll1ili1i(0x2b3,'#ZUu'),'QPmNE':function(lI1iiIl,lll1Iii1){return lI1iiIl(lll1Iii1);},'ejUAr':'geAQj','nqtdk':ll1ili1i(0x26d,'Inoj'),'IVqni':ll1ili1i(0x25e,'Zr]C'),'YVxuS':ll1ili1i(0x222,'1szc')};if(IlillI1i===I1III11i[ll1ili1i(0x247,'&p*6')]){if(I1III11i[ll1ili1i(0x21b,'Wn%s')]!==ll1ili1i(0x248,'KIAm'))return new Promise(async ll1i1Ill=>{$['post'](lill11iI,(Iilii11l,ii11iIl1,ilii1Iii)=>{ll1i1Ill({'err':Iilii11l,'res':ii11iIl1,'data':ilii1Iii});});});else iililil[ll1ili1i(0x29b,'f7Jy')](l1lIi1lI[ll1ili1i(0x20f,'Ti7e')],I1III11i[ll1ili1i(0x212,'Wn%s')]),l1lIl1iI[ll1ili1i(0x2b9,'(%On')](0x1);}else{if(IlillI1i==='GET')return new Promise(async l11II1l=>{const IliliI1=ll1ili1i,IllillIi={'OWPsB':function(IIIili1i,li11iIiI){const iili1=lI11li1l;return I1III11i[iili1(0x22e,'9mjD')](IIIili1i,li11iIiI);}};I1III11i[IliliI1(0x20d,'X]0u')]!==I1III11i['ejUAr']?ili1Iii1['log']('❓'+llli1Iil+'\x20'+iIlIlil1[IliliI1(0x244,'iHbm')](l1IllI11)):$['get'](lill11iI,(liII11l1,Ii1lIi1i,Il1I11il)=>{IllillIi['OWPsB'](l11II1l,{'err':liII11l1,'res':Ii1lIi1i,'data':Il1I11il});});});else{const Iiil11il=I1III11i[ll1ili1i(0x275,'rK0K')];return{'err':Iiil11il,'res':null,'data':null};}}}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) }