加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_car_draw.js 36.99 KB
一键复制 编辑 原始数据 按行查看 历史
2024 提交于 2024-04-19 12:37 . 1
/*
京东汽车抽奖
cron "5 8,16 * * *" script-path=jd_car_draw.js, tag=京东汽车抽奖
*/
const $ = new Env('京东汽车抽奖')
var iil='jsjiami.com.v7';const lillI1=iii1II;function iii1II(_0x1d977,_0x5c9330){const _0x38152d=Iii11l();return iii1II=function(_0x1c46fc,_0x5e3bd8){_0x1c46fc=_0x1c46fc-0x184;let _0x504ca8=_0x38152d[_0x1c46fc];if(iii1II['txRUcD']===undefined){var _0x822613=function(_0x4126a7){const _0x5f4c2e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3c6811='',_0x4c4d5e='';for(let _0x53646e=0x0,_0x236c3a,_0x1344a1,_0x1020c8=0x0;_0x1344a1=_0x4126a7['charAt'](_0x1020c8++);~_0x1344a1&&(_0x236c3a=_0x53646e%0x4?_0x236c3a*0x40+_0x1344a1:_0x1344a1,_0x53646e++%0x4)?_0x3c6811+=String['fromCharCode'](0xff&_0x236c3a>>(-0x2*_0x53646e&0x6)):0x0){_0x1344a1=_0x5f4c2e['indexOf'](_0x1344a1);}for(let _0x3331a0=0x0,_0x56fc80=_0x3c6811['length'];_0x3331a0<_0x56fc80;_0x3331a0++){_0x4c4d5e+='%'+('00'+_0x3c6811['charCodeAt'](_0x3331a0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c4d5e);};const _0x4686a3=function(_0x2ee673,_0x3f59fe){let _0x554807=[],_0x1f6f4d=0x0,_0x2c2379,_0x13a91d='';_0x2ee673=_0x822613(_0x2ee673);let _0x3ee37b;for(_0x3ee37b=0x0;_0x3ee37b<0x100;_0x3ee37b++){_0x554807[_0x3ee37b]=_0x3ee37b;}for(_0x3ee37b=0x0;_0x3ee37b<0x100;_0x3ee37b++){_0x1f6f4d=(_0x1f6f4d+_0x554807[_0x3ee37b]+_0x3f59fe['charCodeAt'](_0x3ee37b%_0x3f59fe['length']))%0x100,_0x2c2379=_0x554807[_0x3ee37b],_0x554807[_0x3ee37b]=_0x554807[_0x1f6f4d],_0x554807[_0x1f6f4d]=_0x2c2379;}_0x3ee37b=0x0,_0x1f6f4d=0x0;for(let _0x227efe=0x0;_0x227efe<_0x2ee673['length'];_0x227efe++){_0x3ee37b=(_0x3ee37b+0x1)%0x100,_0x1f6f4d=(_0x1f6f4d+_0x554807[_0x3ee37b])%0x100,_0x2c2379=_0x554807[_0x3ee37b],_0x554807[_0x3ee37b]=_0x554807[_0x1f6f4d],_0x554807[_0x1f6f4d]=_0x2c2379,_0x13a91d+=String['fromCharCode'](_0x2ee673['charCodeAt'](_0x227efe)^_0x554807[(_0x554807[_0x3ee37b]+_0x554807[_0x1f6f4d])%0x100]);}return _0x13a91d;};iii1II['cIEVCI']=_0x4686a3,_0x1d977=arguments,iii1II['txRUcD']=!![];}const _0x1c019d=_0x38152d[0x0],_0x1597f0=_0x1c46fc+_0x1c019d,_0x43df6c=_0x1d977[_0x1597f0];return!_0x43df6c?(iii1II['OVpIQM']===undefined&&(iii1II['OVpIQM']=!![]),_0x504ca8=iii1II['cIEVCI'](_0x504ca8,_0x5e3bd8),_0x1d977[_0x1597f0]=_0x504ca8):_0x504ca8=_0x43df6c,_0x504ca8;},iii1II(_0x1d977,_0x5c9330);}(function(i11iil,Ill1i,ii1iil,lllI1l,i11iii,llI1Ii,lllI1i){return i11iil=i11iil>>0x6,llI1Ii='hs',lllI1i='hs',function(li1i1l,II1i1,lI1lll,iIiII,iil1lI){const lllI1I=iii1II;iIiII='tfi',llI1Ii=iIiII+llI1Ii,iil1lI='up',lllI1i+=iil1lI,llI1Ii=lI1lll(llI1Ii),lllI1i=lI1lll(lllI1i),lI1lll=0x0;const iiiliI=li1i1l();while(!![]&&--lllI1l+II1i1){try{iIiII=-parseInt(lllI1I(0x1b1,'n%f7'))/0x1*(parseInt(lllI1I(0x1bf,'WdFY'))/0x2)+parseInt(lllI1I(0x2b4,'M*3d'))/0x3+-parseInt(lllI1I(0x2b2,'y01l'))/0x4+parseInt(lllI1I(0x25c,'THSC'))/0x5*(-parseInt(lllI1I(0x212,'C@&P'))/0x6)+parseInt(lllI1I(0x232,'tmF$'))/0x7*(parseInt(lllI1I(0x237,'G&om'))/0x8)+-parseInt(lllI1I(0x25b,'$oCg'))/0x9+-parseInt(lllI1I(0x1b6,'0Fsu'))/0xa*(-parseInt(lllI1I(0x1c9,'n%f7'))/0xb);}catch(li1i1I){iIiII=lI1lll;}finally{iil1lI=iiiliI[llI1Ii]();if(i11iil<=lllI1l)lI1lll?i11iii?iIiII=iil1lI:i11iii=iil1lI:lI1lll=iil1lI;else{if(lI1lll==i11iii['replace'](/[NMGElbgKdwVHUJOWk=]/g,'')){if(iIiII===II1i1){iiiliI['un'+llI1Ii](iil1lI);break;}iiiliI[lllI1i](iil1lI);}}}}}(ii1iil,Ill1i,function(illIii,ii1il1,lI1llI,illIil,Ill1I,i11iiI,lIli11){return ii1il1='\x73\x70\x6c\x69\x74',illIii=arguments[0x0],illIii=illIii[ii1il1](''),lI1llI=`\x72\x65\x76\x65\x72\x73\x65`,illIii=illIii[lI1llI]('\x76'),illIil=`\x6a\x6f\x69\x6e`,(0x163e3c,illIii[illIil](''));});}(0x3240,0xf0672,Iii11l,0xcb),Iii11l)&&(iil=lillI1(0x2ab,'@^lv'));const jdCookie=require(lillI1(0x2c8,'PMNf')),notify=require(lillI1(0x276,'^l]i')),common=require('./utils/Rebels_jdCommon'),{H5st}=require(lillI1(0x22e,'^E$k')),isNotify=![];function Iii11l(){const l1l111=(function(){return[...[iil,'VwjKsMjViKMamOdUiUH.NWHcVbogmGg.Ekvl7EJH==','gSk6WPFcJ8kGE8o6W7CTWO7cMGC','5A6654Qp776w','tmoWWPlcRsu2WP02lwm','W5KAra','W5buW6OVDJBcKt7cQwe','WOpcRCo1W6TU','W5VcH8o5ACodDxbWACo4zCoIW4xcP8oxW5/cNMBdTCkfW6CdrG','W7dcISonuG','wCoyW5RdG8kl','DCoXhXVcHb8','4P6eW6hMNRJNNyJOR5pMS7Sy','yvxcG8kBWQe/','W5xcNHVdHKumW4NcMCkOW5DZW5C','rN7dOCkQnq','W6xdHb3cNmkwW6ztvSoPoSkZWOddSCoubdJcSCk7iG','W4rFF8ksW5LCgd1rWPqQeCk6W4mcp3qpW4JdTmosW5q','gSo0WP/cUcK','cZhcUM4a','j8oHuYi','W5FcHflcKSoC','qSkpW6iQWQvedW','WQO8vSkYW6G','WOf8vmk0W6C','W7xdHavLW6m','gv8DC0q','WQjEkSoMWOG','W7tcS0TJ','ACkDcmk8WRRdNKGvDLJcOmk5W5SGnq','W6JdOIjJW44','W57dGHjkW6LrW6/dKWj+','WQRcRSotW5e','W5qVw8kTqW','E8oOW4ddV8kCjrO','W4ydcCkVDKxdQ2hcSmoCnGbc','eJhcPKi/','k1qLyKW','W6yjWRu0','W6urfmkoqG','xmkNlSkJWPa','WRFdRJHDW5RcVSoBW5VcV1TfWRXAj8oQ','WP9dsmkoW7DKsa','r8kVD8kXmSobqGL4W4O','pmo2WOBcVZy','dKGaruddLSoTdmo4WOGDr8kesZiGCfv6','W5qsECkJhq','W7pcSXJdRfK','W5/cNmoQ','lCo1WRxcPYyvW5PAW6i','W6dcNmoREGi','WRpdUIfm','WQ3dTsTuW53cLSoBW4K','WQddUJXz','WOzrACk0W5S','W6pcPSo8CGO','W7HhWQpcQSk0','vmkuW6uXWQW','g8kEWQddGW','aCo9nSoLBSkknIP2W5SFhmkv','WORORy7MS6tLPBBOT6rV4P6hW7RML6BLKlRLU7lMLi7MJji','j8ojW6LkAq','W4/dGc9rW79ZW5FdNXX5','W5ZcMu/cG8oGya','W4FdKJRcPSkU','c8kJWOBcO8kf','W4ixcCkS','WP7dLCkVgmo9W6W','W4uzsWFcRxXTzG','pmo3WOJcVdaQW69dW7q1tda','D07cHSkvWQe','uhBcKgHg','WQ3cS8oGW6bxW54','E8kylmk4WRVdUweDyLK','W6VcG3ZcUCk3tvNcHYqyE8kNWOnZ','m3SqFMC','W5bUWQ7cNmkh','WQPqsmkBW6e','W6ipxWdcHM50','dSk6WQ/dOJe','W4lcVeNcN8kr','q8o+W5BdVSkZiXjZ','kCozw0JcJs0','x8kUcCoxCW','yCk5WOqXg8ohWPKtWRSZWRBdPG','oMldTvXm','WQZcRSoD','W73cGCo/DWW','WP5jxmk4W6rX','fCowW6eLWQjTjSko','lCkHWO3dLH0','WPjNj8oRWRe','WRFcOmotW4S','qSkSc8ocwq','vSoTaIZcUq','WQzevCkqW4m','W7yUEZ/cJG','W54dtmkvemoBzCoOW6JcRanaka','sSofWPFdPXj2lcW','DKlcT8kLWOG','W7KuoCkhzW','n8oPW4visSkhWP4lWQOaWPhdMSk/ACkJz8ouW5KE','W5yztXNcIG','W60AWQOCAmoA','o2u2A3C','huWhyNxdM8o4gG','W4NdJWhcOCkm','W4tcJrRdOhac','zCk/WOm0gCoaW49pWRC7WOFdJmkXrq','W4BcQIRdIMe','vmkuW6uXWQXRgCkHW4HbW5dcKSkybmoT','W4ydcCkVy0tdQN/cL8oDjWG','b0O9qeK','5A6l5OIS5lIu5yMo5AE16lwOAa','W7FcP3tdOmoXj8oHW5blC27cNSoz','W5WCwmkv','W7xcM8oTuJX8ggVcK8oI','W6NdGHRcHSkbW6Hc','W5ZdKZjiW7i','W7ddHHRcNSk0W7zxwG'],...(function(){return[...['W7ddIrpcK8kc','W4RcNI3dVMa','W7WfwGhcHM95qaPpEJpdG8kv','fJtcNxexWPFdN8kgEG','nmozquVcJYJcJa','W57cLSo+ASorkdO','W5hdTYdcHCkk','nSk5WRmzW6tdHCkx','ECkHCCkCmmovBWy','cConrcHn','W43dNmosd8o0pg8','WOFdMJu','WQ0lz8kgW48','emoWWP3cItC','g23dKhbjW43dLKtcUmkGWPNcM3G','fCoziXtcUqFcScurWOy','qCkuW74KWRS','CCoGW6NdHmo5oSku5B6s5AAs44o/5lMF5lM36lAj5y6t','W7a0m8kZDG','aspcGenhWQddJG','WPXhvSky','5P6a6k2j5lQX5yUp5AET6lwRW6G','WPxcSSoFW43dQ8kHaZW','W5/cVSoIF8od','5OM95AAx5AAl6lAAWOK','pmoJW5y','W6/cMhZcVCkHbq/dQY0jFmoQWOSUWRZcNhVdPmonWRVdRmkBWOVdIZ08WOhcQvLWsCo+WRtdSW','W53cMvlcL8o1B8k6','DSkhhW','WPvNbmowWPe','W4O6WPCgsmo4W70','fSk7W4RdPMjVW5m','D8o9W4ddImksfH5Lqq','W7Sid8kOAG','p8odw2G','WOWCvCkGW4e','W7RcVvzS','WRBdM8k2kSow','5A+35OUA5lI45yMpW7/MIQ3LP6JMRRpMLkNVV7u','W5RcS0rVWRW','WPnFcSofWOW','W6BMIiNLPPFOJ4VLVixcU8o9WOm','WO3dHmkvhCoHW6RcMCk9W4mnW6lcQG','k8o0uZniySk+hhPetSkWWOK+D3zYB8oPgbXMkmoRW6WtW5WyWPTbWR9xymks','pCoQW5DQBG','W7JcHmoE','8lw4KSkg','C13cNmkeWPaKmaxdRq','q8khW6CAWOq','WPpdPaFcSLa','5Aws5y245A235lIG77275lUf5PAz5OIV5P+s5lIR5yQ56ygk5BsU57MH5A6X5OQb77Y7','5Rsu5yM05As25zgS77YmkG','W6BcThxdHSorlW','5A2m5OUr5lMb5yIE5AAu6lELqG','emo0sdnKfmo+r29rvCoN','W5OBDSkR','n8oduG','5A2Y5OMR5lM75yUQ5Ase6lw8W5i','fmk8WQVdGaq','WO/dLcBcKG','W6KyWQG9CSoEW4nCW6feuq5yWQxcPmoTW7FcRmoVWRanvSkReM5ZWONcUZ8mWOignW','WRhcOwdcGSkFu3e','W7mrm8kDra','C8khcW','ymoXbcZcKJhdTCkzWOZdMq','4P2keoAFToIaOUAUJUEJHEwMT+ErV0u','WQz1W4lcI8k9ua','FmkqW78TWR4','W7GsB8kcoW','W4tcG8o9xmoa','44ky5O6456EI44ga6k+S5yE16iYv5y++W4TeuePjW60','WRJcS8o7W5DbW7bmccyD','W5pcQ2nzWP4','C8o/W4hdGCkojq','W5hcJqhdL2yXW57cGmk+','DSk0qICm','pmk5WRqIWRddKCkg','WPiuW7q/ucVcHXBcQgxdHCoMa3e','WPxdKvW','W7ldJ8oviCk2','6l225ysF6AAj6AkQ5Ase6lw8wG','WONdGdtcG2q','WRK8wSkPW7NdJG','W4VdMSoslSk3jM/cS2pcHdKoebRcRSktafJcGa','W5ulwHdcHG','4P+Zu+IePUAFNoI+RUIJS+MbOEwkT+s4GoMxGEIUIsq','E8o9W5JdO8kY','W7JcVINdGvq','AL/cUq','hqxdNCkqnYhcQmk2WOegCmoWw29ZWOa','WPVdHZVcIwrQFYxcG8k7W6tdSXxdLXm','W5CYz8k+wq','WQJdTc8','wXW3rNhdMSodcq','x33cMSkvWQC','W5RdUCkPm8oFW63cJa','WPqlsq','W6hdLrVcUmktW6G','B8k2W63dRhn3WPD+W5aWyGmZ','W5mCsmkeg8onx8oeW67cUqHnoCkO','WQO7tmkG','5A6w5OU45lQd5yM4W6tMIk/LPBVMRzxMLAhVVlC','W4ldNmohi8kKpwG','xSkGyCk1jW','uupcSmkvWOO','tCocW7BcLKu8sfJcSSkQFSorWOtdPW','W4FcKSo+CSoKjISZFa','kmozrwJcKqxcJSoWca4eaKVdUSo5','WO0pW6e/qcO','vSk+uCkXlmozsGf/W58Elq','WOjDemo7WOBcS8kXWQHO','WPKHuCk8W6JdHCoJWPhdRSorFqW','W7FcO03cNmkK','lmonxhK','W7BcQhtdRSowc8o7W41dF14','W5q7rGFcQq','WPxdRWDmW4a','WQJdI8kVfeJdM8obsG','W6btWPJcJCk8','5P6+6k2o5lUo5yQS5AEs6lwSW4C'],...(function(){return['W5pcK0xcGq','v8kdW7GiWQzhhCkMW4S','cmkdWQ3dNbi','C8oSctm','k8ozxI96','WRyHwa','zSo/W5RdTSky','ECkhfSk/WQhdTq','WP5jxa','WQRdJCkR','WP0uW6qU','6lYb5ysR6AAP6Ak95AA86lAoWRS','W5BdGcTKW5e','W47dMmosjG','W7xcKCo1tt7cI8kDsYbMvxBcNq','i8oEtSoGW77cQXGXEwVcOmkxW7i','WQFcPmooW7ZdISkVbtddNSomW5egW4pcRG','W7JcTvO','Emkwemo/F8kfDfFcHvK','df8grfldHq','z8kjW6CPWPO','umo+WOC','WPZdHSkObSo3W4JcQCk9W5OF','ySoSW4ddP8k5lsT/r8oAsq','WOpdSSkwjmoF','W7jBWPVcGSkLW4XYqcFdOmoveW3cMSklW57cG8kMWOG','fCodquhcJc7cGSo/','6l6G5yAV6Awv6AkB5AEI6ls1WPi','a2pdHa','W6NcLCoku8oL','umo+WPtcUc03WQaumwmgvCk7BG','WRDMW4pcRCkDx8oVW7pcSCoNWQSwdW','W6ZdNmo2bSkU','W4VdICova8kUg3RcQw0','W5tcNvxcHq','jSogacFcIW','WPVcTCo9W517W7vxgt8lW73dKG','W4OFCCkkDa','W6RcVvfMWRNcRmogWO0PWRqYWRJcLG','t8o3WPdcGG0','5PYo6k2x5lQP5yMs5AsW6lsmpa','W6RcTd1mW4hcNSonWPxcIKTcWPfzoCoquYb5ka4bWPXAWQJcSSkxaW','W63dGarDW5G','W4axfmkbs0K','W6JdIa4','f8kLWQq','CSoSW4FdRq','nCoIWR3cUsyZW5a','W6mFxHdcKvfLyGvBCrZdICksW4dcVM3cKW','W6tcMCoqssO','W7fFWPVcRW','s8k9fmom','W4JdKY9F','WQDMW4tcPW','W7tdHHVcLmknW7XJxSo4ka','j8opWQtcVc8','lmkRWQxdVdW','W6fFWPZcPCknW5zKvIhdLq','W7GAWReRFSo+W41mW60','W5/cLSoJFSoejW','CSk1eNylBmoZwh5gCmos','WPzPW6BcGCky','5A+05OUH5lI/5yIh5Awg6lsQua','mCoHW55XrCkh','x0xdJW','e8kqWOhdTrq','W5mCwW','cSoyENNcIW','6lAU5y6F5Ps45Psz','WRtdK8kfeMe','W5pdLYHmW65s','u8k8tSkyna','nahcNCkqWR3dK8o4dW','WOddH8kCpMK','bWtcNa','W7JcJq/dOLO','h3NdKhm','6l2F5yEc6AE/6Aka5AEr6lAQcW','pSoOWRJcUa','v+AiUUwMIUInQUw/LhVcG3e','W5NcQwddG8oR','aZ7cNx8','W54hfmkJuuu','W6OCFCkPgq','sSk+bCooDq','W7xcJwBcQCk9uG','lCoAaXJcMW','WOpdOmk6dwa','fCooib/cQW','W70hdSkQzW','WOzvcSol','pCk1WQ4dW7BdISk8bSkOW5m','gCkbWPddHWrKmaBcQmkK','l8kOWQ3cG8kg','W79nWOxcP8kLW5v+htddJSoits3dIa','WRtcOmojW5tdRmkUhtZdICoU','W63cLxJcUCk3','W5KGFCkzFW','smoWWPpcPWeXWRW6fwSBqG','pSoTW5XH','gmo1WRVcSsq','wt/cKc4RWPRcK3tcOCk1WQtcVfy','W7ddHHRcNSkKW6bZvSoHlmkF','W7a0WOxdT8o4amk1W47cISoTWQWspq','W7roWRVcR8k3W5ntvIFdGmomdW','W7GEwGxcKcCVlbjCEZtdG8kqWPRcTJhcGh3dQ2ldKmoIWPJdL8oYW4NcN8kaqCoZdYRcM8oRW4bSWQBdHvqNW610WQ8ZqmoIW5JcNSkaWPLGW4OQWRy0W5lcTtddIeRdJCobWPhcGGddKSkBWOdcGNvnWQFdJG','W7roWRVcR8k3W5nBwIddLq','oCoMWQJcVa','aIFcGgO','CSoSaJRcKHNdRW','W4FdNmovnmkGkh4','WPmlrfyTCmknWRhdSYj6WQhcTt4','W43cKbZdMwyxW57cS8kZW554W5ddOWO','WRFcTCo5W5pdOW','W53cKSoGFa','ymk2iSo6va','4P6kWOlOH5BMNzpOV5BOO7BPG6VLIj/KU4lPLi/OR5am','WQFdKSkyhNxdKCoOsJb3vMO','omoSW7yiWRi'];}())];}())];}());Iii11l=function(){return l1l111;};return Iii11l();};let linkId=lillI1(0x2d3,'YL5Z'),cookie='';const cookiesArr=Object['keys'](jdCookie)['map'](IiIi=>jdCookie[IiIi])[lillI1(0x2cf,'k6os')](iI1ll1=>iI1ll1);!cookiesArr[0x0]&&($['msg']($[lillI1(0x1e9,'YL5Z')],'【提示】请先获取Cookie'),process[lillI1(0x2a7,'4)wO')](0x1));!(async()=>{const IlIlii=lillI1,IlI1Il={'DQhrJ':function(l1il1l,liIil){return l1il1l(liIil);},'scfRy':'pt_pin','fRyGo':function(IllI1I,liIii){return IllI1I!==liIii;},'QtOth':'lILTr'};notify[IlIlii(0x254,'THSC')]({'title':$[IlIlii(0x2bf,'wbQ1')]});for(let II1ll1=0x0;II1ll1<cookiesArr[IlIlii(0x19c,'#z35')];II1ll1++){$['index']=II1ll1+0x1,cookie=cookiesArr[II1ll1],common[IlIlii(0x24e,'0Fsu')](cookie),$[IlIlii(0x1ae,'(f2#')]=IlI1Il[IlIlii(0x248,'6J(7')](decodeURIComponent,common[IlIlii(0x25d,'8aDU')](cookie,IlI1Il['scfRy'])),$['UA']=common[IlIlii(0x272,'bIZk')]($[IlIlii(0x1eb,'8aDU')]),$[IlIlii(0x187,'YL5Z')]=notify[IlIlii(0x227,'y5gn')]($['index'],$['UserName']),$['nickName']='',console['log'](IlIlii(0x1e6,'Q&A)')+$['index']+''+($[IlIlii(0x24a,'$oCg')]||$[IlIlii(0x1a1,'6J(7')])+IlIlii(0x1f4,'jl)%')),await Main(),common[IlIlii(0x247,'RSy9')]();if($[IlIlii(0x1af,'mK*3')])break;await $[IlIlii(0x281,'$vPm')](0x3e8);}isNotify&&notify['getMessage']()&&(IlI1Il['fRyGo'](IlI1Il[IlIlii(0x290,'mK*3')],IlI1Il[IlIlii(0x249,'^l]i')])?l1l1I1['log'](IlIlii(0x1ce,'k6os')+(I1iIll?.[IlIlii(0x2cd,'dPwp')]||'')):(notify[IlIlii(0x1be,'(6SG')]('\x0a'),await notify['push']()));})()[lillI1(0x1d3,'$vPm')](i11I1I=>$[lillI1(0x1b5,'YL5Z')](i11I1I))[lillI1(0x2d8,'0Fsu')](()=>$[lillI1(0x1f7,'mK*3')]());async function Main(){const i1l1i1=lillI1,l1il1i={'myLdp':i1l1i1(0x21b,'&vME'),'XbxAL':'Content-Type','ZfGJU':'任务失败,没有获取到任务ID','MwATt':function(iI1llI,llliii){return iI1llI===llliii;},'FOVzX':i1l1i1(0x2ba,'dPwp'),'BVIwS':i1l1i1(0x1b4,'zWnB'),'wtClF':i1l1i1(0x1c1,'pPD*'),'TbnmU':function(IllI11,l1llIi){return IllI11(l1llIi);},'CTahJ':i1l1i1(0x186,'^l]i'),'YAAlW':function(II1llI,i11I11){return II1llI!=i11I11;},'ZpoNs':'ChVka','Eatee':function(l1llIl,ii1I1l){return l1llIl===ii1I1l;},'zHxal':function(ii1I1i,llI){return ii1I1i<llI;},'gbLMd':i1l1i1(0x204,'k6os'),'ZogHI':'taskType','pOEQv':'taskSourceUrl','DIith':i1l1i1(0x2e5,'pPD*'),'wMEAE':i1l1i1(0x1f3,'&vME'),'sfpNE':i1l1i1(0x298,'$p3['),'EBvrf':i1l1i1(0x2a0,'(6SG'),'vrUqS':'tZBuX','RrBvB':i1l1i1(0x1c7,'sB3U'),'tZbFJ':function(llliI,iI1li1){return llliI(iI1li1);},'JvCNy':i1l1i1(0x243,'4)wO'),'Fsali':function(lllii1,liIli,liIll){return lllii1(liIli,liIll);},'fDUJm':function(IilIi1,iI1liI){return IilIi1*iI1liI;},'WsnJg':function(l1lIiI,llliiI){return l1lIiI!==llliiI;},'ROrbv':i1l1i1(0x2c0,'DOr@'),'hYylA':i1l1i1(0x2d1,'^E$k'),'GaSrE':function(IilIiI,i1i1I1){return IilIiI<i1i1I1;},'DofbV':function(IlII1,IiI11){return IlII1(IiI11);},'vsSOZ':'apTaskDetail','CuSSN':function(lli,liIlI,lll){return lli(liIlI,lll);},'KlgFJ':function(llli1,iIli1i){return llli1+iIli1i;},'uAVWB':i1l1i1(0x207,'WdFY'),'vJgix':'zdGDi','JMckv':function(iI1lii,IilIii){return iI1lii<IilIii;},'WPdHT':i1l1i1(0x1d5,'sB3U'),'mffnE':'seXrP','QHhJg':function(iI1lil,l1lIi1,iIli1l){return iI1lil(l1lIi1,iIli1l);},'ngIIh':function(i1i1II,liiIIl){return i1i1II+liiIIl;},'ZVdwF':function(iil1iI,IlIllI){return iil1iI*IlIllI;},'gxsvH':i1l1i1(0x28a,'M*3d'),'SBYyE':function(il1i1I,lI1li1){return il1i1I!==lI1li1;},'xQUAQ':'dIdXm'},ll1=await common['getLoginStatus'](cookie);if(!ll1&&l1il1i[i1l1i1(0x1e2,'G&om')](typeof ll1,l1il1i[i1l1i1(0x185,'THSC')])){if(l1il1i[i1l1i1(0x1e7,'pPD*')]===l1il1i[i1l1i1(0x2be,'8aDU')])iliIII[i1l1i1(0x279,'sB3U')](i1l1i1(0x29a,'sB3U')+(iIIl1i?.['errMsg']||''));else{console[i1l1i1(0x1e0,'hQjs')](i1l1i1(0x291,'&vME'));return;}}try{$['Stop_Execution']=![],$[i1l1i1(0x271,'P!%P')]=![],$['lotteryChances']=0x0,$[i1l1i1(0x24f,'WdFY')]=[],await l1il1i['TbnmU'](sendRequest,l1il1i['CTahJ']);if(l1il1i[i1l1i1(0x22c,'$p3[')]($['NotLogin'],0x1)){if(l1il1i['ZpoNs']===i1l1i1(0x2a6,'pPD*'))II1lil[i1l1i1(0x1dc,'i7@r')][i1l1i1(0x2c7,'(6SG')](IIli1l);else{if(l1il1i['Eatee']($[i1l1i1(0x23c,')Ck[')],0x1)&&$[i1l1i1(0x19b,'$vPm')]){let IiI1l='';for(let illlII=0x0;l1il1i[i1l1i1(0x230,'bIZk')](illlII,$['prizeItems'][i1l1i1(0x293,'$vPm')]);illlII++){const iIII11=$[i1l1i1(0x1e4,'GytM')][illlII],IiI1i=iIII11['prizeCode'];IiI1l+='\x20\x20'+IiI1i+'\x0a';}console[i1l1i1(0x22d,'Zc^I')]($[i1l1i1(0x2b0,'n%f7')]+i1l1i1(0x208,'T545')+IiI1l);}$[i1l1i1(0x2b7,'@^lv')]='',await l1il1i[i1l1i1(0x1bc,'YL5Z')](sendRequest,i1l1i1(0x25f,'DOr@'));let ilil1i=![],IlIIi=$[i1l1i1(0x2e1,'$vPm')]||[];for(let llll1=0x0;l1il1i[i1l1i1(0x284,'G&om')](llll1,IlIIi[i1l1i1(0x29f,'pPD*')]);llll1++){$[i1l1i1(0x23f,'wbQ1')]=IlIIi[llll1][l1il1i['gbLMd']],$['apTaskListid']=IlIIi[llll1]['id'],$['taskType']=IlIIi[llll1][l1il1i[i1l1i1(0x29d,'RSy9')]],$[i1l1i1(0x273,'KIg[')]=IlIIi[llll1][l1il1i[i1l1i1(0x245,'C@&P')]],$[i1l1i1(0x264,'(f2#')]=IlIIi[llll1][i1l1i1(0x2b3,'sB3U')],$[i1l1i1(0x2d0,'$p3[')]=IlIIi[llll1][i1l1i1(0x1cc,'pPD*')],$[i1l1i1(0x26c,'M*3d')]=IlIIi[llll1][l1il1i['DIith']];if(!$['taskFinished']&&$[i1l1i1(0x1c6,'tmF$')][i1l1i1(0x191,'^l]i')](l1il1i[i1l1i1(0x194,'zWnB')])){if(l1il1i[i1l1i1(0x229,'6J(7')](l1il1i[i1l1i1(0x274,'jl)%')],l1il1i[i1l1i1(0x2a4,'$oCg')]))lilIl1[i1l1i1(0x235,'KqW0')](i1l1ii[i1l1i1(0x2e8,'&vME')],l1il1i[i1l1i1(0x195,'@^lv')]),i1l1[i1l1i1(0x29e,'0&u#')](0x1);else{if($[i1l1i1(0x1e3,'y01l')]){if(l1il1i['vrUqS']!==l1il1i[i1l1i1(0x277,'$vPm')])for(let i1i1Il=0x0;l1il1i['zHxal'](i1i1Il,0x1);i1i1Il++){ilil1i=!![],console['log']('去做\x20'+$['taskTitle']),await l1il1i[i1l1i1(0x2ae,'bIZk')](sendRequest,l1il1i[i1l1i1(0x2db,'$vPm')]),await $[i1l1i1(0x190,'^l]i')](l1il1i[i1l1i1(0x1c3,'6J(7')](parseInt,l1il1i[i1l1i1(0x1bd,'6J(7')](Math['random'](),0x5dc)+0x5dc,0xa));}else ilI1li[i1l1i1(0x1d9,'mK*3')]=!![],IIliI[i1l1i1(0x1f0,'#z35')]&&IlI1iI[i1l1i1(0x2e4,'(f2#')]['fix'](Iillil);}else{if(l1il1i[i1l1i1(0x184,'pPD*')](l1il1i['ROrbv'],l1il1i[i1l1i1(0x251,'eSN&')]))for(let lil11i=0x0;l1il1i[i1l1i1(0x219,'(6SG')](lil11i,0x1);lil11i++){ilil1i=!![],console[i1l1i1(0x1b3,'8aDU')]('去做\x20'+$['taskTitle']),$[i1l1i1(0x1ff,'cJ[A')]='',await l1il1i[i1l1i1(0x1fc,'KIg[')](sendRequest,l1il1i['vsSOZ']);const IlIIl=$[i1l1i1(0x2b5,'@^lv')]?.[i1l1i1(0x2af,'jl)%')]||[],lI1liI=$['apTaskDetail']?.[i1l1i1(0x241,'PMNf')]?.[i1l1i1(0x2a8,'i7@r')];for(let i1i1Ii=0x0;i1i1Ii<lI1liI;i1i1Ii++){const lllii=IlIIl[i1i1Ii];lllii?($[i1l1i1(0x1cf,'RSy9')]=lllii['itemId'],$['taskInsert']=lllii[i1l1i1(0x2ac,'8aDU')],await sendRequest('apsDoTask'),await $[i1l1i1(0x20c,'bIZk')](l1il1i[i1l1i1(0x19d,'sB3U')](parseInt,l1il1i[i1l1i1(0x2c9,'P!%P')](l1il1i['fDUJm'](Math[i1l1i1(0x2a2,'C@&P')](),0x5dc),0x5dc),0xa))):console['log'](l1il1i['ZfGJU']);}}else Iliiii[i1l1i1(0x2a9,'WdFY')]=i1illI?.[i1l1i1(0x282,'M*3d')];}}}}!ilil1i&&console[i1l1i1(0x1f1,'THSC')](l1il1i['uAVWB']);if($[i1l1i1(0x26b,'jl)%')]>0x0){if(l1il1i[i1l1i1(0x23d,'Zc^I')](l1il1i['vJgix'],l1il1i[i1l1i1(0x1f2,'4)wO')]))delete l1lIil[i1l1i1(0x210,'hQjs')],delete IiiIli[i1l1i1(0x23b,'E5O5')][l1il1i['XbxAL']];else{for(let lllil=0x0;l1il1i[i1l1i1(0x1de,'eSN&')](lllil,$[i1l1i1(0x2bd,'$p3[')]);lllil++){l1il1i[i1l1i1(0x21d,'KIg[')](l1il1i[i1l1i1(0x2e0,'$vPm')],l1il1i[i1l1i1(0x201,'n%f7')])?lIIilI[i1l1i1(0x27a,'Q&A)')](i1l1i1(0x216,'Zc^I')+II1li1+'\x20请求响应\x20'+(l1lIlI[i1l1i1(0x1d2,'sB3U')]||IiiIl1)):(await l1il1i[i1l1i1(0x2aa,'Q&A)')](sendRequest,'superLeagueLottery'),await $[i1l1i1(0x1b9,'8aDU')](l1il1i['QHhJg'](parseInt,l1il1i[i1l1i1(0x1cd,'tmF$')](l1il1i[i1l1i1(0x1a8,'tmF$')](Math[i1l1i1(0x1a0,'cJ[A')](),0x3e8),0x3e8),0xa)));}$[i1l1i1(0x2dc,'tmF$')][i1l1i1(0x288,'wbQ1')]&&(l1il1i[i1l1i1(0x2d7,'#z35')]===i1l1i1(0x1b2,'y01l')?console['log'](i1l1i1(0x1fe,'cJ[A')+$[i1l1i1(0x1a3,'k6os')][i1l1i1(0x2e2,'8aDU')](',\x20')+']'):i1ll[i1l1i1(0x20d,'mK*3')](l1il1i[i1l1i1(0x26a,'wbQ1')]));}}}}}catch(iil1i1){l1il1i['SBYyE'](l1il1i[i1l1i1(0x206,'hQjs')],i1l1i1(0x1f6,'pPD*'))?console[i1l1i1(0x269,'y01l')](i1l1i1(0x22a,'(6SG')+iil1i1):IIII11[i1l1i1(0x262,'jl)%')](i1l1i1(0x1ea,'GytM')+(i1illi?.[i1l1i1(0x236,'sB3U')]||''));}}async function handleResponse(IlIll1,IlIII){const liil11=lillI1,ilil1l={'ZowVD':liil11(0x240,'mK*3'),'kaESc':function(illlIi,I1lIii){return illlIi!==I1lIii;},'CokbS':'gakQM','AsIYa':function(IiI1I,illlIl){return IiI1I==illlIl;},'bufpe':'superLeagueLottery','PheMw':'Axulv','mwNer':function(i11ill,IIIIIi){return i11ill==IIIIIi;},'sZoIq':function(IIIIIl,I1lIil){return IIIIIl==I1lIil;},'qJDTX':liil11(0x1f5,'(f2#'),'ByQkm':function(IIIl1i,liiII1){return IIIl1i==liiII1;},'OUiOv':function(IIIl1l,lllll){return IIIl1l==lllll;},'mpkoO':liil11(0x2a3,'GytM'),'yUDrv':function(i11ili,iil1l1){return i11ili===iil1l1;}};try{switch(IlIll1){case ilil1l[liil11(0x1fa,'cJ[A')]:if(IlIII['code']==0x0)ilil1l[liil11(0x1d6,'$p3[')](ilil1l[liil11(0x261,'0Fsu')],liil11(0x205,'0Fsu'))?(Iii11I[liil11(0x1a7,'C@&P')]++,Iil1II['log'](liil11(0x1fb,'Q&A)')+iIIl1I[liil11(0x1d7,'6J(7')])):($[liil11(0x222,'PMNf')]=IlIII?.[liil11(0x2d6,'eSN&')]?.['remainTimes'],$['prizeItems']=IlIII?.[liil11(0x210,'hQjs')]?.[liil11(0x215,'dPwp')],$['NotLogin']=IlIII?.[liil11(0x2b8,'G&om')]?.[liil11(0x267,'mK*3')]);else ilil1l[liil11(0x2dd,'4)wO')](IlIII['code'],0x192)?console[liil11(0x1f1,'THSC')](liil11(0x225,'bIZk')+(IlIII?.['errMsg']||'')):ilil1l['kaESc']('wppEp',liil11(0x21a,'wbQ1'))?I1iIil[liil11(0x28f,'(6SG')](liil11(0x29c,'G&om')+lI1Iil[liil11(0x1fd,'4)wO')][liil11(0x2de,'KIg[')](',\x20')+']'):console[liil11(0x1ee,'n%f7')](liil11(0x258,'y5gn')+(IlIII?.[liil11(0x217,'M*3d')]||''));break;case ilil1l[liil11(0x226,'hQjs')]:if(ilil1l[liil11(0x213,'pPD*')](IlIII[liil11(0x197,'WdFY')],0x0))switch(IlIII?.['data']?.[liil11(0x18e,'G&om')]){case 0x0:$[liil11(0x1b0,'T545')]['push']('空气');break;case 0x1:$['prize']['push'](''+IlIII?.[liil11(0x1f9,'KIg[')]?.[liil11(0x1d8,'0&u#')]);break;case 0x2:$[liil11(0x196,'0Fsu')]['push'](IlIII?.[liil11(0x2cb,'zWnB')]?.[liil11(0x28c,'n%f7')]+'红包');break;case 0x3:$[liil11(0x27e,'zWnB')][liil11(0x239,'y5gn')](''+IlIII?.[liil11(0x2b9,'0&u#')]?.['prizeConfigName']);break;case 0x5:$[liil11(0x253,'(f2#')][liil11(0x19f,'pPD*')](liil11(0x2c5,'0Fsu')+IlIII?.['data']?.[liil11(0x22f,'hQjs')]);break;case 0x16:$[liil11(0x1c0,'Zc^I')]['push'](''+IlIII?.['data']?.[liil11(0x1cb,'0Fsu')]);break;case null:$[liil11(0x196,'0Fsu')][liil11(0x299,'y01l')]('空气');break;default:$[liil11(0x2d9,'y5gn')]['push'](IlIII?.['data']?.[liil11(0x21f,'$p3[')]+'-'+IlIII?.[liil11(0x192,'^l]i')]?.['prizeConfigName']);return;}else IlIII[liil11(0x1d0,'(6SG')]==0x192?'nYrqw'!==ilil1l['PheMw']?console[liil11(0x256,'$oCg')](liil11(0x1ed,'8aDU')+(IlIII?.[liil11(0x1c8,'$p3[')]||'')):Ii1iI1['apTaskDetail']=lilIli?.[liil11(0x27b,'(f2#')]:(console[liil11(0x262,'jl)%')]('抽奖失败,'+(IlIII?.['errMsg']||'')),$[liil11(0x20b,'eSN&')]=!![]);break;case liil11(0x1a6,'THSC'):if(IlIII['code']==0x0)$[liil11(0x1d1,'zWnB')]=IlIII?.['data'];else ilil1l[liil11(0x2d5,'0&u#')](IlIII['code'],0x192)?console['log']('查询任务失败,'+(IlIII?.[liil11(0x21e,'(f2#')]||'')):console['log'](liil11(0x275,'hQjs')+(IlIII?.[liil11(0x209,'RSy9')]||''));break;case liil11(0x2c2,'$oCg'):if(IlIII[liil11(0x257,'PMNf')]==0x0)ilil1l[liil11(0x18b,'(6SG')](liil11(0x1db,'sB3U'),liil11(0x1b7,'WdFY'))?Iil1I1['log']('查询任务失败,'+(Ii1iII?.['errMsg']||'')):$[liil11(0x2b5,'@^lv')]=IlIII?.[liil11(0x27f,'@^lv')];else ilil1l[liil11(0x2da,'YL5Z')](IlIII[liil11(0x24d,'#z35')],0x192)?console['log'](liil11(0x24c,'mK*3')+(IlIII?.[liil11(0x260,'tmF$')]||'')):console[liil11(0x28d,'^E$k')]('查询任务失败,'+(IlIII?.[liil11(0x1c4,'&vME')]||''));break;case ilil1l[liil11(0x1b8,'4)wO')]:if(ilil1l[liil11(0x2e7,'tmF$')](IlIII[liil11(0x29b,'G&om')],0x0))$[liil11(0x238,'(6SG')]++,console[liil11(0x18d,'wbQ1')](liil11(0x23a,'THSC')+$['lotteryChances']);else{if(ilil1l[liil11(0x2cc,'(f2#')](IlIII[liil11(0x250,'dPwp')],0x192)){if(ilil1l[liil11(0x28e,'WdFY')](ilil1l[liil11(0x22b,'(f2#')],ilil1l[liil11(0x1ba,'T545')])){const I1lIiI=IiilII[liil11(0x21c,'P!%P')][IliI1I],lllili=I1lIiI[liil11(0x287,'&vME')];lI1Iii+='\x20\x20'+lllili+'\x0a';}else console[liil11(0x252,'y5gn')](liil11(0x20e,'PMNf')+(IlIII?.['errMsg']||''));}else console['log'](liil11(0x28b,'WdFY')+(IlIII?.['errMsg']||''));}break;}}catch(IliiiI){ilil1l[liil11(0x2e3,'bIZk')](liil11(0x19e,'Q&A)'),liil11(0x1ac,'WdFY'))?lI1Ili['log'](liil11(0x20a,'8aDU')+(IliilI?.['errMsg']||'')):console[liil11(0x255,'YL5Z')]('\x20未能正确处理\x20'+IlIll1+'\x20请求响应\x20'+(IliiiI['message']||IliiiI));}}async function sendRequest(liiIII){const iiillI=lillI1,li1i11={'wEXNB':iiillI(0x2df,'THSC'),'lkJAy':'b7d17','rqImg':'ios','Xvsfw':'https://api.m.jd.com/client.action','Erglg':'superLeagueLottery','EPARC':iiillI(0x2d2,'sB3U'),'twRIM':iiillI(0x297,'^E$k'),'EjlxT':iiillI(0x2c3,'i7@r'),'FePAo':iiillI(0x2c4,'Q&A)'),'RLpAZ':iiillI(0x2a1,'T545'),'lMofs':iiillI(0x26e,'E5O5'),'FnozN':function(iil1il,ilil1I){return iil1il!==ilil1I;},'RHBbV':iiillI(0x1ca,'$p3['),'drKHk':iiillI(0x211,'&vME'),'bEIqo':'application/json,\x20text/plain,\x20*/*','pejqw':'GET','GsCej':iiillI(0x244,'y5gn'),'CmJIW':function(i11il1,ii1iiI){return i11il1<ii1iiI;},'TZaZK':function(lllilI,ilil11){return lllilI>ilil11;},'ruwIN':iiillI(0x259,'$vPm'),'TrsCm':'JEhux','umwCx':function(illlI1,IIIl11){return illlI1===IIIl11;},'aqZbu':function(I1lIi1,liiIIi){return I1lIi1>=liiIIi;},'jypte':iiillI(0x233,'k6os'),'PgLFO':iiillI(0x1f8,'y5gn')};if($[iiillI(0x278,'pPD*')])return;let iI11I1='',il1i1l=null,IlIlll=null,IIIl1I='POST',iil1ii={},IlIlli={};switch(liiIII){case li1i11[iiillI(0x1e1,'y5gn')]:IlIlli={'appId':li1i11['lkJAy'],'functionId':li1i11[iiillI(0x19a,'n%f7')],'appid':iiillI(0x228,'E5O5'),'clientVersion':common[iiillI(0x18a,'tmF$')](),'client':li1i11['rqImg'],'body':{'linkId':linkId,'taskId':'','inviter':'','inJdApp':!![]},'version':iiillI(0x223,'$p3['),'ua':$['UA'],'t':!![]},iil1ii=await H5st['getH5st'](IlIlli),iI11I1=li1i11[iiillI(0x224,'E5O5')],il1i1l=iil1ii['paramsData'];break;case li1i11[iiillI(0x2b1,'G&om')]:IlIlli={'appId':iiillI(0x1a4,'0&u#'),'functionId':iiillI(0x27d,'6J(7'),'appid':li1i11[iiillI(0x1ad,'C@&P')],'clientVersion':common[iiillI(0x266,'@^lv')](),'client':li1i11[iiillI(0x292,'$oCg')],'body':{'linkId':linkId},'version':li1i11['twRIM'],'ua':$['UA'],'t':!![]},iil1ii=await H5st[iiillI(0x1e8,'0&u#')](IlIlli),iI11I1=iiillI(0x1ef,'C@&P'),il1i1l=iil1ii[iiillI(0x2c6,'jl)%')];break;case'apTaskList':IlIlli={'appId':li1i11['EjlxT'],'functionId':'apTaskList','appid':li1i11[iiillI(0x1a9,'@^lv')],'clientVersion':common[iiillI(0x1c2,'n%f7')](),'client':iiillI(0x214,'THSC'),'body':{'linkId':linkId},'version':li1i11[iiillI(0x18f,'zWnB')],'ua':$['UA'],'t':!![]},iil1ii=await H5st['getH5st'](IlIlli),iI11I1=iiillI(0x200,'eSN&'),il1i1l=iil1ii[iiillI(0x283,'sB3U')];break;case li1i11[iiillI(0x26d,'E5O5')]:IlIlli={'appId':li1i11[iiillI(0x18c,'$p3[')],'functionId':li1i11[iiillI(0x296,'$oCg')],'appid':'activities_platform','clientVersion':common['getLatestAppVersion'](),'client':li1i11['rqImg'],'body':{'taskType':$['taskType'],'taskId':$[iiillI(0x1a2,'G&om')],'channel':0x4,'checkVersion':!![],'linkId':linkId},'version':li1i11[iiillI(0x193,'YL5Z')],'ua':$['UA'],'t':!![]},iil1ii=await H5st[iiillI(0x221,'i7@r')](IlIlli),iI11I1=li1i11[iiillI(0x1aa,'YL5Z')],il1i1l=iil1ii['paramsData'];break;case li1i11[iiillI(0x1ec,'wbQ1')]:IlIlli={'appId':iiillI(0x220,'eSN&'),'functionId':li1i11[iiillI(0x20f,'WdFY')],'appid':li1i11[iiillI(0x1ad,'C@&P')],'clientVersion':common[iiillI(0x1c2,'n%f7')](),'client':li1i11['rqImg'],'body':{'taskType':$[iiillI(0x1d4,'sB3U')],'taskId':$[iiillI(0x242,')Ck[')],'channel':0x4,'checkVersion':!![],'linkId':linkId,'itemId':$['taskSourceUrl'],'taskInsert':$[iiillI(0x286,'@^lv')]},'version':li1i11[iiillI(0x2e6,'0&u#')],'ua':$['UA'],'t':!![]},iil1ii=await H5st[iiillI(0x1df,'E5O5')](IlIlli),iI11I1=li1i11[iiillI(0x218,'0Fsu')],il1i1l=iil1ii[iiillI(0x188,')Ck[')];break;default:console[iiillI(0x231,'^l]i')](iiillI(0x2ce,'P!%P')+liiIII);return;}const il1i1i={};il1i1l&&(il1i1l={...il1i1l,...il1i1i});IlIlll&&(li1i11[iiillI(0x1bb,'dPwp')](li1i11[iiillI(0x1c5,'tmF$')],'pCszD')?IlIlll={...IlIlll,...il1i1i}:Illl1l={...Illl1i,...lIIiil});const lil111={'url':iI11I1,'method':IIIl1I,'headers':{'origin':iiillI(0x2ca,'wbQ1'),'Referer':iiillI(0x2b6,'6J(7'),'User-Agent':$['UA'],'Cookie':cookie,'content-type':li1i11[iiillI(0x294,')Ck[')],'accept':li1i11['bEIqo']},'params':IlIlll,'data':il1i1l,'timeout':0x7530};IIIl1I===li1i11[iiillI(0x2a5,'GytM')]&&(delete lil111[iiillI(0x26f,'#z35')],delete lil111[iiillI(0x27c,'G&om')][li1i11[iiillI(0x2d4,'G&om')]]);const i11ilI=0x1;let ii1ii1=0x0,llllI=null,lllil1=![];while(li1i11[iiillI(0x270,'GytM')](ii1ii1,i11ilI)){li1i11[iiillI(0x285,'WdFY')](ii1ii1,0x0)&&(li1i11['FnozN'](li1i11['ruwIN'],li1i11['TrsCm'])?await $[iiillI(0x246,'mK*3')](0x3e8):lilIii[iiillI(0x1f1,'THSC')](iiillI(0x268,'Q&A)')+(i1ill1?.[iiillI(0x1a5,'P!%P')]||'')));const Iliii1=await common[iiillI(0x1ab,'6J(7')](lil111);if(!Iliii1['success']){if(li1i11[iiillI(0x24b,'@^lv')]('yMXDR',iiillI(0x265,'cJ[A')))IiilIi['log'](iiillI(0x2c1,'$oCg')+IiilIl);else{llllI=iiillI(0x203,'E5O5')+liiIII+'\x20请求失败\x20➜\x20'+Iliii1[iiillI(0x1e5,'0Fsu')],ii1ii1++;continue;}}if(!Iliii1?.['data']){llllI='🚫\x20'+liiIII+iiillI(0x199,'E5O5'),ii1ii1++;continue;}handleResponse(liiIII,Iliii1[iiillI(0x280,'T545')]),lllil1=![];break;}li1i11[iiillI(0x189,'G&om')](ii1ii1,i11ilI)&&(console[iiillI(0x202,'zWnB')](llllI),lllil1&&($['outFlag']=!![],$[iiillI(0x2bb,'E5O5')]&&(li1i11[iiillI(0x2ad,'C@&P')]===li1i11['PgLFO']?(i1l11['lotteryChances']=i1l1li?.[iiillI(0x192,'^l]i')]?.['remainTimes'],i1ilii['prizeItems']=iIIII1?.[iiillI(0x25a,'E5O5')]?.[iiillI(0x263,'cJ[A')],i1l1ll[iiillI(0x1dd,')Ck[')]=I1iIiI?.['data']?.['NotLogin']):$[iiillI(0x1da,'wbQ1')][iiillI(0x25e,'KIg[')](llllI))));}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) }
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化