KR/function/krgetToken.js

14 lines
19 KiB
JavaScript
Raw Normal View History

2023-09-09 10:31:22 +08:00
/*
new Env('getToken');
变量
JD_TOKEN_INTERVAL //获取接口403延迟等待时长正整数默认延迟 30s=30000ms
2023-09-09 11:16:51 +08:00
JD_NEWTOKEN_INTERVAL //获取接口成功延迟等待时长(正整数),默认延迟 0s
2023-09-11 23:17:35 +08:00
JD_CACHE_INTERVAL //缓存TOKEN时长正整数默认缓存 25 分钟
JD_PROXY_OPEN // 代理启用变量默认不开启true/false
JD_PROXY_TUNNRL // 代理地址变量,默认不开启,仅支持代理池模式(auto-proxy-pool)格式为http://ip:port
2023-09-16 12:02:21 +08:00
JD_NO_PROXY // 禁止走代理,默认 127.0.0.1,*.baidu.com 需要自行修改
2023-09-09 10:31:22 +08:00
根据自行需要设定缓存文件数据通用不再区分域名
*/
2023-09-18 11:47:53 +08:00
var version_='jsjiami.com.v7';const iIIll1il=iill1ill;(function(lIiIII11,I1llI1Ii,l1l11il1,iIl1iiiI,IIl1I1lI,I1iIIiii,l1l1II1l){return lIiIII11=lIiIII11>>0x5,I1iIIiii='hs',l1l1II1l='hs',function(i1iIil,I1lli1I1,llIli111,l1IliliI,i1l1lIiI){const il1IiIii=iill1ill;l1IliliI='tfi',I1iIIiii=l1IliliI+I1iIIiii,i1l1lIiI='up',l1l1II1l+=i1l1lIiI,I1iIIiii=llIli111(I1iIIiii),l1l1II1l=llIli111(l1l1II1l),llIli111=0x0;const ili11Ill=i1iIil();while(!![]&&--iIl1iiiI+I1lli1I1){try{l1IliliI=parseInt(il1IiIii(0x21b,'XT16'))/0x1*(parseInt(il1IiIii(0x19b,'hwGG'))/0x2)+-parseInt(il1IiIii(0x22a,'[IS*'))/0x3+parseInt(il1IiIii(0x22e,'uC0F'))/0x4+parseInt(il1IiIii(0x243,'S6@6'))/0x5*(parseInt(il1IiIii(0x194,'G6L@'))/0x6)+-parseInt(il1IiIii(0x1ba,'DyJQ'))/0x7*(parseInt(il1IiIii(0x1b0,'MjCU'))/0x8)+-parseInt(il1IiIii(0x1ec,'i7aB'))/0x9+parseInt(il1IiIii(0x23e,'$zbq'))/0xa*(parseInt(il1IiIii(0x227,'0Qpw'))/0xb);}catch(i11ilIi){l1IliliI=llIli111;}finally{i1l1lIiI=ili11Ill[I1iIIiii]();if(lIiIII11<=iIl1iiiI)llIli111?IIl1I1lI?l1IliliI=i1l1lIiI:IIl1I1lI=i1l1lIiI:llIli111=i1l1lIiI;else{if(llIli111==IIl1I1lI['replace'](/[wBSWEbVtlqLOUYDrMhIGg=]/g,'')){if(l1IliliI===I1lli1I1){ili11Ill['un'+I1iIIiii](i1l1lIiI);break;}ili11Ill[l1l1II1l](i1l1lIiI);}}}}}(l1l11il1,I1llI1Ii,function(I1lI111i,IiIi11I1,I1I1II11,illIiiIl,l1IIlI1l,lIIlliiI,iIilI1li){return IiIi11I1='\x73\x70\x6c\x69\x74',I1lI111i=arguments[0x0],I1lI111i=I1lI111i[IiIi11I1](''),I1I1II11=`\x72\x65\x76\x65\x72\x73\x65`,I1lI111i=I1lI111i[I1I1II11]('\x76'),illIiiIl=`\x6a\x6f\x69\x6e`,(0x13ec23,I1lI111i[illIiiIl](''));});}(0x1900,0x7f9ca,iliIi11,0xca),iliIi11)&&(version_=iliIi11);const lllllIll=require('got'),lII1iI1=require(iIIll1il(0x1d4,'$zbq')),I11illII=require(iIIll1il(0x242,'^liY')),lii1iII1=process[iIIll1il(0x1b5,'OyPA')][iIIll1il(0x1c8,'UfYs')]||'25';let lilill1I=parseInt(lii1iII1)*0x3c*0x3e8;const IlIiilii=new lII1iI1(lilill1I,__dirname+'/cache/token.json'),i11lIIl1=[iIIll1il(0x219,'3S05'),iIIll1il(0x1e3,'##vC')],iliIil=i11lIIl1[IlI1lil1(0x0,i11lIIl1[iIIll1il(0x1d9,'sSo^')])],Il1Illi1=iliIil,Il1ili1l=process[iIIll1il(0x1a2,'Bj77')][iIIll1il(0x1f8,'ajhl')]||'',li11l1Ii=process[iIIll1il(0x1a0,'$7T5')][iIIll1il(0x22f,'x3Dj')]===iIIll1il(0x23b,'VpY('),lIll11I=process['env'][iIIll1il(0x21c,'XT16')]||'',iIIlilIi=process[iIIll1il(0x217,'qtdy')][iIIll1il(0x196,'Bj77')]||'127.0.0.1,*.baidu.com',I11l1iI=process[iIIll1il(0x1f4,'^liY')][iIIll1il(0x1f0,'[IS*')]||'30',liii111i=process[iIIll1il(0x21a,']cWC')][iIIll1il(0x1c0,'$zbq')]||'0';function iliIi11(){const i11iiIIi=(function(){return[...[version_,'MStVjBsbjILiSGEawmBhiVU.cOlYoWm.vq7DgbrL==','WPFcUmk6q0ldLSknWO8NW4ldRuH7Bmo3WQBdL3FcRstdIWzarSk1','4PMK77QWWQdKU6VNKQhLN5dLNipKURRVVRm','W7hNPkmhW4re5OQI5yM156+q5BYtia','4PMxd+w8JEwjNUAJJ+A2Q+wkO+w2SUw+PUwsQos4LoEtSE+8Pos/UUAFQ+wGRowhLEs4JEEsM+wCQowEMowmG+MgGq','W4eKAq','bN/cKWhcSW','q8ojW5Go','WR3cNKa','8kIlK8kcp8oLWPRcPrKOW5H9jSkkd8kY6k6j5RcJ5AEf6ls/WQu','amojWRe7jSknWPJdO01DqSkNW5S','hSopWOqBhJK','4PIC77MsnUs4NUEtSEw2Row/VEwqG+++U+w6RUIUMEISMEE/KCk2WQzDFgpNRPNLV6RMLkZPLOBKUBdcS8oNWRlNPAC','bmotjmkaW68','WQz4gcDBWQRcKSkjdI8btLRdPuZcJhS','ArddOczp','lGZdGYZdTCkDWRizj8oy','le4c','iv3dOW','xaNdUbJcVmoTESoCWQFcJq','muRdVConaa','WPXtWQj0xW','A8oIW6mKsJtdPtmNW4JcKCkjmq','WRabwCk8WRq','quPLWPvaW5JcI8kbisVdRWVdR2/cLmoZssr+ytJdH8ouW47dP2W9ymkwv8kwd8okmHvYWOVdS8oPWOuIWQldP8oCguTx','wL0BWOTF','teiEWR5rW7ZcU8kUa0hcKgK','DqtcOSkOx8khuCohW75wWR7dQmoO','8j6kSZBcLmkjiSoytCoNWQJdK8o/W7KJooISLoAWPUwLRoI0Jta','eCoEW7rP','wZFdJt7cHW','WOr5yJSl','EKldOga','8koRPIpdQCokWOvst8oxBCoHnqVcHYdLNl3LPjNNK5dORA3MSO7ML7dPGQJLIR3KUiFPL7FORjS','pComWRaObmoN','WQJdJmk8p8otwJjVrJxdNf3dSG','o8oqW7vsW6m','WQPRvW','WQJLIkhPKO98','4PIJ77UZFos7PUEtREw1MEw9VowrMo+9GEw6P+ITQ+ITMoE9RXZcNmkSWQbg566j5BYB5PEh6zwx5lUHW5pcGJZNPR0','ib3cTSk2','lX3cTq','8yglHHdcVmkMW68eW7ZcVNics8kGmJpMJOpLJi7OVlRLMPJLVjhLUy3dQEkFT8oo','WQxcTSk7h3S','4PQVtUw8OEwlQ+AJQUA2JEwlU+w0I+w/TUwqNEs6SEEsKo+/VEs8V+ADHowGK+whRos7IoEqNowER+wEG+wmVoMgLq','wCoFCa','8lM6RJNcSH/cHSooWPX6W4Pim8o2WPlcN+IUN+AXRUMxGEITMvRINRzd566j5zkx6i6m5yYW5AED6lEy','WOKmqSkOWQy','WPnDWRe','W48KASoh','hHpdIZ3dIW'