jdpro/function/krgetToken.js

15 lines
18 KiB
JavaScript
Raw Permalink 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.

/*
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 || JD_ISV_TOKEN_CUSTOM_CACHE // 定义默认缓存文件路径 此文件默认存储在仓库 `function/cache` 目录下
根据自行需要设定,缓存文件数据通用,不再区分域名
*/
var il='jsjiami.com.v7';function iii1II(_0x585bd0,_0xc64d7f){const _0x94669d=Iii11l();return iii1II=function(_0xd45819,_0x7b037f){_0xd45819=_0xd45819-0x1af;let _0x50cb39=_0x94669d[_0xd45819];if(iii1II['sMerXm']===undefined){var _0x3b1214=function(_0x5d3363){const _0x28635a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52addb='',_0x12c896='';for(let _0x454219=0x0,_0x2ab6a7,_0x295e2b,_0x10fc3f=0x0;_0x295e2b=_0x5d3363['charAt'](_0x10fc3f++);~_0x295e2b&&(_0x2ab6a7=_0x454219%0x4?_0x2ab6a7*0x40+_0x295e2b:_0x295e2b,_0x454219++%0x4)?_0x52addb+=String['fromCharCode'](0xff&_0x2ab6a7>>(-0x2*_0x454219&0x6)):0x0){_0x295e2b=_0x28635a['indexOf'](_0x295e2b);}for(let _0x16488e=0x0,_0x40b971=_0x52addb['length'];_0x16488e<_0x40b971;_0x16488e++){_0x12c896+='%'+('00'+_0x52addb['charCodeAt'](_0x16488e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x12c896);};const _0xd685c1=function(_0x5cec83,_0x333c83){let _0x578a5b=[],_0x477450=0x0,_0x33b485,_0x2b952e='';_0x5cec83=_0x3b1214(_0x5cec83);let _0x3719a8;for(_0x3719a8=0x0;_0x3719a8<0x100;_0x3719a8++){_0x578a5b[_0x3719a8]=_0x3719a8;}for(_0x3719a8=0x0;_0x3719a8<0x100;_0x3719a8++){_0x477450=(_0x477450+_0x578a5b[_0x3719a8]+_0x333c83['charCodeAt'](_0x3719a8%_0x333c83['length']))%0x100,_0x33b485=_0x578a5b[_0x3719a8],_0x578a5b[_0x3719a8]=_0x578a5b[_0x477450],_0x578a5b[_0x477450]=_0x33b485;}_0x3719a8=0x0,_0x477450=0x0;for(let _0x277f1e=0x0;_0x277f1e<_0x5cec83['length'];_0x277f1e++){_0x3719a8=(_0x3719a8+0x1)%0x100,_0x477450=(_0x477450+_0x578a5b[_0x3719a8])%0x100,_0x33b485=_0x578a5b[_0x3719a8],_0x578a5b[_0x3719a8]=_0x578a5b[_0x477450],_0x578a5b[_0x477450]=_0x33b485,_0x2b952e+=String['fromCharCode'](_0x5cec83['charCodeAt'](_0x277f1e)^_0x578a5b[(_0x578a5b[_0x3719a8]+_0x578a5b[_0x477450])%0x100]);}return _0x2b952e;};iii1II['ezgSSz']=_0xd685c1,_0x585bd0=arguments,iii1II['sMerXm']=!![];}const _0x3da425=_0x94669d[0x0],_0x335253=_0xd45819+_0x3da425,_0x5534d1=_0x585bd0[_0x335253];return!_0x5534d1?(iii1II['cbgdzJ']===undefined&&(iii1II['cbgdzJ']=!![]),_0x50cb39=iii1II['ezgSSz'](_0x50cb39,_0x7b037f),_0x585bd0[_0x335253]=_0x50cb39):_0x50cb39=_0x5534d1,_0x50cb39;},iii1II(_0x585bd0,_0xc64d7f);}const lllll=iii1II;function Iii11l(){const lllill=(function(){return[...[il,'lJjgsNjLOiKakOwmiDSS.OcENyoeBmwg.NxCvfn7==','tCoBWOjcWQVdMMKCxXtdGq','4PIy77QJBwpdTCoTW7xdHowMI+I1K+ESJEw9PG4','uYPEWRFcGW','WQG6WOFdSmoX','WP9PWQicW5qscSkWkCkgm8kP','WPVdLLK','W5ldHWhdPW','WPldI0ZdTmoa','wmkJWOq','W5NcJZm','bSk0BhhdTq','W5ZcKYldGIVcNMZcSLZcV1hcMGS','WRP3x8k9','4PUzW4xOR63NN63MM6tKUj3NKPBLN6hLNPxKUk7MLzZMJQBKUyZNKQ7MS47MQ67LVjNcG8kEch9limoRiSkjdmkTW4H/lSkgW5fA','hmknWP0smq','x8keW6RdOh8','WQ04W5FcObe','WRddGIrq','s8ozWOznWQtdO0iBzbtdHW','f8oodG','W4HxiqFdPCorAH4','4PQD77IKW6lKUP7NKOhLTO7LVONLKAlVV4hLUPpORkBORBVNVQTmWQVcHNFcToETVow9N+AwJEMvO+s6N8kEqqdNPj0','WO8pgmolWRldLSkyW65L','n8kNW50wW7C','vCkhW6i','lCkECxJdQxm1WPW3f0bGWR3cH8o7','aZal','W7GCx1pcRa','n8o8FJVcUSo/B8k1EuZdRmomWOJdJmkuWOCO','lCkECwBdVMS5WOOJbLTXWRRcM8oJm25RWRRcVa','W5XoW6lcSmkfnbtdImkhsCkR','WRWHW5BcNte','WRSCWRDhW6i','zCodkG','W4pdPSkXfetcPHWtvc8','ndv/W4rU','WQLhWPVcO33dHmoTnI7cLq','fCkJW6VdK8oGWRrCwGC','W7n9BSonWR0','xSkeW6RdRwXTW6zLW5ddVmksvSoFaf80wSoUW7pcHJBcLa','WR8tW7qUW4WyW6mFWRK','6kYQ5A+06kcEu8oRimowFSkEW7mhW7nrW5ZdQos9RUI1OE++H+AiI+IbIowrRUEvGos5PEEsGU+/ISoB','W5hdISot','8lg6MxiqW6/dI00uWQtcLCoxWOWsfCoe6k2i5RgJ5AAB6lwtWO7IN4lcT+AmPUwoJUI/PEwyS+s6M+EPQq','WOWgWRpdK8o0','bZHPW75yW6hcHSo6zSoFESk8W4iixwHk','WQJdIda','W455uG','WOpdG8ogyZ54cGHT','WRLuWP/cSw0','WP3cTCoVsvq','y8oOWQqyne05WRq','5Bwe6k205y6e5P6X5z2c57YT5AYLh8ocW4y2xSki','irnr','wJjX','W4XOs8oWWPW','WQ5CWPhcSMy','W5VdKam','dt86W6Gs'],...(function(){return[...['WR9TwmkjWRy','ECoTFbNcUG','kCk6W5GcW6ldNSkT','WOBcJfBdVrS/DIJdNq','cJeA','W6ecp8kpWOK','WRDjWQNcN3G','W5BcLCkcDq','qGrqWORcTq','fCkkFq','fCkYEMZdRq','s8okW63cJq9knGpdVwldNZdcHaXhqbaAW63dOJfWW7hcLMFcKCojoCoF','nCk3oq','FbpdHCkmW7a','4P+7WP8dW6ehkLi5W6PbAmocW5K/EMJNVlhLRQpLPlNOTj8b4PYjW7e','rmo0WRNdUq','4PIEgoIVN+EDMEAAUos5M+EtU+wELowDO+s7O+AuT+ApH+s4JoErOEAZQ+AQSUw8Nmo0sCoSmr0VWQVcPKxdR8kgW43dSfajWO90','5BEn6kYN5yY+5P6c5z2r57Yz5AYHsSolW6VcNdfx','WQX5kW','zmoQWOtdPSoz','c8koW4CeW7ZdT3q/','pmkBEqlcRCkWW6ldR8o0eJFcIG','4PQk77M/Cos4G+EtQEwCPowDOEs5UE++TG','qXbrWQJcUG','WQv4oG','WQHsWPtcS2FdMG','mmknFgNdLa','uKr8','4P6MvSkZW6tdHYK2W6lcRxpdNeFcNvVcV37MQlVLNzxLIQROV6NLPidOT50l4P6hdG','umonubxcMq','q8oOeN7dICoqW4/dVSo1pqhcRxfOWPbLmSkZA14/c8o8W7iJ','vXvbfHdcS1z7W4FdUW','AvCXqmk9','rZxdRSkNW6K','WP/cPmo3xqNdHKSsChy+a3FdLmorWQSkWOXMcCoHse92WRa','jSomaNiJ','DCkyWRFdUI5bphddU8osWRWBfmojmSkfWRRdVCoPgMRdSxPs','WRX2tq','c8k1sq','FSkzW5/dTNG','W7JcSmkPwIHjpXbKo8kR','4PQ4WR/LVyZLIjxMOjlMT5hLIBdLTlpLVjBLKiJKUARNKQtVVQRKV6dMN43LOOpLH5/KUjRNKRxLNRdLN7dLJQxPHQi','W4rqbCo0WORdLSkoWOLGAcpcT8osvG','W69eWQWlW6ioW70yWR8f','iwGJ','cSkrFepdLG','8ls7TSkWxmkiuXdcScNcOHFdI8kVWPre6k+/5Rcq6zwc6k2riEkDMr3NRlRLKlpOJAZLJ5/LPQ/OT5G','dSkBW7qLW4ZdSSknESkhkgjoWRZcL2jTWR4TACo5bfmNqG','dSkJhq','8jMQLevJWO5pWQGwBmogwH7cN8kCW6ZORkZMSPhLPkFOT5bq','dmkUW54vW4u','W4BcIWNcTCkcoCkLFSowWRVdR8kTWRBcHmone8oGmJRdPLm','uEEMKCoKW5/cT+E8PUwUOUAxPUMvKSon','zCo5cvBdMW','W6PWoX7dOW','omkyFW7cO8kZW57dHCornW7cOq','WPFdHJntW5u','W61LvSooEa','W4ldVtVdSa','n8kZfLz1','aHbfaIC'],...(function(){return['aSkyW78fW7q','uSoPWRtdRq','WPqDmrBdQCoxFftcPSkEW53dIsS','EbvJ','hcBcT8oqW7zsWP8','W53dRHxdMGm','nMmMd8oaW6JcJde','qqNdIq','eowjUEMtPCkc','ka5eW552W4BcQW','W44Pp8kNWQa','qhddTSoAW790WRfQW7q','c8koW4qyW7ldUMi','i2mHn8oaW7pcJsC','xbaD','cJb5W79yW67cKCo+FSotESk8','xmkgW7m','W5hdTtVdRv4Egq7dI8obmKtdP8kbjJH8','Bmoukfq','kmo+feO/','W41wtCoDWRG','WOGzWRddUa','iSknygddLq','uCoBW73cLey','W4BcHSkdCq','wSkYWP4','xJ5BWQVcVwCxWO3dNCkymcVdNq','uSkpsdDFamosW4rHFCoQ','u8kZWO8','i8kTlKzet8obW6Ljpq','FuzChqCSW6ldSW','W4hcIMVdQSogvSoZfW','W5mKbmkWWRbeCWZdTbG','t8orW74','mmk3WPu3gq','c8k/qe/dJ1q','fCk/xvJdLfiEWQa','W4b5uCoe','W4SLW6buWP9tnW','W61BWQTtW6PsW6mPW6mkW6FcQa','zWvSWQBcPW','8yw7NCo0W6BdLGKnW6BcO3JcKJxcUw/cN+wCPEwKNUEqHoIVVEAZLUAxH+McV+wiM+s6NEMuT+IUGW','vXOo','8yM6MmoAWRbTW4pdUJyHWPudW7ZcJYJdRowDOowMHUEtNUIUVEAYGUAvPUMdK+wjT+s7SUMuGUIUSG','fUEMJZBdT3VMIQ7LIOZNR7FLVQLj','W57cGrpdIJG','8lc6KWJdM8koW4ZcQColsen2W6BcRJFdGUITPoAXKEwNREI0JCkt','gSkDegf4E8omW5LMcJ4KWO4','4PUzW4xLJ4lPH4FVVQ3cM8oOWQhcUSkzb8khW6xdRmoXWP9eW6tcPYruCfJdLr7cTdJdQCoczZxcNConsCoSm1ddUmk2AmkiW5C5W5tdPEs4OEwIUEEyNUI+MSkk','W5/dMb7dGbK','WQn5kmkl','BSklWRvzeq','d0Wu','W65Yq8otWOK','WOyzWRm','imo3nuqUnCoDW6Hot8o+WOe','pCkjW4y+WQpdU0n2Bbi','W4iltfNcMmkZwW','W5mbuKpcNmkIsMnXmW','WOdcLmktpe/dSYddOCoyWQbm'];}())];}())];}());Iii11l=function(){return lllill;};return Iii11l();};(function(lllii,iI11Ii,iIII1l,lllil,iI11Il,iIII1i,iil1i1){return lllii=lllii>>0x6,iIII1i='hs',iil1i1='hs',function(il1i11,IlIll1,IlIII,ilil1l,illlIi){const IIIl1l=iii1II;ilil1l='tfi',iIII1i=ilil1l+iIII1i,illlIi='up',iil1i1+=illlIi,iIII1i=IlIII(iIII1i),iil1i1=IlIII(iil1i1),IlIII=0x0;const I1lIii=il1i11();while(!![]&&--lllil+IlIll1){try{ilil1l=-parseInt(IIIl1l(0x24e,')R9N'))/0x1+-parseInt(IIIl1l(0x204,'H66('))/0x2*(-parseInt(IIIl1l(0x236,'w&#k'))/0x3)+parseInt(IIIl1l(0x22c,')R9N'))/0x4+-parseInt(IIIl1l(0x20c,'NVbM'))/0x5*(parseInt(IIIl1l(0x1db,'TTQ('))/0x6)+parseInt(IIIl1l(0x1bf,'7Kci'))/0x7*(parseInt(IIIl1l(0x1fa,'QdnS'))/0x8)+-parseInt(IIIl1l(0x1be,'fip#'))/0x9*(-parseInt(IIIl1l(0x1bb,'!mS3'))/0xa)+parseInt(IIIl1l(0x1ee,'dPMY'))/0xb*(parseInt(IIIl1l(0x25f,'PRy%'))/0xc);}catch(IiI1I){ilil1l=IlIII;}finally{illlIi=I1lIii[iIII1i]();if(lllii<=lllil)IlIII?iI11Il?ilil1l=illlIi:iI11Il=illlIi:IlIII=illlIi;else{if(IlIII==iI11Il['replace'](/[gKnSDJNEkCxeBlLOwfy=]/g,'')){if(ilil1l===IlIll1){I1lIii['un'+iIII1i](illlIi);break;}I1lIii[iil1i1](illlIi);}}}}}(iIII1l,iI11Ii,function(illlIl,i11ill,IIIIIi,IIIIIl,I1lIil,IIIl1i,liiII1){return i11ill='\x73\x70\x6c\x69\x74',illlIl=arguments[0x0],illlIl=illlIl[i11ill](''),IIIIIi=`\x72\x65\x76\x65\x72\x73\x65`,illlIl=illlIl[IIIIIi]('\x76'),IIIIIl=`\x6a\x6f\x69\x6e`,(0x14d220,illlIl[IIIIIl](''));});}(0x3180,0x2f81f,Iii11l,0xc8),Iii11l)&&(il=Iii11l);const lIIill=require('got'),I11iIi=require('./krgetSign'),I1ilII=process[lllll(0x1b9,'N^3F')][lllll(0x209,'m[Ij')]||'25';let I11iIl=parseInt(I1ilII)*0x3c*0x3e8;const l1l11l=require(lllll(0x256,'4Q$a')),IilIil=new l1l11l(I11iIl,process[lllll(0x22f,'pCh]')][lllll(0x235,')R9N')]||process['env']['JD_TOKEN_CUSTOM_CACHE']||__dirname+lllll(0x1f8,'Gk$m')),l1iIi=[lllll(0x222,'r8c['),lllll(0x239,'!#pv')],l1l11i=l1iIi[lilIl(0x0,l1iIi['length'])],l1iIl=l1l11i,illIll=process[lllll(0x223,')8Eg')][lllll(0x1cf,')8Eg')]||'',iIli1I=process[lllll(0x25b,'rCvn')][lllll(0x1ba,'9#JQ')]===lllll(0x1b8,'NVbM'),Iiil1=process[lllll(0x206,'TTQ(')][lllll(0x1f5,'8gDF')]||'',iiilli=process[lllll(0x25b,'rCvn')][lllll(0x23f,'NVbM')]||lllll(0x24a,'7Kci'),l1iIIl=process[lllll(0x1f6,'rUU8')]['JD_TOKEN_INTERVAL']||'30',iiilll=process[lllll(0x1b0,'pzl3')][lllll(0x1f9,'8gDF')]||'0';let lI11Il=![];if(iIli1I){lI11Il=!![];try{require(lllll(0x203,'pzl3')),global['GLOBAL_AGENT'][lllll(0x1c0,'EaQM')]=Iiil1||'',global[lllll(0x1d7,'!mS3')]['NO_PROXY']='*.kingran.cf,'+iiilli,Iiil1==''?(console[lllll(0x23d,'8gDF')](lllll(0x240,'Gk$m')),console[lllll(0x1e5,'^9##')](lllll(0x227,'!HBT')),console[lllll(0x220,'wpIi')](lllll(0x1d0,'wpIi'))):(console[lllll(0x232,'KoTY')](lllll(0x1f1,'H66(')),console[lllll(0x1c1,'r8c[')](lllll(0x22d,'EaQM')+global[lllll(0x1af,'m[Ij')][lllll(0x1d8,'^iTN')]+'\x0a'));}catch(iIli11){console[lllll(0x1e4,'qn2m')](lllll(0x205,'h%pO'));}}else console[lllll(0x215,'JGFn')]('⚠\x20检测当前模式未开启代理默认直连运行'),console[lllll(0x20b,'*hVu')]('⚠\x20开启代理变量export\x20JD_PROXY_OPEN=\x27true\x27\x20\x0a');console[lllll(0x212,'Pz0p')](lllll(0x1dd,')R9N')+l1iIIl+lllll(0x1cc,'Pz0p')+iiilll+lllll(0x24b,'PRy%')+I1ilII+lllll(0x25c,'FeBp'));const lIII1i=process['env'][lllll(0x23b,'N^3F')]||'',l11i11=process[lllll(0x243,'TD#t')][lllll(0x246,'3SEB')]||'',IilIl1=!(process[lllll(0x23c,'(D]9')]['JD_TOKEN_REDIS_CACHE_SUBMIT']===lllll(0x1fc,'h%pO')),lIII1l=/<pt_pin>/[lllll(0x1ed,'hN5!')](l11i11);let l1iIIi=null;if(lIII1i){let Iiiil=null;try{Iiiil=require('redis');}catch(Iiiii){console[lllll(0x1fd,')R9N')](lllll(0x233,'QdnS')+Iiiii[lllll(0x258,'PRy%')]);}if(Iiiil)try{l1iIIi=Iiiil['createClient']({'url':lIII1i}),l1iIIi['on']('ready',()=>{}),l1iIIi['on'](lllll(0x1e3,'7Kci'),l11i1I=>{l1iIIi=null;}),l1iIIi['connect'](IiII=>{if(IiII)l1iIIi=null;else{}});}catch(llIIli){}}function lilIi(lIII1I='',illIlI){const i11ili=lllll,liIiI={'HROMK':function(Iiili,IilIli){return Iiili>IilIli;}};let l1il1I=illIlI[i11ili(0x1b2,')R9N')](lIII1I);if(l1il1I&&liIiI[i11ili(0x234,'Gk$m')](l1il1I[i11ili(0x1c3,'8gDF')],0x0))return l1il1I[0x0]['trim']();return'';}function l1l11I(li1,illIl1){const iil1l1=lllll,l1llII={'BPbbf':function(lI11Ii,Iiill){return lI11Ii>Iiill;},'WWRAo':function(l11i1i,lI11I1){return l11i1i>=lI11I1;},'mWDxj':function(l1il11,IiI1){return l1il11<=IiI1;},'OEnLP':function(liI,illIli){return liI===illIli;},'vSzJU':iil1l1(0x24f,'hN5!')};let IilIll=new Date()[iil1l1(0x261,'TD#t')]();if(l1llII[iil1l1(0x231,'8gDF')](IilIll,0x0)&&l1llII['mWDxj'](IilIll,0x17)){if(l1llII[iil1l1(0x1b3,'!mS3')](iil1l1(0x21f,'cBiZ'),l1llII[iil1l1(0x1c8,'cBiZ')])){let lIII11=Ii1iIi[iil1l1(0x1e2,'JGFn')](iliIIl);if(lIII11&&l1llII['BPbbf'](lIII11[iil1l1(0x1c3,'8gDF')],0x0))return lIII11[0x0][iil1l1(0x251,'TP8U')]();return'';}else return li1;}return li1+'_'+illIl1;}function lilIl(IiilI,ii1I11){const lllli=lllll,liIi1={'JChBS':function(lI11II,l1llI1){return lI11II+l1llI1;},'mKRkm':function(llIIll,IillIi){return llIIll*IillIi;},'aAuGV':function(lii,IllI1i){return lii-IllI1i;}};return liIi1['JChBS'](Math[lllli(0x1eb,'pzl3')](liIi1[lllli(0x244,'8gDF')](Math[lllli(0x230,'x4kq')](),liIi1['aAuGV'](ii1I11,IiilI))),IiilI);}async function IilIlI(i11I1l,lil){const iiili1=lllll,IllI1l={'puqPy':function(II1lll,II1lli){return II1lll(II1lli);},'GPZLl':iiili1(0x1b7,'r8c['),'zroof':function(ii1I1I,IiIl){return ii1I1I!==IiIl;},'sneaS':'eUBMM','vKndF':iiili1(0x1ea,'!@7^'),'SqRCl':function(IiIi,iI1ll1){return IiIi==iI1ll1;},'kaGGq':function(IlI1Il,l1il1l){return IlI1Il===l1il1l;},'mzSHp':'CEIoa','Zrvau':iiili1(0x22a,'d3@9'),'gjYdD':function(liIil,IllI1I){return liIil(IllI1I);},'BLSqB':'MurVM','joemj':function(liIii,II1ll1){return liIii||II1ll1;},'uEjaV':iiili1(0x1e9,'wpIi'),'anBYN':'⚠\x20变量export\x20JD_PROXY_TUNNRL=\x27http://ip:port\x27\x20不填直连\x0a','fucQO':function(IlI1Ii,i11I1I,l1il1i){return IlI1Ii(i11I1I,l1il1i);},'hgzDj':iiili1(0x20d,'x4kq'),'rPcLw':'GqZyu','rhTDV':function(ll1,iI1llI){return ll1===iI1llI;},'PJkob':function(llliii,IllI11,l1llIi){return llliii(IllI11,l1llIi);},'KcqTI':'cRQYX','ZYANS':'osoDY','ZGVBf':iiili1(0x23a,'!mS3'),'wunRR':'bxmGI','HrcfU':iiili1(0x1c7,'H66('),'kUoSR':'application/x-www-form-urlencoded','kyikf':'JD4iPhone/167650\x20(iPhone;\x20iOS\x2013.7;\x20Scale/3.00)','UYoGO':iiili1(0x1b1,'TP8U'),'RFGDH':function(II1llI,i11I11){return II1llI&&i11I11;},'XhXdA':function(l1llIl,ii1I1l){return l1llIl(ii1I1l);},'XtzrA':function(ii1I1i,llI){return ii1I1i/llI;},'FGTtw':function(llliI,iI1li1){return llliI+iI1li1;},'jeldg':'☑️\x20getToken\x20Redis缓存成功\x0a','yIIyw':'lUDaA','Oscsg':function(lllii1,liIli){return lllii1*liIli;},'oYrFW':function(liIll,IilIi1){return liIll!==IilIi1;},'MEFqV':iiili1(0x218,'Gk$m'),'fpgRG':iiili1(0x1f3,'dPMY')};async function i11I1i(iI1liI){return new Promise(l1lIiI=>setTimeout(l1lIiI,iI1liI));}let IillIl=0x0,llliil='',liIl1=IllI1l[iiili1(0x217,'(D]9')](lilIi,i11I1l,/(?<=pt_pin=)([^;]+)/);if(liIl1){if(IllI1l[iiili1(0x1d1,'JGFn')]!=='yBUCB'){let llliiI=IllI1l['fucQO'](l1l11I,liIl1,lil);llliil=IilIil['get'](llliiI)||'';if(llliil)return console[iiili1(0x1e1,'7Kci')](iiili1(0x210,'TP8U')),llliil;if(l1iIIi){if(iiili1(0x23e,'pzl3')===IllI1l[iiili1(0x213,'!HBT')]){const IilIiI=IllI1l[iiili1(0x1c2,'!@7^')](encodeURIComponent,lIII1l?l11i11[iiili1(0x260,'dPMY')](/<pt_pin>/g,liIl1):''+l11i11+liIl1);llliil=await l1iIIi[iiili1(0x1ca,'FeBp')](IilIiI)||'';if(llliil)return llliil;}else IIlii[iiili1(0x247,'EH!m')](iiili1(0x1cb,'x4kq')),IlI1il['log'](IilliI);}if(IllI1l['rhTDV'](llliil,'')){let IlII1=await IllI1l[iiili1(0x1d5,'!HBT')](I11iIi,iiili1(0x1e7,'^9##'),{'url':lil,'id':''});if(IlII1)try{if(IllI1l['zroof'](IllI1l[iiili1(0x253,'fip#')],iiili1(0x238,'rCvn')))return ill11I[0x0][iiili1(0x255,'d3@9')]();else{if(illIll){if(IllI1l['ZYANS']==='gDwTW')return lI1Ili[iiili1(0x229,'pCh]')](iiili1(0x228,'N^3F')),IliilI;else body=IlII1?.['data']?.[iiili1(0x242,'H66(')];}else{if(IllI1l[iiili1(0x1d3,'qn2m')]!==IllI1l[iiili1(0x1ec,'nA[^')])body=IlII1?.['body'];else return iIIl11;}const lli=await lIIill['post']('https://api.m.jd.com/client.action?functionId=isvObfuscator',{'headers':{'Host':IllI1l[iiili1(0x1f7,'NlAb')],'Content-Type':IllI1l['kUoSR'],'Cookie':i11I1l,'User-Agent':IllI1l['kyikf'],'Accept-Language':iiili1(0x241,'!HBT'),'Accept-Encoding':IllI1l[iiili1(0x25e,'EaQM')]},'body':body,'timeout':0x7530})['catch'](async llli1=>{const ill11i=iiili1;if(llli1?.['response']){if(IllI1l[ill11i(0x21c,'EaQM')](IllI1l[ill11i(0x1b4,'!HBT')],IllI1l['vKndF'])){console[ill11i(0x1d6,'QdnS')]('🚫\x20getToken\x20API请求失败\x20➜\x20Response\x20code\x20'+(llli1[ill11i(0x25a,'TD#t')][ill11i(0x200,'x4kq')]||'')+'\x20('+(llli1['response']['statusMessage']||'')+')');if(IllI1l['SqRCl'](llli1?.[ill11i(0x22b,'dPMY')]?.[ill11i(0x1bd,')8Eg')],0x193)){if(IllI1l[ill11i(0x259,'TP8U')](IllI1l[ill11i(0x21d,'x4kq')],IllI1l['Zrvau']))return new l1i111(iI1lii=>Iii11I(iI1lii,Iil1II));else{let IilIii=parseInt(l1iIIl)*0x3e8;await IllI1l[ill11i(0x252,')8Eg')](i11I1i,IilIii);}}}else i1l1li=IllI1l['puqPy'](i1ilii,IllI1l[ill11i(0x1de,'9#JQ')]);}else llli1?.[ill11i(0x1f0,'4Q$a')]?.[ill11i(0x1b5,'QdnS')]?IllI1l[ill11i(0x216,'rUU8')](IllI1l[ill11i(0x1df,'QdnS')],IllI1l['BLSqB'])?console[ill11i(0x262,'FeBp')](ill11i(0x248,'f%vD')+(llli1?.[ill11i(0x1c4,'8gDF')]?.[ill11i(0x226,'d3@9')]||'')+'\x0a'):lilIii=null:console[ill11i(0x262,'FeBp')](ill11i(0x1ce,'!HBT')+IllI1l['joemj'](llli1,'')+'\x0a');});if(lli&&IllI1l['rhTDV'](typeof lli,'object')){if(lli?.['body']){let iIli1l=JSON['parse'](lli?.[iiili1(0x1c5,'*hVu')]);if(IllI1l[iiili1(0x1cd,'^9##')](iIli1l?.[iiili1(0x1e8,'(D]9')],'0')){llliil=iIli1l?.[iiili1(0x214,'x4kq')],IilIil[iiili1(0x1ef,'!mS3')](llliiI,llliil,I11iIl);if(IllI1l[iiili1(0x22e,'cBiZ')](l1iIIi,IilIl1)){const liiIIl=IllI1l['XhXdA'](encodeURIComponent,lIII1l?l11i11[iiili1(0x1d9,'NlAb')](/<pt_pin>/g,liIl1):''+l11i11+liIl1),iil1iI=llliil,IlIllI=Math[iiili1(0x1fb,'nA[^')](IllI1l[iiili1(0x224,'rCvn')](IllI1l[iiili1(0x254,'3SEB')](Date['now'](),I11iIl),0x3e8));try{await l1iIIi['set'](liiIIl,iil1iI),await l1iIIi['EXPIREAT'](liiIIl,IlIllI),console[iiili1(0x20a,'hN5!')](IllI1l[iiili1(0x20e,'!#pv')]);}catch(il1i1I){IllI1l[iiili1(0x221,'8gDF')](IllI1l[iiili1(0x1ff,'m[Ij')],iiili1(0x24c,')R9N'))?console[iiili1(0x229,'pCh]')](iiili1(0x225,'JGFn')+(il1i1I[iiili1(0x219,'3SEB')]||il1i1I)):llIlil['log']('🚫\x20getToken\x20API请求失败\x20➜\x20接口返回为空');}}let i1i1II=IllI1l[iiili1(0x250,'*hVu')](parseInt(iiilll),0x3e8);await i11I1i(i1i1II);}else IllI1l[iiili1(0x237,'f%vD')](iIli1l?.[iiili1(0x1d2,'pCh]')],'3')&&iIli1l?.[iiili1(0x25d,'m[Ij')]===0x108?console[iiili1(0x21b,'rUU8')]('🚫\x20getToken\x20API请求失败\x20➜\x20账号无效'):console[iiili1(0x1bc,'N^3F')]('🚫\x20getToken\x20API接口返回异常\x20➜\x20'+JSON['stringify'](iIli1l));}else IllI1l['oYrFW'](IllI1l[iiili1(0x202,'!HBT')],iiili1(0x24d,'4Q$a'))?console[iiili1(0x211,'m[Ij')](iiili1(0x207,'4Q$a')):(i1l1lI['log']('⚠\x20当前检测到已开启代理但未填写代理地址变量'),i1iliI[iiili1(0x1d4,'w&#k')](IllI1l[iiili1(0x249,'dPMY')]),I1iIii[iiili1(0x1f4,'pzl3')](IllI1l[iiili1(0x1e6,'8gDF')]));}}}catch(iIII1I){iiili1(0x1b6,'8gDF')!==IllI1l[iiili1(0x208,'QdnS')]?(console[iiili1(0x257,'9#JQ')](iiili1(0x1c9,'QdnS')),console['log'](iIII1I)):I1lliI=llIllI?.[iiili1(0x21e,'NVbM')]?.[iiili1(0x1da,'NlAb')];}else console[iiili1(0x257,'9#JQ')](iiili1(0x245,'Cayq'));}}else return Iil1I1;}return llliil;}module[lllll(0x1c6,'Cayq')]=IilIlI;var version_ = 'jsjiami.com.v7';