From 3ba03d40da33b69ae70b7565be08af01f8c0ef35 Mon Sep 17 00:00:00 2001 From: dylan <58234511@qq.com> Date: Sat, 11 Nov 2023 17:04:44 +0800 Subject: [PATCH] 1 --- jd_wxtoken.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 jd_wxtoken.js diff --git a/jd_wxtoken.js b/jd_wxtoken.js new file mode 100644 index 0000000..0fe8ed9 --- /dev/null +++ b/jd_wxtoken.js @@ -0,0 +1,9 @@ +/* +快速获取token +38 * * * * jd_wxtoken.js + */ + +const $ = new Env('快速缓存token'); +var version_='jsjiami.com.v7';function _0x30d5(){const _0x4087d7=(function(){return[...[version_,'RtLbjskjNyIiarmiU.bOcJnomB.qbpvkU7OKtxpk==','r8kMWPO','BISlx8oGFq50WPy4WR17','WQ1AC8kIW5m','DcDTcq','WRqAoHS','WOr1t8koW4hdPCoWbG','WP3cM8kaWRX6','W6RdS8o8','WOaAW5JcVmoy','W6VdOCo1','tCk8pvxdJa','WP9sWP4MWOa','ix41vqryWOhdOxOaf8kSFG','WO7dGgm','W6tcIgbnnG','uYDSb1SfW4RdJvS','eCkiW7ldHIa','WQ1WCCkLW6C','WOzTWPOuiG','WQLuzmkUW6xdK8oe','r8octaK','W6lcLmoxjmohdSoVsq','fquewmos','WPvqWRy+WQVcKalcNq','W69OWO04WRlcVYi','W7mlW4fbWRi','W6BdUmoCW5yTW57cL8kGW4PBncu','WR0EacVcSa','WRbwWRC0WQ7cMte','wSk1p8kyW7O','eSkhW6G','dSkCW4ZdOqC','hIfsW4Pm','WR/dVx3cIt7dGaC','FmkXg8kEW50','WOZdHMFdULVcQmozpG','W5m0WRhdRCoO','WOS+W6NcPCosWOTww8ofW5m3W5TZE0n3lJ02vL3dVSk3W6Cje8khWRuwBLjEFchcG8otW4a8wmkem8kbCW','W59SvSkQhG','rdbWjeu','pgpcK8okuW','FILUcq','sSoRW7zk','gHOTW79WWOi','fqyrW5v1WOtdVG','WRtdT24','wbJdJSk8mXxdOmolWQhdTSotgG','F8kMWPyfWPO','Awj5n2K','m8otW5CdW58','dHSnxmobvZGkzG','sSk5WO0mWO0','vSkfW4pcGxvaWQPknCodpCkmW5BcQa','ccfhW7LbWQFcRG','WPT0WOytW5ePW67dMGj2WPVdUHi','tSkNWOS','tSoXW5zwBulcQI4','WRb/WOSfbaHgWRe','BhtcS39CjSkU','WO8ZWO3dTqS','W6/cQZ/dNwBcJr7dHtird3K'],...(function(){return[...['kSolWQ8','WOOKW7NcSmoz','WQauWO3dTYy','WP0fWQNdPJ3dL8k8WPK','zxdcQN4','rSkOWO0','5PER5O2U5lQQ55g1WPDxW4dcLCk1BSkXlsabdmkLWOOnnLnlWR4','6kYV5yMN6zQg5OEI5z23W7yjW5q+kUI/VEwfUUAJNEs9QoAvIUwgOowURxZLURtORkVPGyhOVOxOHQJMN5xLJAVOJA7LJkCsWO7dN8oGECkf','m31xaCkTlq','dSkyW5FdRti','qM/cGXpcJ0DPWPa','WPldGgpdP3K','k3/dJ1tdIG','W63dS8oomCkf','ymkgW47dM2HWW6Lihd00bCkl','kXuormon','44g85O+L56AA44gg6k2b5yAG6i2y5y2C5lI45lIj6lwu5yYp5lQdWRfna2FdQdz+55M85O+F5l2255ARnc3cRvFcG8kQ55Qj5lQ55lQ8562H5yM56i2J5y+L','p8oQW5tcNYi','kHSdvmo9','WQrlWRNdI8kPD8o5WONcN07cVw8','WPT0WOiDW5uPW6JdJH5/WRxdOYK','sCojqW','xwVcLYNdIG','E8kfmSkyW60','W5pcPxTShCor','eaymW7T9WOi','tSk1WQ4/WOy','a0JcL8oQ','W7WjW6O','A0VcMJtdMW','g8kgW7K','W67dRSo/lSk+','lxJdOJBdOa','DmotW5jYvW','WQzfzmk6W7FcNCkkBJ3cLmk5yCkEW7jXswhdGmoJCXRcHJKTWO5iW77dImk8Ftm','WQRdUf3dH0u','WR7cSSkJWO1J','W7PoW7NcRehcJSoKWRy6ASkWWRqK','tgdcHSk6WR4','W4tdR8o0imkVxSodWOK','WQVdRhVcHdhdKW','v8kbW73cVhS','BSkAogddUCo7WO9S','W6ddPCoVl8kNt8oO','qCkBWRSQWPK','5B6y6yg2572W5A+i5PE057My5RAT5yQDgg8MvCkB','amk6WR90zW','WOBcQmoUcmooWPn3W6RcPsiStcO','WR7dOb3cHKK0bCo4iwZdJa','WPxcS8kIWP9h','jx3dQx7dOa','bMFdPH3dMW','WQ0GW5pcTHS','cwZcNKpcQCouWPq4','FCoeWRpcMgGDg+w9UUwNIUocJUI2IUwnLW','o3DxaW','WRRcQSkAWOX8','gSo/W4TwW4hcN8k+WQzsW77dNmk0pa','hCkra0pcKa5DWPZdKmoxWQFdNCkG','WPSdW7C','W74sWRu','lN7dS3VdUmoOWPdcP8o1WOxdQCobCSo7','rLNcVdhcRW'],...(function(){return['l0FcPG','W67dImo4hCk1','6l+L57U75lUT5Q++6i2f5y2B5AsP6lEw77+95y296ikp6zUB5yQSrW3VV43LGyJMROxMI4FOOOFVVPNVVBFVVjG','futdQq/dGq','WOCajHJcRNpdG8oXW4m','Dgj/j2q','W6BdJ8odfCoe','WQ/dJhtdUgq','AIldV2FdT8oMWO3dOmo5WOtcQ8klFCkGW4SXaW','WRdcRSkAWOT1WPlcUG','dmk8W7ZdGwG','qCouuG','WP0obJVcQW','DIfVgfCs','WRVcMSkMWOLo','pcvWW5jw','W4FcPw56h8onWRi','a8kjWQC','hI9hW49f','jmoaWQbt','WQRdRHRcGq','W4dcS8ovfSoe','o8oQW6q','kmo9W4BcLX4','W6xcNSoLiSowdW','W7CtW6hcJmo4nG','r3tcKtBcTa','iZNdRZuwE8oKbmk7W6RcPIa','bdJdPv/dJXyYWR3dVSoIWQtcI2a','DhTQcgq','WPm/W67cVq','Dw/cVWZcLeTnWRpcQq','W4BdPSoPcq','y8keiKZdVa','CYDSb1Sf','wMpcT8k+WRe','BCkNWR4zWQ0','cKBcM8oSuG','Dv3cVSoYW6rnWR4H','WRVdLSkPFCkysSkl','WPaVW7ZcP8ocW5K','W4hdTmoka8oPWPK','W4ZcT3XYdW','W7GYW67cRSoU','n2VcLCojCW','wCkEW6lcNgi','W5XBWROAoInb','W4qZW7xcJmo/','i8kRW77dO1u','smoBWQVdJmkO','ovhcICohCa','kSokW47cGGe','EmkWimkeW4C','WOeUW5JcPZu','WQCajWdcS2tdVmowWOvyWPW','WQ9iWReZdYT+WPm','cwBcP1tcQG','W6RcVexdHqr/cmoYe0VdN8kx','gmoYW4uTW7a','W7hcR+wLGUI3KbXM5y+V5zM7BYm','FMlcTGRcKG'];}())];}())];}());_0x30d5=function(){return _0x4087d7;};return _0x30d5();};const _0x53b409=_0x5a42;(function(_0x3601de,_0x1d0469,_0x47840c,_0x4adc44,_0x462e85,_0x50a960,_0x5bf9dc){return _0x3601de=_0x3601de>>0x4,_0x50a960='hs',_0x5bf9dc='hs',function(_0x317752,_0x246d5e,_0x5d01bf,_0xa6ba35,_0xc04a0a){const _0x16505c=_0x5a42;_0xa6ba35='tfi',_0x50a960=_0xa6ba35+_0x50a960,_0xc04a0a='up',_0x5bf9dc+=_0xc04a0a,_0x50a960=_0x5d01bf(_0x50a960),_0x5bf9dc=_0x5d01bf(_0x5bf9dc),_0x5d01bf=0x0;const _0x5a7660=_0x317752();while(!![]&&--_0x4adc44+_0x246d5e){try{_0xa6ba35=-parseInt(_0x16505c(0x142,'((J8'))/0x1+-parseInt(_0x16505c(0x115,'EMWE'))/0x2*(-parseInt(_0x16505c(0x12c,'L6HD'))/0x3)+parseInt(_0x16505c(0x18b,'ZhwE'))/0x4+parseInt(_0x16505c(0x1ac,'RjJC'))/0x5+-parseInt(_0x16505c(0x14a,'g4)4'))/0x6+parseInt(_0x16505c(0x150,'Pxpb'))/0x7+-parseInt(_0x16505c(0x18a,'Nuu%'))/0x8;}catch(_0x41f6e9){_0xa6ba35=_0x5d01bf;}finally{_0xc04a0a=_0x5a7660[_0x50a960]();if(_0x3601de<=_0x4adc44)_0x5d01bf?_0x462e85?_0xa6ba35=_0xc04a0a:_0x462e85=_0xc04a0a:_0x5d01bf=_0xc04a0a;else{if(_0x5d01bf==_0x462e85['replace'](/[kKbUJRLpntqNBOIryx=]/g,'')){if(_0xa6ba35===_0x246d5e){_0x5a7660['un'+_0x50a960](_0xc04a0a);break;}_0x5a7660[_0x5bf9dc](_0xc04a0a);}}}}}(_0x47840c,_0x1d0469,function(_0x5d7d23,_0x4fdf91,_0x17c5ec,_0x45c26d,_0x568df6,_0x3c183b,_0x5f1792){return _0x4fdf91='\x73\x70\x6c\x69\x74',_0x5d7d23=arguments[0x0],_0x5d7d23=_0x5d7d23[_0x4fdf91](''),_0x17c5ec=`\x72\x65\x76\x65\x72\x73\x65`,_0x5d7d23=_0x5d7d23[_0x17c5ec]('\x76'),_0x45c26d=`\x6a\x6f\x69\x6e`,(0x146fad,_0x5d7d23[_0x45c26d](''));});}(0xcc0,0x492c0,_0x30d5,0xce),_0x30d5)&&(version_=_0x53b409(0x18e,'IBlO'));const _0x2b6292=$[_0x53b409(0x1b9,'lQYb')]()?require(_0x53b409(0x180,'lQYb')):'',_0x1fe0c1=require(_0x53b409(0x198,'IBlO'));function _0x5a42(_0x711135,_0x356136){const _0x43d7f8=_0x30d5();return _0x5a42=function(_0x483fe1,_0x45f0bf){_0x483fe1=_0x483fe1-0x107;let _0x30d5e5=_0x43d7f8[_0x483fe1];if(_0x5a42['QAyqtB']===undefined){var _0x5a4261=function(_0x25c8fb){const _0x527f30='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d071e='',_0x229c13='',_0x30a1c7=_0x1d071e+_0x5a4261;for(let _0x20f73b=0x0,_0x15a7ea,_0x4010a7,_0x1edb75=0x0;_0x4010a7=_0x25c8fb['charAt'](_0x1edb75++);~_0x4010a7&&(_0x15a7ea=_0x20f73b%0x4?_0x15a7ea*0x40+_0x4010a7:_0x4010a7,_0x20f73b++%0x4)?_0x1d071e+=_0x30a1c7['charCodeAt'](_0x1edb75+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x15a7ea>>(-0x2*_0x20f73b&0x6)):_0x20f73b:0x0){_0x4010a7=_0x527f30['indexOf'](_0x4010a7);}for(let _0x3f9423=0x0,_0x57d366=_0x1d071e['length'];_0x3f9423<_0x57d366;_0x3f9423++){_0x229c13+='%'+('00'+_0x1d071e['charCodeAt'](_0x3f9423)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x229c13);};const _0x39a739=function(_0xabe72d,_0x415070){let _0x37a886=[],_0x4c5af7=0x0,_0x2c4952,_0x39e192='';_0xabe72d=_0x5a4261(_0xabe72d);let _0x42f326;for(_0x42f326=0x0;_0x42f326<0x100;_0x42f326++){_0x37a886[_0x42f326]=_0x42f326;}for(_0x42f326=0x0;_0x42f326<0x100;_0x42f326++){_0x4c5af7=(_0x4c5af7+_0x37a886[_0x42f326]+_0x415070['charCodeAt'](_0x42f326%_0x415070['length']))%0x100,_0x2c4952=_0x37a886[_0x42f326],_0x37a886[_0x42f326]=_0x37a886[_0x4c5af7],_0x37a886[_0x4c5af7]=_0x2c4952;}_0x42f326=0x0,_0x4c5af7=0x0;for(let _0x57465f=0x0;_0x57465f<_0xabe72d['length'];_0x57465f++){_0x42f326=(_0x42f326+0x1)%0x100,_0x4c5af7=(_0x4c5af7+_0x37a886[_0x42f326])%0x100,_0x2c4952=_0x37a886[_0x42f326],_0x37a886[_0x42f326]=_0x37a886[_0x4c5af7],_0x37a886[_0x4c5af7]=_0x2c4952,_0x39e192+=String['fromCharCode'](_0xabe72d['charCodeAt'](_0x57465f)^_0x37a886[(_0x37a886[_0x42f326]+_0x37a886[_0x4c5af7])%0x100]);}return _0x39e192;};_0x5a42['dfvRZx']=_0x39a739,_0x711135=arguments,_0x5a42['QAyqtB']=!![];}const _0x1b574b=_0x43d7f8[0x0],_0x16782b=_0x483fe1+_0x1b574b,_0xd04a8=_0x711135[_0x16782b];if(!_0xd04a8){if(_0x5a42['tLXORn']===undefined){const _0xb8df4a=function(_0x4c3fa6){this['GiqWtU']=_0x4c3fa6,this['jgLryZ']=[0x1,0x0,0x0],this['BsWLns']=function(){return'newState';},this['uzccfC']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['NxdOso']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xb8df4a['prototype']['TMYrsy']=function(){const _0xaf31b0=new RegExp(this['uzccfC']+this['NxdOso']),_0x1cf938=_0xaf31b0['test'](this['BsWLns']['toString']())?--this['jgLryZ'][0x1]:--this['jgLryZ'][0x0];return this['RHSynV'](_0x1cf938);},_0xb8df4a['prototype']['RHSynV']=function(_0x1266dc){if(!Boolean(~_0x1266dc))return _0x1266dc;return this['xMOHTi'](this['GiqWtU']);},_0xb8df4a['prototype']['xMOHTi']=function(_0x22fbbc){for(let _0x2145a9=0x0,_0x2e7810=this['jgLryZ']['length'];_0x2145a9<_0x2e7810;_0x2145a9++){this['jgLryZ']['push'](Math['round'](Math['random']())),_0x2e7810=this['jgLryZ']['length'];}return _0x22fbbc(this['jgLryZ'][0x0]);},new _0xb8df4a(_0x5a42)['TMYrsy'](),_0x5a42['tLXORn']=!![];}_0x30d5e5=_0x5a42['dfvRZx'](_0x30d5e5,_0x45f0bf),_0x711135[_0x16782b]=_0x30d5e5;}else _0x30d5e5=_0xd04a8;return _0x30d5e5;},_0x5a42(_0x711135,_0x356136);}let _0x506efb=[],_0x58c81c='',_0x2f5525=0x0;if($[_0x53b409(0x13f,'1YSJ')]()){Object[_0x53b409(0x128,'ZhwE')](_0x2b6292)[_0x53b409(0x140,'1YSJ')](_0x4fb2ac=>{const _0xdbb597=_0x53b409;_0x506efb[_0xdbb597(0x1ae,'yWAs')](_0x2b6292[_0x4fb2ac]);});if(process[_0x53b409(0x151,'^VmV')][_0x53b409(0x10e,'z@1a')]&&process[_0x53b409(0x166,'ZhwE')][_0x53b409(0x119,'@gW)')]===_0x53b409(0x124,')AGX'))console[_0x53b409(0x121,'CT3P')]=()=>{};}else _0x506efb=[$[_0x53b409(0x199,'3%Dv')](_0x53b409(0x12b,'L6HD')),$[_0x53b409(0x14e,'Cqio')](_0x53b409(0x1af,'RjJC')),..._0x5812b5($[_0x53b409(0x135,'Pxpb')](_0x53b409(0x123,'mv1w'))||'[]')[_0x53b409(0x156,'Nuu%')](_0x142e2=>_0x142e2[_0x53b409(0x1b2,'mv1w')])][_0x53b409(0x1a9,'*%jp')](_0x3d2ecb=>!!_0x3d2ecb);!(async()=>{const _0x4102df=_0x53b409,_0x298338={'iyMbw':_0x4102df(0x161,']P0)'),'iHcVs':_0x4102df(0x139,'yWAs'),'OwFWW':function(_0x3c3bdb,_0x281a21){return _0x3c3bdb<_0x281a21;},'JPnSn':function(_0x3c2a1f,_0x1cb7bd){return _0x3c2a1f===_0x1cb7bd;},'HWYVP':_0x4102df(0x171,']P0)'),'lQHfZ':function(_0x670965,_0x5e0403){return _0x670965!==_0x5e0403;},'lwflq':_0x4102df(0x12a,'!$^1'),'ZOXLG':_0x4102df(0x113,'RjJC'),'nRhDl':function(_0x497b80,_0x35ee83){return _0x497b80(_0x35ee83);},'cWRdc':function(_0x32d6b0,_0x5b9a05){return _0x32d6b0+_0x5b9a05;},'yuRTB':function(_0x59f834,_0x1dc62e){return _0x59f834>_0x1dc62e;},'YaOHl':function(_0x1b8368,_0x3833bc,_0x1da574){return _0x1b8368(_0x3833bc,_0x1da574);},'ckchW':_0x4102df(0x173,'@gW)'),'auSaC':function(_0xf29a85,_0x5ce6b8){return _0xf29a85==_0x5ce6b8;}};if(!_0x506efb[0x0]){$[_0x4102df(0x11b,'pU2t')]($[_0x4102df(0x13d,'mv1w')],_0x298338[_0x4102df(0x175,'3%Dv')],_0x298338[_0x4102df(0x1bb,'*%jp')],{'open-url':_0x298338[_0x4102df(0x191,'pU2t')]});return;}$[_0x4102df(0x141,'Pxpb')](_0x4102df(0x17e,'1YSJ')),$[_0x4102df(0x114,'Nuu%')](_0x4102df(0x157,'23CF'));for(let _0x6585c0=0x0;_0x298338[_0x4102df(0x111,'Whc6')](_0x6585c0,_0x506efb[_0x4102df(0x159,'EMWE')]);_0x6585c0++){if(_0x298338[_0x4102df(0x11a,'3%Dv')](_0x298338[_0x4102df(0x174,'CT3P')],_0x298338[_0x4102df(0x10b,'P#KR')])){if(_0x506efb[_0x6585c0]){if(_0x298338[_0x4102df(0x19e,'3%Dv')](_0x298338[_0x4102df(0x1ba,'2xBT')],_0x298338[_0x4102df(0x16e,'o[Hy')])){_0x58c81c=_0x506efb[_0x6585c0],$[_0x4102df(0x14d,'z@1a')]=_0x298338[_0x4102df(0x17f,'xnki')](decodeURIComponent,_0x58c81c[_0x4102df(0x189,'3%Dv')](/pt_pin=([^; ]+)(?=;?)/)&&_0x58c81c[_0x4102df(0x195,'5^N^')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[_0x4102df(0x152,'yWAs')]=_0x298338[_0x4102df(0x108,'39zM')](_0x6585c0,0x1),$[_0x4102df(0x137,'CT3P')]='';if(_0x298338[_0x4102df(0x133,')AGX')](_0x2f5525,0x2)){console[_0x4102df(0x1a6,'Whc6')](_0x4102df(0x192,'lXRd'));break;};console[_0x4102df(0x16f,')AGX')](_0x4102df(0x187,')AGX')+$[_0x4102df(0x170,'pU2t')]+'】'+($[_0x4102df(0x1b6,'ruo5')]||$[_0x4102df(0x154,'NwMV')])+_0x4102df(0x1b7,'78jn')),$[_0x4102df(0x10a,'w5Ak')]=await _0x298338[_0x4102df(0x19c,'23CF')](_0x1fe0c1,_0x58c81c,_0x298338[_0x4102df(0x116,'@gW)')]);if(_0x298338[_0x4102df(0x1b3,'lXRd')]($[_0x4102df(0x143,'Nuu%')],''))_0x2f5525++;await $[_0x4102df(0x1a4,'q1e4')](0x7d0);}else _0x188d35[_0x4102df(0x188,'EMWE')]();}}else _0x1cf938[_0x4102df(0x118,'23CF')](_0x1266dc[_0x22fbbc]);}})()[_0x53b409(0x126,'z@1a')](_0x471103=>{const _0x41966e=_0x53b409;$[_0x41966e(0x18c,'mS)e')]('','❌\x20'+$[_0x41966e(0x1b0,'lQYb')]+_0x41966e(0x112,'q1e4')+_0x471103+'!','');})[_0x53b409(0x130,'L6HD')](()=>{const _0x166e58=_0x53b409;$[_0x166e58(0x117,'mv1w')]();});if(_0x53b409(0x18d,'NwMV')==_0x53b409(0x11d,'pU2t'))return;function _0x5812b5(_0x13324f){const _0x5e097b=_0x53b409,_0xc52be7={'jRFJm':_0x5e097b(0x1ab,'Cqio'),'wvbeL':_0x5e097b(0x158,'Pxpb'),'yqIXw':function(_0x43122c,_0x5e8bdc){return _0x43122c===_0x5e8bdc;},'dVTyx':_0x5e097b(0x168,'P#KR'),'NMWPH':_0x5e097b(0x14f,'NwMV'),'hTXQM':_0x5e097b(0x15d,'IBlO'),'TxsHw':function(_0x2ce437,_0x3b1775){return _0x2ce437!==_0x3b1775;},'qtAQI':_0x5e097b(0x10c,'mS)e'),'jsUzC':_0x5e097b(0x138,'^Y$7'),'ZBoFt':_0x5e097b(0x160,'!$^1'),'AOqxM':_0x5e097b(0x1bf,'*%jp'),'cAaoc':_0x5e097b(0x1ad,'5^N^'),'WIVAG':_0x5e097b(0x178,'pU2t'),'RkEnv':_0x5e097b(0x194,'23CF'),'kwTTo':function(_0x557b56,_0x47dea7){return _0x557b56(_0x47dea7);},'BxLpS':_0x5e097b(0x146,'!$^1'),'YIujR':function(_0x184508,_0x36cd7a,_0x5a829b){return _0x184508(_0x36cd7a,_0x5a829b);},'KFHwf':function(_0x1b5225){return _0x1b5225();},'hbAcU':function(_0x27d67b,_0x95aea3){return _0x27d67b==_0x95aea3;},'LVbLJ':_0x5e097b(0x179,'Pxpb'),'ehKtv':function(_0x238548,_0x216b7e){return _0x238548!==_0x216b7e;},'ImGsB':_0x5e097b(0x196,'lQYb'),'ZLCGj':_0x5e097b(0x1a7,'w5Ak'),'goacU':_0x5e097b(0x107,'cH(V')},_0x5d7afd=(function(){const _0x520d84=_0x5e097b,_0x1a2105={'loUQV':function(_0x2ba63b,_0x597835){const _0x50d350=_0x5a42;return _0xc52be7[_0x50d350(0x12f,'23CF')](_0x2ba63b,_0x597835);},'JNfSF':_0xc52be7[_0x520d84(0x1bc,'((J8')]};if(_0xc52be7[_0x520d84(0x1b1,'MbUV')](_0xc52be7[_0x520d84(0x162,'w5Ak')],_0xc52be7[_0x520d84(0x125,'@gW)')]))return _0x26c2f3[_0x520d84(0x15b,'RjJC')]()[_0x520d84(0x1b8,'yWAs')](xRnJsl[_0x520d84(0x184,']P0)')])[_0x520d84(0x14c,'ngEw')]()[_0x520d84(0x10d,'23CF')](_0x7889a)[_0x520d84(0x1a8,'78jn')](xRnJsl[_0x520d84(0x131,'P#KR')]);else{let _0x7a4d49=!![];return function(_0x48c91f,_0x1df089){const _0x30f270=_0x520d84,_0x11edd8={'VHQFq':_0xc52be7[_0x30f270(0x177,'lXRd')],'Mcpiq':function(_0x4af34b,_0xa38117){const _0x442d14=_0x30f270;return _0xc52be7[_0x442d14(0x15a,')AGX')](_0x4af34b,_0xa38117);},'pogvl':_0xc52be7[_0x30f270(0x145,'Whc6')],'pYlVR':function(_0x6be67f,_0x5b8c1f){const _0x38cafd=_0x30f270;return _0xc52be7[_0x38cafd(0x193,']P0)')](_0x6be67f,_0x5b8c1f);},'QJiET':_0xc52be7[_0x30f270(0x172,'ngEw')],'DHzSH':_0xc52be7[_0x30f270(0x1b4,'npFR')]};if(_0xc52be7[_0x30f270(0x13b,'mv1w')](_0xc52be7[_0x30f270(0x1aa,'RjJC')],_0xc52be7[_0x30f270(0x15e,'pU2t')])){const _0x19b4aa=_0x7a4d49?function(){const _0x1ae072=_0x30f270,_0x27d15a={'cPEiy':_0x11edd8[_0x1ae072(0x1a5,'78jn')]};if(_0x11edd8[_0x1ae072(0x197,'CT3P')](_0x11edd8[_0x1ae072(0x134,']eau')],_0x11edd8[_0x1ae072(0x15c,'CT3P')])){if(_0x1df089){if(_0x11edd8[_0x1ae072(0x18f,'RjJC')](_0x11edd8[_0x1ae072(0x13c,'((J8')],_0x11edd8[_0x1ae072(0x122,'2xBT')]))return _0x356116[_0x1ae072(0x144,'5^N^')](_0x51c54b);else{const _0x4c14eb=_0x1df089[_0x1ae072(0x147,'Nuu%')](_0x48c91f,arguments);return _0x1df089=null,_0x4c14eb;}}}else return _0x193e38[_0x1ae072(0x141,'Pxpb')](_0x2bda73),_0x4e6f46[_0x1ae072(0x19b,'ZhwE')](_0x35aac0[_0x1ae072(0x16c,'((J8')],'',_0x27d15a[_0x1ae072(0x11c,'yWAs')]),[];}:function(){};return _0x7a4d49=![],_0x19b4aa;}else{_0x3f9423[_0x30f270(0x1a3,'^VmV')](_0x57d366)[_0x30f270(0x149,']eau')](_0x532eb2=>{const _0x56eb3c=_0x30f270;_0x39e192[_0x56eb3c(0x13e,'ngEw')](_0x42f326[_0x532eb2]);});if(_0x37a886[_0x30f270(0x132,')AGX')][_0x30f270(0x186,'BbvF')]&&_0x1a2105[_0x30f270(0x167,'o[Hy')](_0x4c5af7[_0x30f270(0x14b,'Nuu%')][_0x30f270(0x10e,'z@1a')],_0x1a2105[_0x30f270(0x10f,'BbvF')]))_0x2c4952[_0x30f270(0x190,'BbvF')]=()=>{};}};}}()),_0x3b46f4=_0xc52be7[_0x5e097b(0x12d,'g4)4')](_0x5d7afd,this,function(){const _0x2f92c0=_0x5e097b;return _0x3b46f4[_0x2f92c0(0x17b,'MbUV')]()[_0x2f92c0(0x1b8,'yWAs')](_0xc52be7[_0x2f92c0(0x19a,'cH(V')])[_0x2f92c0(0x129,'78jn')]()[_0x2f92c0(0x181,'q1e4')](_0x3b46f4)[_0x2f92c0(0x169,'2xBT')](_0xc52be7[_0x2f92c0(0x17d,'Nuu%')]);});_0xc52be7[_0x5e097b(0x16b,'npFR')](_0x3b46f4);if(_0xc52be7[_0x5e097b(0x153,'NwMV')](typeof _0x13324f,_0xc52be7[_0x5e097b(0x136,'P#KR')])){if(_0xc52be7[_0x5e097b(0x1bd,'2(Jc')](_0xc52be7[_0x5e097b(0x11f,'L6HD')],_0xc52be7[_0x5e097b(0x185,'mS)e')]))try{if(_0xc52be7[_0x5e097b(0x109,'((J8')](_0xc52be7[_0x5e097b(0x163,'!$^1')],_0xc52be7[_0x5e097b(0x1b5,'((J8')]))_0x4b42ac=[_0x4471af[_0x5e097b(0x127,'@gW)')](_0xc52be7[_0x5e097b(0x11e,'MbUV')]),_0x2df128[_0x5e097b(0x17c,'pU2t')](_0xc52be7[_0x5e097b(0x19f,']eau')]),..._0xc52be7[_0x5e097b(0x17a,'2(Jc')](_0x875692,_0x17503e[_0x5e097b(0x1a0,'2xBT')](_0xc52be7[_0x5e097b(0x182,'3%Dv')])||'[]')[_0x5e097b(0x1a1,'xnki')](_0x301493=>_0x301493[_0x5e097b(0x16a,'1YSJ')])][_0x5e097b(0x19d,'mv1w')](_0x2a89bc=>!!_0x2a89bc);else return JSON[_0x5e097b(0x1a2,']eau')](_0x13324f);}catch(_0x28f40b){return console[_0x5e097b(0x114,'Nuu%')](_0x28f40b),$[_0x5e097b(0x16d,'*%jp')]($[_0x5e097b(0x155,'Cqio')],'',_0xc52be7[_0x5e097b(0x13a,'BIBx')]),[];}else{const _0x1ebf62=_0x3a1365?function(){const _0x107c72=_0x5e097b;if(_0x46a245){const _0xcb6ec6=_0x4a1d1f[_0x107c72(0x183,'IBlO')](_0x4d8221,arguments);return _0x30f2f4=null,_0xcb6ec6;}}:function(){};return _0x28549b=![],_0x1ebf62;}}}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) } \ No newline at end of file