KR/function/krgetToken.js

15 lines
18 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
new Env('getToken');
变量:
JD_TOKEN_INTERVAL //获取接口403延迟等待时长正整数默认延迟 30s=30000ms
JD_NEWTOKEN_INTERVAL //获取接口成功延迟等待时长(正整数),默认延迟 0s
JD_CACHE_INTERVAL //缓存TOKEN时长正整数默认缓存 25 分钟
JD_PROXY_OPEN // 代理启用变量默认不开启true/false
JD_PROXY_TUNNRL // 代理地址变量,默认不开启,仅支持代理池模式(auto-proxy-pool)格式为http://ip:port
JD_NO_PROXY // 禁止走代理,默认 127.0.0.1,*.baidu.com 需要自行修改
JD_TOKEN_CUSTOM_CACHE // 定义默认缓存文件路径 此文件默认存储在仓库 `function/cache` 目录下
根据自行需要设定,缓存文件数据通用,不再区分域名
*/
var version_='jsjiami.com.v7';const lll1l1I1=IiIIl1i1;(function(IliiII1,I1li11li,iilii,iIli1lI1,l1IiiIil,II1IIli1,lIlil1i){return IliiII1=IliiII1>>0x9,II1IIli1='hs',lIlil1i='hs',function(li1iIII1,i111I1l1,I1ll1iIi,IiiIiIli,l1111Ii){const I1I11III=IiIIl1i1;IiiIiIli='tfi',II1IIli1=IiiIiIli+II1IIli1,l1111Ii='up',lIlil1i+=l1111Ii,II1IIli1=I1ll1iIi(II1IIli1),lIlil1i=I1ll1iIi(lIlil1i),I1ll1iIi=0x0;const ii1IliIi=li1iIII1();while(!![]&&--iIli1lI1+i111I1l1){try{IiiIiIli=-parseInt(I1I11III(0xe0,'NND%'))/0x1+-parseInt(I1I11III(0x16c,'WViT'))/0x2*(parseInt(I1I11III(0x16b,'UZJ['))/0x3)+parseInt(I1I11III(0x15f,'^XFY'))/0x4+parseInt(I1I11III(0x10a,'IXU%'))/0x5*(-parseInt(I1I11III(0xf9,'h][Y'))/0x6)+parseInt(I1I11III(0x143,'kQFz'))/0x7*(-parseInt(I1I11III(0x168,'&@ph'))/0x8)+parseInt(I1I11III(0x138,'JDrK'))/0x9+parseInt(I1I11III(0xe5,'&@ph'))/0xa;}catch(I1il1li){IiiIiIli=I1ll1iIi;}finally{l1111Ii=ii1IliIi[II1IIli1]();if(IliiII1<=iIli1lI1)I1ll1iIi?l1IiiIil?IiiIiIli=l1111Ii:l1IiiIil=l1111Ii:I1ll1iIi=l1111Ii;else{if(I1ll1iIi==l1IiiIil['replace'](/[PrWHxgpRnMYLwEINtD=]/g,'')){if(IiiIiIli===i111I1l1){ii1IliIi['un'+II1IIli1](l1111Ii);break;}ii1IliIi[lIlil1i](l1111Ii);}}}}}(iilii,I1li11li,function(i1Ii1lil,IlIIi1i,l1IiI1ii,iIIll11i,liii1Il1,i1iIIiI1,iilIl1l1){return IlIIi1i='\x73\x70\x6c\x69\x74',i1Ii1lil=arguments[0x0],i1Ii1lil=i1Ii1lil[IlIIi1i](''),l1IiI1ii=`\x72\x65\x76\x65\x72\x73\x65`,i1Ii1lil=i1Ii1lil[l1IiI1ii]('\x76'),iIIll11i=`\x6a\x6f\x69\x6e`,(0x143aee,i1Ii1lil[iIIll11i](''));});}(0x19400,0x3ca96,lil1ll1l,0xcc),lil1ll1l)&&(version_=lil1ll1l);const lliII111=require('got'),lIi1iI=require(lll1l1I1(0xe8,'PJBd')),I1lIIII1=process['env'][lll1l1I1(0x118,'JDrK')]||'25';let lliIIll=parseInt(I1lIIII1)*0x3c*0x3e8;const lI111i11=require(lll1l1I1(0xfd,'M[Wo')),liIiiiil=new lI111i11(lliIIll,process['env'][lll1l1I1(0x120,'kQFz')]||__dirname+'/cache/token.json'),llilIll=['http://api.nolanstore.cc/sign',lll1l1I1(0x10b,'PhJN')],I1iI11l1=llilIll[Iil1l1ll(0x0,llilIll['length'])],Il1llII=I1iI11l1,I11llIIl=process[lll1l1I1(0xf6,'M[Wo')][lll1l1I1(0x16e,'9P1x')]||'',I1iI1Ii1=process[lll1l1I1(0x160,'4@)S')][lll1l1I1(0x169,')Udp')]==='true',iii1I1l=process['env'][lll1l1I1(0xea,'3N0*')]||'',il1ll111=process[lll1l1I1(0x171,'G[@U')]['JD_NO_PROXY']||'127.0.0.1,*.baidu.com',IIl1il=process[lll1l1I1(0x10e,'3N0*')][lll1l1I1(0x107,'Y)!#')]||'30',llii111i=process['env'][lll1l1I1(0x134,'^XFY')]||'0';let IilIi11l=![];if(I1iI1Ii1){IilIi11l=!![];try{require(lll1l1I1(0xda,'amDo')),global[lll1l1I1(0x15e,'z(d0')][lll1l1I1(0xd8,'PhJN')]=iii1I1l||'',global['GLOBAL_AGENT'][lll1l1I1(0xfe,'4s$3')]=lll1l1I1(0x152,'z(d0')+il1ll111,iii1I1l==''?(console['log'](lll1l1I1(0x159,'3N0*')),console['log']('⚠\x20请知晓代理地址仅支持代理池模式(auto-proxy-pool)'),console[lll1l1I1(0x115,'#dhz')]('⚠\x20变量export\x20JD_PROXY_TUNNRL=\x27http://ip:port\x27\x20不填直连\x0a')):(console[lll1l1I1(0x115,'#dhz')](lll1l1I1(0xf7,'Y)!#')),console[lll1l1I1(0x15c,'JDrK')](lll1l1I1(0xfa,'z$Kg')+global['GLOBAL_AGENT']['HTTP_PROXY']+'\x0a'));}catch(i1iIii1I){console[lll1l1I1(0xef,'cY2M')](lll1l1I1(0x13a,'&@ph'));}}else console[lll1l1I1(0x15a,'6#5!')](lll1l1I1(0xf0,')Udp')),console[lll1l1I1(0xe7,'p9R5')](lll1l1I1(0x11e,'IWcN'));console['log'](lll1l1I1(0x155,'v6Xf')+IIl1il+lll1l1I1(0x137,'PhJN')+llii111i+lll1l1I1(0x14a,'NND%')+I1lIIII1+'\x20分钟\x0a');const lIIIlI1l=process[lll1l1I1(0xec,'dsAr')]['JD_TOKEN_REDIS_CACHE_URL']||'',lIIiIli1=process[lll1l1I1(0x117,'cY2M')][lll1l1I1(0x14b,'z(d0')]||'',i1iIl1Ii=!(process[lll1l1I1(0x11b,')Udp')][lll1l1I1(0x157,'&DGM')]===lll1l1I1(0x135,'$R84')),II1Ilii1=/<pt_pin>/[lll1l1I1(0x150,'E4nk')](lIIiIli1);function IiIIl1i1(_0x2d0aed,_0x1e347a){const _0x40881c=lil1ll1l();return IiIIl1i1=function(_0x22ea0e,_0x407454){_0x22ea0e=_0x22ea0e-0xd8;let _0x43089b=_0x40881c[_0x22ea0e];if(IiIIl1i1['yFMgps']===undefined){var _0x1e8404=function(_0x32cbc7){const _0xa8c37c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a7476='',_0x10b760='';for(let _0x5a1750=0x0,_0x4a3ef6,_0x4714c3,_0x24d117=0x0;_0x4714c3=_0x32cbc7['charAt'](_0x24d117++);~_0x4714c3&&(_0x4a3ef6=_0x5a1750%0x4?_0x4a3ef6*0x40+_0x4714c3:_0x4714c3,_0x5a1750++%0x4)?_0x1a7476+=String['fromCharCode'](0xff&_0x4a3ef6>>(-0x2*_0x5a1750&0x6)):0x0){_0x4714c3=_0xa8c37c['indexOf'](_0x4714c3);}for(let _0xf09632=0x0,_0x47f3e2=_0x1a7476['length'];_0xf09632<_0x47f3e2;_0xf09632++){_0x10b760+='%'+('00'+_0x1a7476['charCodeAt'](_0xf09632)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x10b760);};const _0x2d5aff=function(_0x6fa739,_0x1e3399){let _0x92b722=[],_0x53fa20=0x0,_0x535da6,_0x33173e='';_0x6fa739=_0x1e8404(_0x6fa739);let _0x457faf;for(_0x457faf=0x0;_0x457faf<0x100;_0x457faf++){_0x92b722[_0x457faf]=_0x457faf;}for(_0x457faf=0x0;_0x457faf<0x100;_0x457faf++){_0x53fa20=(_0x53fa20+_0x92b722[_0x457faf]+_0x1e3399['charCodeAt'](_0x457faf%_0x1e3399['length']))%0x100,_0x535da6=_0x92b722[_0x457faf],_0x92b722[_0x457faf]=_0x92b722[_0x53fa20],_0x92b722[_0x53fa20]=_0x535da6;}_0x457faf=0x0,_0x53fa20=0x0;for(let _0x300aae=0x0;_0x300aae<_0x6fa739['length'];_0x300aae++){_0x457faf=(_0x457faf+0x1)%0x100,_0x53fa20=(_0x53fa20+_0x92b722[_0x457faf])%0x100,_0x535da6=_0x92b722[_0x457faf],_0x92b722[_0x457faf]=_0x92b722[_0x53fa20],_0x92b722[_0x53fa20]=_0x535da6,_0x33173e+=String['fromCharCode'](_0x6fa739['charCodeAt'](_0x300aae)^_0x92b722[(_0x92b722[_0x457faf]+_0x92b722[_0x53fa20])%0x100]);}return _0x33173e;};IiIIl1i1['SqkHpa']=_0x2d5aff,_0x2d0aed=arguments,IiIIl1i1['yFMgps']=!![];}const _0x2194d7=_0x40881c[0x0],_0x253d00=_0x22ea0e+_0x2194d7,_0x145af0=_0x2d0aed[_0x253d00];return!_0x145af0?(IiIIl1i1['NGpXAF']===undefined&&(IiIIl1i1['NGpXAF']=!![]),_0x43089b=IiIIl1i1['SqkHpa'](_0x43089b,_0x407454),_0x2d0aed[_0x253d00]=_0x43089b):_0x43089b=_0x145af0,_0x43089b;},IiIIl1i1(_0x2d0aed,_0x1e347a);}let lIl1Ii1=null;if(lIIIlI1l){let l1iIliii=null;try{l1iIliii=require(lll1l1I1(0x116,'qV[N'));}catch(IIlIIiIl){console[lll1l1I1(0x126,'sFGH')](lll1l1I1(0x16f,'Y)!#')+IIlIIiIl['message']);}if(l1iIliii)try{lIl1Ii1=l1iIliii['createClient']({'url':lIIIlI1l}),lIl1Ii1['on'](lll1l1I1(0x15b,'&DGM'),()=>{}),lIl1Ii1['on']('error',il1iIill=>{lIl1Ii1=null;}),lIl1Ii1[lll1l1I1(0x12d,'IXU%')](ii1ililI=>{const I1llilli=lll1l1I1,i1Iii1I={'Gmzah':function(IllII1,I1ii1IlI){return IllII1||I1ii1IlI;},'PNuxi':function(iIIl1IIl,i1l11i){return iIIl1IIl===i1l11i;},'vJqkd':'uNuQD'};if(ii1ililI)i1Iii1I[I1llilli(0x16d,'dsAr')]('uNuQD',i1Iii1I[I1llilli(0x13c,'WViT')])?lIl1Ii1=null:Il1lIl1[I1llilli(0x10d,'z$Kg')]('🚫\x20getToken\x20API请求失败\x0a'+i1Iii1I[I1llilli(0xde,'UZJ[')](iiiIlil,'')+'\x0a');else{}});}catch(lii1IliI){}}function illlll(iIlIIII='',iil11i1i){const ii1lill1=lll1l1I1;let l1l1IIli=iil11i1i[ii1lill1(0x136,'PhJN')](iIlIIII);if(l1l1IIli&&l1l1IIli['length']>0x0)return l1l1IIli[0x0][ii1lill1(0xdb,'h*3j')]();return'';}function lllliill(iil1l1ll,llilll1){const l11Il1I=lll1l1I1,IlIilliI={'OAHaN':function(li11liil,i11i11ii){return li11liil>=i11i11ii;},'YPHzl':function(i1ll1ill,l1iIiilI){return i1ll1ill<=l1iIiilI;}};let I11llil1=new Date()[l11Il1I(0x131,'dsAr')]();if(IlIilliI[l11Il1I(0xf8,'PhJN')](I11llil1,0x0)&&IlIilliI[l11Il1I(0x11a,'^XFY')](I11llil1,0x17))return iil1l1ll;return iil1l1ll+'_'+llilll1;}function lil1ll1l(){const i1iii1II=(function(){return[...[version_,'NjsrjtIigNanwmPiM.PcIYoDmYD.xvnR7WrLpMEH==','W6zxWQHU','hmo9qcRdQtuo','WORcLJ/cPmoKpHC','WPXUWQxdKmke','8jYzSHBdGHldGYXIWPRcOmoZBfbvaEwEPEwNNEEsTUIUREAWVoAxMoMdOowjKos6LoMuToIUTW','mg7cParIWPX7wa','rHJcJSoPCG','W5TOWQFdJmkKWQuX','WP8ZWQBcPmoeW6tcVIBdOapcIevfW7S4E8oLCI7dJW','W6XqW4hcVum','z2JdVtS','iUENGSk4jhhMIOZLIA/NRyNLV6Xh','vCorb8oQWODvCmk0WPxdRmoQWRpdIG','i8kfCSkJW4W','6k+i5A636kkMymkRs8kwtfbvd2ddM8oCeos8JUI0M++/K+AlQ+IbGowqJEEwSEs7R+EtNU+/OgK','8yQkKuZdG2/cMmkdgselW5RcRaddGmkW6kYt5Rct5AAx6lE3EEkERr7OTzNLJRRMLPNML4S','aIZcUJ8Z','WR17BmoLxSoyjCk7rCo6','bWdcK8oEDW','W6elwSkwm8oBWR4BptBdJmon','w8oGcSodW5i','WQpdUWW','tW0w','hfLuCCo6dw/dKCoaW77cI1K','WQBdSrZdKa','eSkfd8oLsIO','dG7dPHW2xCkGu8kgd8kWbmowyq','WQFcOahcV8oK','kMZdTx9KW5Guca','vLezA8kk','nEEMGv/cH8oF572z5A2U5PAz6zE0WPK','W5ykWO1oW7VdKNJdRSkweCoFWOWoWRHrs8kGu8oZWRyKW4NcQMy','WRTyfdhcLG','W5Cujq','WOXMWQVdOG','W4jUBwddVq','WRJdUCksBq','W4nAWQ/cLmkW','WRzGWRLZW5RdVK/dGCkNBCo5WQ5R','WQhcT19uWQW','vK0vsmkLqSkbxL8zgMJdJa','4PU/77IgW6/dJ8kEWQWSCEwLPoI1MUETHUw8T8kh','e8kaWRa','W6fLW7/cGdjNDmkEbCkhW6jJbmkTlCk2v38laWRdNCo1CMhdL3K','gaNcRa','4PQgW6pLVOpLIPRMO6JMT53LIixLT53LVkNLKPJKUkJNKihVVBBKVkxMNOVLOOFLH6/KUj3NKl7LNlxLNzxLJBxPHkm','WOVcG3e','W5LeW4hcSaq','cSkguq','W7jLW5VcIwi','W5ScWP1yW7xdLwldOCkobSouWPW'],...(function(){return[...['W6XpW4VdNSkYWOhcPZ3dNadcSwK','WOBcOmod','WRxdHSk5W7JdTa','8yQkKuZdG2/cMmkdgselW5RcRaddGmkW6kYt5Rct5AAx6lE3EEkERr4TkaRdS8k7W50WuKf/EJJdVN0','4P2zCXJcNSklhLKezCoxWRzmw1zfhUAQJ+wDPEwiJoI+T+wKIoI0LCoD4P6Xva','8yQlNmozWO3dPmohWR4gW4aJWQG6tCoLjEwCLUwMS+EqOUIUMoAZGEAwGUMcN+wkPUs4TUMxPUITSW','W7X+WQ4','h8kiaCo5','5Bsk6k2z5y2v5P+k5z6H576w5A+VWQnEdYNdMSoM','cGGHASk3B8kvEa','F1NdQ8oLnmoqgSo4uY/cU2tcGW','WRRdK8ktEmkE','hc7cJmorW6FdG2T8WRtdLSovqG','rvtcRGWqE8kbnG','b0xcPtrK','WQxcQHdcMmoFdsRdP8kIu1r5WPm','4P60WOldPmkdW6xdKCoyWRXucMZdPSkjWQ9nW7xMQ7NLNApLIzFOVl7LPldOTRhdKokDGCox','W587WQRdG8k2WO8BvW','W7hdJ8k3','WQO2d8kbWQG','WRFdVmk/W5JdGa','sKtdJaGoW4ZcOK8XpG','lmkTaSk7W6ujlSkTWQJcGmkdW7FcQmosWQ1birutWOhdRau1WRVdUmo6tSkcWRestSk9pYpcK8oRW40SpCo+xY7cNM3cM2BdVW','W7D9WQBcVCkWDszhpSk5nw8PbSoRx3NcSKZcUmk/bG','W7fkWQvM','WRy2WR7cI8oc','g8koWQn4','ANxdG8kgWRC','W4miWOlcG8k8','iwnmW4pdH3XGghNdJ8oItq','W6LxWQS','exhcLWbC','W7i0WPxcUSkd','ybZcQ8oyrW','bGzummo2fSoeyg0oi33dIW','4P+geCokWQTsnJefWO43mJFcTmoSW5Oy57+p5A+F5AEC6lA5W5FINj1E','WRLvcW','WOevvhxdSCkRg1ZcIbXN','eSoZW6pdRXdcOgnyumobWR9u','BmkhWO/cH3RdMw12DSoJWP5jndhdRq','WPhcQ8ofWPa+WPRcMq','mMxcPG','AYFcQCo7ySkQxmoNh3FcH0G9cMf0vSkwW4lcGXGPW6O2WOG6eJ7dPmoxW7lcH0ldISo0W6WIxxFcH8oNACoGpSoCcdXhW7y5C8oFDHzoWPBcRfVcLG','W6RcKSoHWQdcT8oKy8k9ymo+WRRdK2a','BZZcUG','4PQvpEAHToA3VUw8TEwlKUAPO+w+RUACPUw9OowtHos7GUEtI++/VEM6NoISMoEzOEI9GUI/IUIHVq','CrONWRZcUq','DZxcOCoCrmk+smkfnCod','bCkgwmkKW5atnCkwWR/dGW','W4nmWQD9zq','qqtcHmo/yW','WRBdHmkG','4PUP77QTWQpKUixNKPFLTBFLVRFLK7JVVl3LUP7OR6lORiRNVOlcN0VdRCk9wUEUVUw/HUAxT+MvOos7ISo9W4DX56Eh'],...(function(){return['tvhdKdKF','WR8lsCkMWQtdJb7dUbtcNCokv8k9','4PMj77IgWQBKU6ZNKi3LNOBLNkFKUzFVV44','8y2QKKyLWPywl8oYWQzNWPZcG8knCxpOR5dMS6lLPPNOTkxcPa','WR8hW6/cO1yPpZS','W73cHCk1W7BdPCk+nSoFwmoMWPpdJg0','xmoKFSkMfSkyWP5N','WO3cOCoc','W5RdTSkhW4HSW4VcSCoWWOuSWOFdOG','v8oZCCk/fSksWODQ','WQrYeJtcPW','F3BdQG','sWCgjG','hJdcPmoMWOa','WOlcHHxcKSoo','WRldPSoCWRldNSooW7lcMw4TaSoGWQNcMxldH8ku','hL3cUG1J','W4NcLmk2W5dcQCkYW4lcPhigomob','sSoZrHpdMtqc','AMtdRcHRWRpdN2SBsCkOwMT8WRHCW5KBW6JcKL3dNmoPbCow','dKxcIdvp','ngBdOq','q8kTWQy','smo2W4KyW4tcOYtdIZlcVYNdVsO','W5LeW5pcPbjcqSk1','W4PrW4NdUHacw8k0Dmk2W4Hk','uKhdOKBdO8kAWQVdGI/dM8oJvhb6W4ZdOCkPyrpdSM8ka0pdSCkLhmkVCSkDCCo2W5u','u1ee','W4DoW4C','FSoiWPq','WOSrlSkLWQ8','zJ3cQW','lmkTACkrW7qIcCkgWPldPSo8WPxdMSk2W44Wtq','WO3dMmkivCk1','WOWNWRhcKmoT','uhpdGG','WPhcQ8ogWOWWWPFcJ8ob','WObjhCovAq','4PUBW67LV7JLKi/KUjxNKPhLJ43PHBpVVBdcMqNdVXavigXKW6hcO8oOW6lcLCkfpmkKWQLWW7xdHbeWmmkfkCo2lXFcTa','8lwQISkaWRmywgxcVZhcSmojbWZcRJVORilMSztPLkxORQXM4P+jWQ7NR57LKl3OJPVLJyJLPjZOT54','yIW9f8kmCupdSSoOW6xcPKSfbfxdMHJcT0BdKhi','uuVdNCo6ia','rSoJWOhdTIi','W6XrgCoQ','5Bs56k+c5y6W5P2U5z+d572X5AYJW6NcOMNcL8onW4y','l8kaxmkuW6C','WQjGAG','8kcOUq4JW6KIlLvzWR/cSCoZWO3dUmoh6k+O5RgY5AEj6lEolW','EtWy','pb7cLq','W6HEW4NcTW','aSk/x8kDW7m'];}())];}())];}());lil1ll1l=function(){return i1iii1II;};return lil1ll1l();};function Iil1l1ll(lIi1ilIl,Il1il1II){const iIilil11=lll1l1I1,ili1I1i={'BWYtr':function(I1liIil,IIiIIliI){return I1liIil+IIiIIliI;}};return ili1I1i[iIilil11(0xf5,'cY2M')](Math[iIilil11(0x105,'h811')](Math['random']()*(Il1il1II-lIi1ilIl)),lIi1ilIl);}async function IiiiilI1(liIl1i1i,ll1iiil){const lIi11llI=lll1l1I1,lIll11l1={'Usqqc':function(ilIill1l,I1ii1lii){return ilIill1l==I1ii1lii;},'rgjKu':function(lI1iI1II,iliii1I1){return lI1iI1II*iliii1I1;},'ADiLS':function(I1IliI1l,Il1I1lI){return I1IliI1l(Il1I1lI);},'oKtvT':function(iI1lI111,IlIl1lli,l1IiIiI){return iI1lI111(IlIl1lli,l1IiIiI);},'dViOF':function(i1ilI1Ii,l1li1iII){return i1ilI1Ii!==l1li1iII;},'IijFR':function(iIIIIll1,ll1li1I){return iIIIIll1===ll1li1I;},'WqaSx':function(iiIIliil,ll1i1ill){return iiIIliil!==ll1i1ill;},'mTRgk':lIi11llI(0x149,'&@ph'),'phgYJ':lIi11llI(0x154,'&@ph'),'dIXGF':lIi11llI(0x140,'Gk(e'),'SBEMt':lIi11llI(0xe4,'cY2M'),'cAGaC':lIi11llI(0x111,'&DGM'),'IVjAn':lIi11llI(0x112,'MFo0'),'HNNtr':'gzip,\x20deflate,\x20br','RDWKi':function(iilli11I,Il1iIiil){return iilli11I===Il1iIiil;},'rOTFI':lIi11llI(0x153,'I3gu'),'AobnA':function(l1il1iii,ll1iIIIl){return l1il1iii&&ll1iIIIl;},'YNXyB':function(lli1lI1I,lllI1lI){return lli1lI1I(lllI1lI);},'vOrax':function(IIIIIi11,llI1Ili1){return IIIIIi11+llI1Ili1;},'EKSbc':'☑️\x20getToken\x20Redis缓存成功\x0a','xTvGD':lIi11llI(0x122,'#dhz'),'Ftkvk':'GrxKh','SKfKa':function(lll1lIiI,lIl1Il1I){return lll1lIiI(lIl1Il1I);},'nwRRK':function(Ii11l1I1,lilIlIIi){return Ii11l1I1(lilIlIIi);},'XSmUr':function(iliI1i1i,III11Iil){return iliI1i1i===III11Iil;}};async function l1IIiI1I(i1IiIil){return new Promise(I11IlliI=>setTimeout(I11IlliI,i1IiIil));}let lI1l1ll1=0x0,I1iI1lI='',iIIi111=lIll11l1['oKtvT'](illlll,liIl1i1i,/(?<=pt_pin=)([^;]+)/);if(iIIi111){let iI1i1ii=lllliill(iIIi111,ll1iiil);I1iI1lI=liIiiiil[lIi11llI(0x142,'kQFz')](iI1i1ii)||'';if(I1iI1lI){if(lIll11l1[lIi11llI(0x173,'M[Wo')](lIi11llI(0xe2,'dsAr'),lIi11llI(0x106,'9P1x')))return console['log'](lIi11llI(0x167,'Y)!#')),I1iI1lI;else Iliill1l[lIi11llI(0x128,'NND%')](lIi11llI(0x130,'F35Q')),lili1ii[lIi11llI(0x165,'amDo')](ilIi1i1);}if(lIl1Ii1){const l1IIIil=encodeURIComponent(II1Ilii1?lIIiIli1[lIi11llI(0xeb,'4@)S')](/<pt_pin>/g,iIIi111):''+lIIiIli1+iIIi111);I1iI1lI=await lIl1Ii1[lIi11llI(0x141,'UkUh')](l1IIIil)||'';if(I1iI1lI)return I1iI1lI;}if(lIll11l1[lIi11llI(0x125,'JDrK')](I1iI1lI,'')){if(lIll11l1[lIi11llI(0x13e,'oyH9')](lIll11l1[lIi11llI(0x14f,'PJBd')],lIi11llI(0xe3,'D5au')))il1III1i[lIi11llI(0x158,'WViT')](lIi11llI(0x163,'NND%')+iil1lili['message']);else{let iil1iI11=await lIll11l1[lIi11llI(0x102,'cs8&')](lIi1iI,lIll11l1['phgYJ'],{'url':ll1iiil,'id':''});if(iil1iI11)try{if(I11llIIl)body=iil1iI11?.[lIi11llI(0xdd,'^Gpc')]?.[lIi11llI(0xf3,'JDrK')];else{if(lIll11l1[lIi11llI(0x12b,'JDrK')](lIll11l1[lIi11llI(0xf1,'NND%')],lIll11l1[lIi11llI(0x172,'qV[N')]))body=iil1iI11?.['body'];else return lIIi11lI[lIi11llI(0xe1,'h*3j')](lIi11llI(0x124,'cs8&')),iIlIII1l;}const IIiI1li=await lliII111['post'](lIi11llI(0xed,'cY2M'),{'headers':{'Host':lIll11l1[lIi11llI(0xdc,'^XFY')],'Content-Type':lIll11l1[lIi11llI(0x108,'dsAr')],'Cookie':liIl1i1i,'User-Agent':lIi11llI(0xd9,'JDrK'),'Accept-Language':lIi11llI(0x146,'WViT'),'Accept-Encoding':lIll11l1[lIi11llI(0x147,'9P1x')]},'body':body,'timeout':0x7530})['catch'](async I1illil=>{const IIIilill=lIi11llI;if(I1illil?.[IIIilill(0x11c,'4@)S')]){if('nQcNo'==='CgOaO')return I1lIIII;else{console[IIIilill(0xef,'cY2M')](IIIilill(0x162,'p9R5')+(I1illil['response'][IIIilill(0x13d,'sFGH')]||'')+'\x20('+(I1illil[IIIilill(0x11c,'4@)S')]['statusMessage']||'')+')');if(lIll11l1[IIIilill(0x11d,'p9R5')](I1illil?.[IIIilill(0x110,'&DGM')]?.[IIIilill(0xf2,'Q#xz')],0x193)){let IiI1Ilii=lIll11l1[IIIilill(0x12f,'v6Xf')](parseInt(IIl1il),0x3e8);await lIll11l1[IIIilill(0x119,'E4nk')](l1IIiI1I,IiI1Ilii);}}}else I1illil?.[IIIilill(0x148,'z$Kg')]?.[IIIilill(0x123,'h][Y')]?console['log'](IIIilill(0x127,'IXU%')+(I1illil?.['response']?.[IIIilill(0x144,'UkUh')]||'')+'\x0a'):console[IIIilill(0x129,'oyH9')](IIIilill(0xfb,'cs8&')+(I1illil||'')+'\x0a');});if(IIiI1li&&lIll11l1['RDWKi'](typeof IIiI1li,lIi11llI(0x145,'0C0z'))){if(IIiI1li?.[lIi11llI(0x14e,'v6Xf')]){let IiIl1IIi=JSON[lIi11llI(0x14c,'cs8&')](IIiI1li?.[lIi11llI(0x12a,'$R84')]);if(IiIl1IIi?.[lIi11llI(0x12c,'h*3j')]==='0'){if(lIll11l1[lIi11llI(0x121,')Udp')](lIll11l1['rOTFI'],lIi11llI(0x139,'JDrK'))){if(IillI1Il)lllIlii1=null;else{}}else{I1iI1lI=IiIl1IIi?.['token'],liIiiiil['put'](iI1i1ii,I1iI1lI,lliIIll);if(lIll11l1['AobnA'](lIl1Ii1,i1iIl1Ii)){const iIIii1iI=lIll11l1[lIi11llI(0x10c,'dsAr')](encodeURIComponent,II1Ilii1?lIIiIli1['replace'](/<pt_pin>/g,iIIi111):''+lIIiIli1+iIIi111),iIl1Ilii=I1iI1lI,lllI1II=Math[lIi11llI(0x161,'M[Wo')](lIll11l1[lIi11llI(0x16a,'E4nk')](Date[lIi11llI(0xff,'4@)S')](),lliIIll)/0x3e8);try{await lIl1Ii1['set'](iIIii1iI,iIl1Ilii),await lIl1Ii1[lIi11llI(0x101,'4s$3')](iIIii1iI,lllI1II),console[lIi11llI(0x103,'gR88')](lIll11l1[lIi11llI(0x132,'cY2M')]);}catch(I1IiIIii){lIll11l1[lIi11llI(0x15d,'$R84')]===lIll11l1[lIi11llI(0xf4,'h*3j')]?Il11liIl=I1llliil?.[lIi11llI(0x166,'0C0z')]:console[lIi11llI(0x14d,'GDen')](lIi11llI(0xe6,'$R84')+(I1IiIIii['message']||I1IiIIii));}}let llIl1lI=lIll11l1[lIi11llI(0x151,'amDo')](parseInt,llii111i)*0x3e8;await lIll11l1['nwRRK'](l1IIiI1I,llIl1lI);}}else lIll11l1['XSmUr'](IiIl1IIi?.[lIi11llI(0x104,'kQFz')],'3')&&lIll11l1[lIi11llI(0xdf,'D5au')](IiIl1IIi?.['errcode'],0x108)?console['log'](lIi11llI(0x13b,'p9R5')):console['log']('🚫\x20getToken\x20API接口返回异常\x20➜\x20'+JSON['stringify'](IiIl1IIi));}else console[lIi11llI(0x113,'&@ph')]('🚫\x20getToken\x20API请求失败\x20➜\x20接口返回为空');}}catch(iiI1ili){console[lIi11llI(0x114,'&DGM')](lIi11llI(0x164,'^XFY')),console[lIi11llI(0xef,'cY2M')](iiI1ili);}else console[lIi11llI(0x156,'^Gpc')](lIi11llI(0x11f,'&DGM'));}}}return I1iI1lI;}module[lll1l1I1(0x12e,'9P1x')]=IiiiilI1;var version_ = 'jsjiami.com.v7';