-
Notifications
You must be signed in to change notification settings - Fork 487
/
jd_cbdLottery.js
12 lines (8 loc) · 28.1 KB
/
jd_cbdLottery.js
1
2
3
4
5
6
7
8
9
10
11
12
/*
活动名称:CDB京豆福利站
cron:1 1 1 1 * jd_cbdLottery.js
*/
const $ = new Env('CDB京豆福利站')
var iil='jsjiami.com.v7';const IllI11=iii1II;(function(i11I1i,IillIl,llliil,liIl1,II1lll,II1lli,ii1I1I){return i11I1i=i11I1i>>0x8,II1lli='hs',ii1I1I='hs',function(IiIl,IiIi,iI1ll1,IlI1Il,l1il1l){const llliii=iii1II;IlI1Il='tfi',II1lli=IlI1Il+II1lli,l1il1l='up',ii1I1I+=l1il1l,II1lli=iI1ll1(II1lli),ii1I1I=iI1ll1(ii1I1I),iI1ll1=0x0;const liIil=IiIl();while(!![]&&--liIl1+IiIi){try{IlI1Il=-parseInt(llliii(0x170,'!#TN'))/0x1+-parseInt(llliii(0x152,'mm]M'))/0x2+parseInt(llliii(0x1b5,')o8k'))/0x3+parseInt(llliii(0x146,'nwf['))/0x4*(-parseInt(llliii(0x16c,'YK*C'))/0x5)+parseInt(llliii(0x167,'nwf['))/0x6+parseInt(llliii(0x127,'m0em'))/0x7+parseInt(llliii(0x14a,'4]^H'))/0x8*(parseInt(llliii(0x17c,'TfiU'))/0x9);}catch(IllI1I){IlI1Il=iI1ll1;}finally{l1il1l=liIil[II1lli]();if(i11I1i<=liIl1)iI1ll1?II1lll?IlI1Il=l1il1l:II1lll=l1il1l:iI1ll1=l1il1l;else{if(iI1ll1==II1lll['replace'](/[CNFwbxOyVRSTKLXMeEGU=]/g,'')){if(IlI1Il===IiIi){liIil['un'+II1lli](l1il1l);break;}liIil[ii1I1I](l1il1l);}}}}}(llliil,IillIl,function(liIii,II1ll1,IlI1Ii,i11I1I,l1il1i,ll1,iI1llI){return II1ll1='\x73\x70\x6c\x69\x74',liIii=arguments[0x0],liIii=liIii[II1ll1](''),IlI1Ii=`\x72\x65\x76\x65\x72\x73\x65`,liIii=liIii[IlI1Ii]('\x76'),i11I1I=`\x6a\x6f\x69\x6e`,(0x165360,liIii[i11I1I](''));});}(0xbe00,0x8e081,Iii11l,0xc0),Iii11l)&&(iil=`\x798`);const jdCookie=require(IllI11(0x157,'w4Cv')),common=require(IllI11(0x1ce,'NGFa')),notify=require('./utils/Rebels_sendJDNotify'),isNotify=![];let cookie='';function Iii11l(){const ii1I1i=(function(){return[...[iil,'VXVjLFsUVjiTwGamMyxi.wcweoKEmCy.SvRbC7ON==','nSouWRCwWQm','numL','WRWtW53dLcWa','n2e6hXqmrgzuWRJdQIa','r8knW4hcRSofW54','qSkvWPX0Dq','WQTDsapcICkqzW','W6lcQIRcJ8kb','WONdMYNdQa0','gCohWP7cOa','AIK1kc/dVW','lSo6WPejbW','Emo9WRO','5OIg5As95Asu6lsX77Y9','WOddNSo+','6lst5yYp5Pwp5PAJ','aLVdISo8Cq','WQrIWOlcPSkIW6PnwG','wmkDW5ZcMmokW53dPW','W5/cGSkHfSkrnHJdNSkkW4xdQ07dGW','uXz8Eum','fConWPhcOsBdHNi','W4OEqgzvgCkNl0tdVSkw','ggmzf8kJWQm5','WOOqhgrWW5ldGJTFWPW','W496W4hdQSoSW6hdGXVcMb5TwSowWPLg','W7VcQSkU','qYldJmkZWO3cSq','ofKYqmk1','WRmtW4FdHIavWOLOWRxdLxhcQmkuWQNdGa','WQegeXqwESkL','W68ppG','qsxcSXFdV8oaWRJdPmo0W57cUq','vSkxW53cMa','hg4cmCkGWQ02WQq9W6FcHSo+l8krW7y','DZ8immkTW7GJANZcUW','tmoNWOvEW54','W45BqtBcOaqu','yCk0x2y','WR0DW5hdLYKGWPvBWOZdM0lcQCkqWPFdNa','aXTWW4pcTmo0bCk5WQWUgmkNWRTiFG','WQecpZmz','44oE5O6J56wD44gd6k6n5ywt6i215y6kW4XqdMZdTSo8','kLWLb8kR','4PYLWRJMN47OGB/MRyVNOBxLP4dNKRRcKG','WQfSWPtcQSkW','oCoYWP7dQ03dR1FdMHxdMSo0W4GnW6FdVa','WOFOR63MS4lLKOdLUBlcVG','Ds1Tt0Lorq','lmo3WPaf','igJdRSosmajCcK9G','bL7dGq','W77cJdJdJLu','WQH6dmoHtW','WRbqBt50WRbvWQtdIra','cghdPWNcHCkPqq','6lwp5y2V5Pse5PEk','i8oeWQSDaW','W4nYW4ddPmooW4FdIWO','p0ldG8o6uhRdG8o1','dhWs','W4FcNWJcNCkE','mmk0WRldI8oSW7tcQfvqWOxdV8kDW6O','j8oTyCoGqcXhWPeZWPxdHq','4P29W6ZMN7/OG5NMRAlNO4pLPRpNKODo','C8o0W63cUSk3WQm','lHTPW4tcKW','iCo6wgFcJCoyFxa+WOa','WODBWOxcVCkf','ghWenmoMW6qZWQ88W5tcKmoIl8oyWRO8W6C','cbz+W5lcU8oVfW','5OUx5AwN5AAx6lAT77Ye','W4XSW4ldVCoKW6JdKWi','WOnYWQX0cwhcLCkXWQC2W77cI8ob','zSoKW7FcS8k2WQddTwnGWRNdK8kDW7ZcTq'],...(function(){return[...['uhuqWO3cPq','sYxcQuBdLW','yIVcVmkuhdC','W4rBrGBcRGWAgMvbWOVdN2uh','gSoTWOBdGuD/WQe','vHvkAuO','WPNdIbv2W58','W7pOJklLJRJLJAVMLjZLPz7OTjRVVBdLJ4xLM7JVV5O','iMJdRCotuhqsgwXMmNrc','WRLJWOJcQmkaW69YwN/cN0fS','ud7cO2BdGCoN','pSolWOtcVXO','bqfTW5NcRa','WRZdS2RdMCk6W5DEW7/dGmo8','WPBdMCk0B8oayf/cTSkeW4pcHNhcP8k+W73cGmkeWP7dNmoiauFcUCk5smoWW4ldKZ3cUZTonmkYbCoEuCoDW5NcQCkrFCk4WRNdIa','gLddLmo7EW','W5NdQrlcIq','WPyJWRr+W57cRXFdGghdNJBcOq','dHxdHhC','AZ19x01AuW','WR5IWPxcOCkj','W7uad0xcU8kVEmoeWPJcVa','caxdGNBdQ8o8WPlcR8kxWQHLW5Kub8kR','W7BcPSkZWQm3rCkVW6dcNeG','W5xdQSoGxG','kSobWOOuWRG','wmkcWPrZqW','W7xdHNldHmkD','cYrRW4ZcKW','WOdcVSkLdGxdQmooW7iyhCoB','w8kty0JcIW','W6GbW5aPBW','W58MW60','WQCXWONcPCkQWOZcJow9R+wKN+obOEs6TEs4SUI2LEwmNa','o3ZdPmoWzG','W6hcGXj8CZRdICoammo+iCkeASowWRBcSWRcS8kEg8oxmbVdTbFdLZC1W7RdPKRcNmkZW7pdLCkBuHdcJ3beDSogW5hcThhcKdaTzmk9WQtdKSoQisJdMSoDDmoBW5aEhYD8CCoKyG/cUmoOW7TatSowwmkaW6hdNHlcQLhdSSkpmtqca3ZcSt5AW4RdJYhcQmk6W5DKWOv9W5DnnaVdNmkGk1pcISoR','W7znvZFcJWiCfG','WRJdPmo3D8o2','bCooWOeeia','5P6D6i2I5y6w5yQt5PwS5O6h77+a6l6C6kkRW7dKVltOT7RLRBVOOyiT6k2+6k2tCW','qxihWPpcUCkfF8o9AmoaW5ddMc3dTNldVSkxWO5P','EJmVgs7dTKxcP8oShG','h8ojWPlcOc/dS2rUCSk9b8kUWQFdQCoV','5RwM5yUo5yEk5y6YW7D1','W4H1W6ldUmoHW5tdGIq','h1FdQ8oNuq','fCofWP3cJGy','W5NORAlMSkZLKAtLU7Hp','WQ/dNSo3u8oeyfJcTSktW7tdJwu','kmo4WRW','Ds88','r3qlWPtcQSkCASosFmoSW47dLYBdVNS','WQjAyZ/cJq','W5hcVdG','W5bsW7qaWQ8','wSkBWQfEta','W485WR3dL1C','zsitkCkYW6e6Fgm','WQCDaZCc','rSkmW47cN8oEW4K','qI7dGa','WRWoW5BdKZec','W5ZcJrPMEG','4PYiWRFOH4hMNAlOVOxOOQhPGA7LIkRKUBdPL6tORk3cOq','W6appwm','Dc3cR8kpgW','stuofcO','WRHuW7RcO2vAjtq/gW','WONLJQlMLkNOJRhLJ5BLP5VOTiBVV6/LJlhLMRtVV4dLJ4FML67OJzZLJOdLPyFOTym','W6pcVcpdGLC','dgmzb8kLWQS8WQm/','aHXRW4lcSCoWmmkYWRmf','W57dIv3dOCk3','W5CeqG','WROrW4pdHJW','WRJdHWLZW5JdGNu','bWldIG'],...(function(){return['lSohWR/cNqe','8jQlU1W','8lgRGau','W5RcSdpdKh3cJSkP','W74cWQddPq','zb0yhmkj','W4frxsNcPaiF','DtxcOGZdH8oiWQhdUa','AcKObq','WPajc3xdTLiiehLyWPNdPa','W6mysw1l','WRCiW4FdGJzDW58aWQhdHf/dS8kyW4VdJ3aWW7VcQfVdPmogu8o4WQLZCIG0C8kHW4lcOmoi','WRmtW5q','W6CblwC','tY7cVLddJSoKlG','W6NcPZhcG8kBW4nnW6pdVG','W6vIW4y0WQW','WQPAvsxcHa','W7xcUbhdI3S','W6PlW7CzWO8','gmozWRCW','W5yovMDgb8kh','WRDCfSoPxXJdNSoJD8kGnSotW5RcHfbY','WRddNZBdGG0','WQ0jW53dTYSd','zIik','WQjtb8oOqW','BSk2rMRcUmoEzMicWPFcUG','oGpdGqtcJa','WPxdUGK','BCoUW6q','WQW5aKzl','44kR5O6756sF44cf6k+q5ysO6i2v5y6lDCo+WOSSW5n1','scJdNW','WRpdRmkJWQDZsmkWWQBcUeJcGKK/jGddI0jjk8oGWRmJWOW','xCkJWRjHC8oF','W7mubNzPWOq','W5/cHafWCZldUSkkDSkLFCoq','W4JcSmkZWQfurCkUW6W','shmd','utpcOGZdSmo6WRJdR8oiW4lcSHDzW7yrW54/emkm','W6ywWR3dL1b9na','W4jjuZFcPtaEbNj0WO8','W4BdQSo9sW','mJjPW53cNa','mvWMcCk9','WRP5WO7cOmkCW79TtgS','WR4bcd8kB8kpl8oO','W4f0W4q','kaldG3FdPmo7WOFdRmkKWO5IW5q','WP7dHmo3ySopAG','j8o9zmo6EG','nSo1WPy','WQb/WPlcPa','4P+VhUACMoEEOoISTUAWOve','ggmzcCkVWRCKWQS9W50','BCoKW63cMmkTWQ8','WQJdRbFdJYS','qb4oeCkT','WOVdLmoTBCoKrG','FCkMWRPszW','DcRcKmkngG','DaOLe8kU','W7/dO8oItxK','hVc7Sl4P6l256kkN57MD5P2tW58','zoITOoAYMEwLV+I1Smon4P61oG','cvNdICo9DhldJ8o+zvldNCklW7ZcMmk0','EZq0gcVdSNdcRmoZnCkGb8oRW6z4','WOCkhfzZW57dSq','W6umWQ4','WONdGaVdUIG','xmo7WPP7W6a','emowWP7dIv0','W7JdQ17dH8kN','WR5DeG'];}())];}())];}());Iii11l=function(){return ii1I1i;};return Iii11l();};const cookiesArr=Object['keys'](jdCookie)[IllI11(0x17f,'uH86')](ll1ii=>jdCookie[ll1ii])['filter'](IIli11=>IIli11);function iii1II(_0x632240,_0x5ad385){const _0x39e179=Iii11l();return iii1II=function(_0x1b6d59,_0x4c94d5){_0x1b6d59=_0x1b6d59-0xfb;let _0x3ef5bd=_0x39e179[_0x1b6d59];if(iii1II['iPZGau']===undefined){var _0x4104e0=function(_0xac6f26){const _0x526b77='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5363d6='',_0x23de1d='';for(let _0x152968=0x0,_0x3166a8,_0x1568a0,_0xb419ca=0x0;_0x1568a0=_0xac6f26['charAt'](_0xb419ca++);~_0x1568a0&&(_0x3166a8=_0x152968%0x4?_0x3166a8*0x40+_0x1568a0:_0x1568a0,_0x152968++%0x4)?_0x5363d6+=String['fromCharCode'](0xff&_0x3166a8>>(-0x2*_0x152968&0x6)):0x0){_0x1568a0=_0x526b77['indexOf'](_0x1568a0);}for(let _0xb417cd=0x0,_0x221447=_0x5363d6['length'];_0xb417cd<_0x221447;_0xb417cd++){_0x23de1d+='%'+('00'+_0x5363d6['charCodeAt'](_0xb417cd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23de1d);};const _0xf06c77=function(_0x3017ac,_0x5584b4){let _0x2f08ca=[],_0x2164a5=0x0,_0x3ef59d,_0xb9b00a='';_0x3017ac=_0x4104e0(_0x3017ac);let _0x3adbdd;for(_0x3adbdd=0x0;_0x3adbdd<0x100;_0x3adbdd++){_0x2f08ca[_0x3adbdd]=_0x3adbdd;}for(_0x3adbdd=0x0;_0x3adbdd<0x100;_0x3adbdd++){_0x2164a5=(_0x2164a5+_0x2f08ca[_0x3adbdd]+_0x5584b4['charCodeAt'](_0x3adbdd%_0x5584b4['length']))%0x100,_0x3ef59d=_0x2f08ca[_0x3adbdd],_0x2f08ca[_0x3adbdd]=_0x2f08ca[_0x2164a5],_0x2f08ca[_0x2164a5]=_0x3ef59d;}_0x3adbdd=0x0,_0x2164a5=0x0;for(let _0x4e8a01=0x0;_0x4e8a01<_0x3017ac['length'];_0x4e8a01++){_0x3adbdd=(_0x3adbdd+0x1)%0x100,_0x2164a5=(_0x2164a5+_0x2f08ca[_0x3adbdd])%0x100,_0x3ef59d=_0x2f08ca[_0x3adbdd],_0x2f08ca[_0x3adbdd]=_0x2f08ca[_0x2164a5],_0x2f08ca[_0x2164a5]=_0x3ef59d,_0xb9b00a+=String['fromCharCode'](_0x3017ac['charCodeAt'](_0x4e8a01)^_0x2f08ca[(_0x2f08ca[_0x3adbdd]+_0x2f08ca[_0x2164a5])%0x100]);}return _0xb9b00a;};iii1II['yeJqtW']=_0xf06c77,_0x632240=arguments,iii1II['iPZGau']=!![];}const _0x517082=_0x39e179[0x0],_0x2d6d50=_0x1b6d59+_0x517082,_0xead47d=_0x632240[_0x2d6d50];return!_0xead47d?(iii1II['RRRkmn']===undefined&&(iii1II['RRRkmn']=!![]),_0x3ef5bd=iii1II['yeJqtW'](_0x3ef5bd,_0x4c94d5),_0x632240[_0x2d6d50]=_0x3ef5bd):_0x3ef5bd=_0xead47d,_0x3ef5bd;},iii1II(_0x632240,_0x5ad385);}!cookiesArr[0x0]&&($[IllI11(0x150,'*5nZ')]($['name'],IllI11(0x13e,'buAf')),process[IllI11(0x171,'o4@#')](0x1));!(async()=>{const l1llIi=IllI11,IllIII={'dbXOe':'https://pro.m.jd.com/mall/active/34oVq6LqN9Yshb8Y841RXHG3Nzf7/index.html','EDkqs':function(IIll1,ll1il){return IIll1+ll1il;},'UZHCa':function(IiiIiI){return IiiIiI();},'oqXac':function(lilii,l1iiI){return lilii+l1iiI;},'HVluv':l1llIi(0x1d0,'4]^H'),'QMBxx':'\x20➜\x20'};$[l1llIi(0x153,'iBb5')]=IllIII[l1llIi(0x193,'URJe')],console[l1llIi(0x1d3,'skzK')](IllIII[l1llIi(0x17a,'9[]F')](l1llIi(0x18a,'z[e%'),$[l1llIi(0x1c7,'w4Cv')])),await IllIII[l1llIi(0x13f,'b5Ju')](lotteryGuaGuaLe);if($[l1llIi(0x11e,'HWt9')])return;notify[l1llIi(0x116,'^kBe')]({'title':$['name']});for(let ll1li=0x0;ll1li<cookiesArr[l1llIi(0x101,'mm]M')];ll1li++){$[l1llIi(0x160,'@j&I')]=IllIII[l1llIi(0x13d,'buAf')](ll1li,0x1),cookie=cookiesArr[ll1li],common[l1llIi(0x1a5,'b5Ju')](cookie),$[l1llIi(0x183,')o8k')]=decodeURIComponent(common[l1llIi(0x162,')o8k')](cookie,IllIII['HVluv'])),$['UA']=common[l1llIi(0x1c8,'z[e%')]($[l1llIi(0x14f,'(ZBt')]),$[l1llIi(0x1ba,'@j&I')]=notify[l1llIi(0x19c,'^kBe')]($['index'],$[l1llIi(0x1b3,'iJ@]')]),$[l1llIi(0x14e,'2JY5')]='',console[l1llIi(0x133,'4]^H')](l1llIi(0x180,'2JY5')+$[l1llIi(0x199,'buAf')]+'】'+($[l1llIi(0x125,'f!W2')]||$['UserName'])+l1llIi(0x14b,'@j&I')),$['JEC']=common[l1llIi(0x12f,')k!n')]($[l1llIi(0x1d2,'NGFa')]),$[l1llIi(0x115,'b5Ju')]=common[l1llIi(0x104,'m0em')](),await Main(),common['unsetCookie']();if($[l1llIi(0x1c4,'^kBe')])break;await $['wait'](0x5dc);}const ii1li=notify[l1llIi(0x100,'b5Ju')]();ii1li&&(console[l1llIi(0x1cd,')k!n')](l1llIi(0x109,'!sy8')+ii1li['replace'](/:/g,IllIII[l1llIi(0x181,'(ZBt')])),isNotify&&await notify[l1llIi(0x1b4,'HWt9')]());})()['catch'](Illl1I=>$[IllI11(0x1cf,'pJzR')](Illl1I))['finally'](()=>$[IllI11(0x11d,'j8wa')]());async function Main(){const II1llI=IllI11,lliiiI={'qMdXK':II1llI(0x18f,'m0em'),'kWtzM':function(lilil,ll1ll){return lilil!==ll1ll;},'AXsEZ':'YkxuT','BmQhg':'yzXdK','IJXka':function(Illl11,ii1lI){return Illl11!==ii1lI;},'zHyzi':II1llI(0x195,'!#TN'),'nKDTY':function(I1ilIl,I11iII){return I1ilIl(I11iII);},'rELHa':'babelGetLottery','FZtFk':II1llI(0x1b6,'!mdY'),'ufMoO':II1llI(0x14d,'vdEo')};try{if(lliiiI[II1llI(0x17b,'3ZeU')](lliiiI['AXsEZ'],lliiiI[II1llI(0x1be,'o9HX')])){const I1ilIi=await common[II1llI(0x15e,'mm]M')](cookie);if(!I1ilIi&&typeof I1ilIi===II1llI(0x1b2,')o8k')){if(lliiiI[II1llI(0x1c3,'$IJQ')](lliiiI[II1llI(0x149,'0!Pr')],lliiiI['zHyzi']))delete i1li[II1llI(0x1c0,'UHU*')],delete li1II[II1llI(0x129,'j8wa')][lliiiI[II1llI(0x1b1,'mtUZ')]];else{console[II1llI(0x147,'(ZBt')](II1llI(0x123,'u@Sa'));return;}}await lliiiI[II1llI(0x1a7,'9[]F')](sendRequest,lliiiI['rELHa']),await $[II1llI(0x1d7,'TfiU')](0x5dc);}else i1l1I[II1llI(0x113,'0!Pr')](IiilIi),IiilIl&&(IlI1l[II1llI(0x132,'buAf')]=!![],lilIil[II1llI(0x126,'u@Sa')]&&i1ilii[II1llI(0x11a,'URJe')][II1llI(0x194,'o9HX')](iIIII1));}catch(llIlll){if(lliiiI[II1llI(0x196,'pJzR')](lliiiI[II1llI(0x197,'4LYg')],lliiiI[II1llI(0x18c,'(ZBt')]))console[II1llI(0x1a8,'!mdY')](II1llI(0x19e,'vdEo')+llIlll);else{IiilI1[II1llI(0x1c9,'$IJQ')](II1llI(0x14c,'CTBS'));return;}}}async function handleResponse(Iiii1,lIIili){const i11I11=IllI11,IiiIil={'sbvOH':i11I11(0x1cc,'!mdY'),'JltGa':i11I11(0x186,'o9HX'),'BxFyJ':function(IiiIii,IIlll){return IiiIii===IIlll;},'yHrqi':i11I11(0x17d,'w4Cv'),'qDJBE':i11I11(0x178,'UHU*'),'yNzKu':function(liliI,ll1lI){return liliI(ll1lI);},'SoOXB':i11I11(0x189,'j8wa'),'asqsL':function(l1iii,IIlli){return l1iii===IIlli;},'HYauR':i11I11(0x107,'mtUZ'),'FpqKz':i11I11(0x179,'pJzR'),'dbpZI':function(l1iil,ii1l1){return l1iil!==ii1l1;},'NZKMw':'xaxoL'};try{switch(Iiii1){case i11I11(0x13b,'^kBe'):if(lIIili[i11I11(0x19f,'4]^H')]==0x0&&lIIili[i11I11(0x163,'CTBS')]==0x0){if(IiiIil[i11I11(0x1bc,'!#TN')](IiiIil['yHrqi'],IiiIil['yHrqi'])){let lIIill=lIIili?.['prizeName']||lIIili?.[i11I11(0x1db,'buAf')]||'';console[i11I11(0x1ca,'mm]M')]('抽奖成功:'+lIIill),$[i11I11(0x11a,'URJe')]['insert'](lIIill);let I11iIi=lIIili?.['chances']||0x0;I11iIi>0x0&&(IiiIil['BxFyJ'](IiiIil['qDJBE'],'qsCnP')?(lilIl1[i11I11(0x191,'HWt9')](i1l1ii[i11I11(0x13a,'w4Cv')],IiiIil['sbvOH']),i1l1['exit'](0x1)):await IiiIil[i11I11(0x111,'CTBS')](sendRequest,IiiIil[i11I11(0x1ac,'j8wa')]));}else i1il[i11I11(0x190,'vdEo')](i11I11(0x154,'pJzR')+lI1Il1+i11I11(0x18e,'$IJQ')+(lilIi1[i11I11(0x172,'^vcb')]||IiilII));}else{if(IiiIil[i11I11(0xfc,'iBb5')](IiiIil['HYauR'],IiiIil['FpqKz']))Iliil1['message'][i11I11(0x12e,'NGFa')](i1III);else{let IilIil=lIIili?.['responseMessage']||lIIili?.[i11I11(0x1da,'f!W2')]||'';console[i11I11(0x120,'!sy8')](i11I11(0x15b,'(ZBt')+IilIil);}}break;}}catch(l1iIi){IiiIil['dbpZI']('URYEC',IiiIil[i11I11(0x1d9,'b5Ju')])?console['log'](i11I11(0x140,'CTBS')+Iiii1+i11I11(0x143,'!#TN')+(l1iIi[i11I11(0x1af,'o9HX')]||l1iIi)):(Iii11I[i11I11(0x16b,'3ZeU')](IiiIil[i11I11(0x114,'UHU*')]),Iil1II['runEnd']=!![]);}}async function sendRequest(l1iIl){const l1llIl=IllI11,illIll={'CctzY':l1llIl(0x1a3,'4]^H'),'UsAJJ':l1llIl(0x145,'UHU*'),'XPimr':'Babel_ScratchTicket','lbnUl':'babelGetLottery','PMDEf':'application/json,\x20text/plain,\x20*/*','IYxmI':l1llIl(0x159,'b5Ju'),'gWhhJ':l1llIl(0x16d,'m0em'),'YVGVz':'application/x-www-form-urlencoded','MQwTi':'api.m.jd.com','YKYmO':'https://api.m.jd.com','TicaK':l1llIl(0x135,'u@Sa'),'HTVqw':'GET','HiGrI':function(l1iIIi,lilIi){return l1iIIi===lilIi;},'Wnvfw':l1llIl(0x119,'pJzR'),'uZGjv':'BzwEc','TUnPW':l1llIl(0x1dd,'o4@#'),'pNGAa':function(l1l11I,lilIl){return l1l11I<lilIl;},'hjlto':function(IilIlI,iIli11){return IilIlI>iIli11;},'jmJGR':function(Iiiil,Iiiii){return Iiiil!==Iiiii;},'ZFMiS':'DFjVT','QiUyk':function(l11i1I,IiII){return l11i1I!==IiII;},'NsVOT':'pUeSD','uWXyx':function(llIIli,lIII1I,illIlI){return llIIli(lIII1I,illIlI);},'MQsjR':function(liIiI,l1il1I){return liIiI>=l1il1I;},'UNrUo':l1llIl(0x158,'@ADb'),'Ljovf':l1llIl(0x1d8,'3ZeU')};if($[l1llIl(0x155,'mm]M')]||$[l1llIl(0x1d5,'4LYg')])return;let iIli1I='',Iiil1=null,iiilli=null,l1iIIl=illIll['UsAJJ'],iiilll={};switch(l1iIl){case l1llIl(0x13b,'^kBe'):iIli1I=l1llIl(0x1b7,'^kBe'),iiilli={'functionId':l1llIl(0x12d,'2JY5')},iiilll={'authType':'2','enAwardK':$[l1llIl(0x192,'skzK')]?.[l1llIl(0x18b,'2JY5')],'awardSource':$['choujiang_wheel']?.[l1llIl(0x1d6,')o8k')],'encryptProjectId':$[l1llIl(0x136,'b5Ju')]?.[l1llIl(0x1c2,'0!Pr')],'encryptAssignmentId':$[l1llIl(0x142,'p&%R')]?.[l1llIl(0x187,'skzK')],'srv':$[l1llIl(0x10c,'HWt9')]?.[l1llIl(0x1c5,'mtUZ')],'lotteryCode':$[l1llIl(0x10b,'(ZBt')]?.[l1llIl(0x15c,'2JY5')],'riskParam':{'eid':'','shshshfpb':'','pageClickKey':illIll['XPimr'],'childActivityUrl':$['activityUrl']}},Iiil1=common[l1llIl(0x1d4,'iJ@]')](await common[l1llIl(0x12b,'b5Ju')](illIll[l1llIl(0x1bd,'URJe')],iiilll));break;default:console[l1llIl(0x10e,'4LYg')](l1llIl(0xff,')o8k')+l1iIl);return;}const lI11Il={'url':iIli1I,'method':l1iIIl,'headers':{'Accept':illIll[l1llIl(0x164,'^vcb')],'Accept-Encoding':illIll[l1llIl(0x148,'o9HX')],'Accept-Language':illIll['gWhhJ'],'Connection':l1llIl(0x176,'NGFa'),'Content-Type':illIll[l1llIl(0x130,'*5nZ')],'Host':illIll[l1llIl(0x1bf,'!#TN')],'Cookie':cookie,'Origin':illIll['YKYmO'],'Sec-Fetch-Dest':l1llIl(0x1a9,'^kBe'),'Sec-Fetch-Mode':illIll[l1llIl(0x1a4,'o9HX')],'Sec-Fetch-Site':'same-origin','User-Agent':$['UA']},'params':iiilli,'data':Iiil1,'timeout':0x7530};l1iIIl===illIll[l1llIl(0x151,'YK*C')]&&(illIll[l1llIl(0x112,'9[]F')](illIll['Wnvfw'],illIll['uZGjv'])?(lilIii['outFlag']=!![],i1ill1[l1llIl(0x1c1,'!mdY')]&&iliIII[l1llIl(0x139,')o8k')][l1llIl(0x19b,')k!n')](iIIl1i)):(delete lI11Il['data'],delete lI11Il[l1llIl(0x15a,'3ZeU')][illIll[l1llIl(0x184,'m0em')]]));const lIII1i=0x1;let l11i11=0x0,IilIl1=null,lIII1l=![];while(illIll[l1llIl(0x11c,'$IJQ')](l11i11,lIII1i)){illIll[l1llIl(0x124,'(ZBt')](l11i11,0x0)&&await $[l1llIl(0x1b0,'4LYg')](0x3e8);const IilIli=await common['request'](lI11Il);if(!IilIli[l1llIl(0x144,'^vcb')]){if(illIll[l1llIl(0x11f,'vdEo')](illIll[l1llIl(0x17e,'uH86')],l1llIl(0x1cb,'G7AR'))){var illIl1=Iliiii[l1llIl(0x19d,'IdO4')](i1illI[l1llIl(0x1d1,'IdO4')]['evContent']);illIl1&&illIl1[l1llIl(0x137,'mtUZ')]&&(Iil1I1=illIl1[l1llIl(0x173,'f!W2')],Ii1iII=illIl1[l1llIl(0x12c,'G7AR')]),i1IIi[l1llIl(0x122,'m0em')]('\x0a获取参数失败,原因:'+IIII1I+'\x20||\x20'+Iii111),l1l1II['runEnd']=!![];}else{IilIl1=l1llIl(0x1ae,'!mdY')+l1iIl+l1llIl(0x10a,'vdEo')+IilIli[l1llIl(0x1a0,'nwf[')],l11i11++;IilIli[l1llIl(0x19a,'u@Sa')]&&illIll[l1llIl(0x110,'!sy8')](IilIli[l1llIl(0x161,'nwf[')],0x193)&&(illIll[l1llIl(0x1a1,'HWt9')](l1llIl(0x10f,'$IJQ'),illIll['NsVOT'])?(Iliill=IIII11['title'],i1illi=i1illl[l1llIl(0x1a6,'3ZeU')]):$[l1llIl(0x12a,'!mdY')]=!![]);continue;}}if(!IilIli[l1llIl(0x1b9,'4]^H')]){IilIl1=l1llIl(0x1ad,'mtUZ')+l1iIl+'\x20请求失败\x20➜\x20无响应数据',l11i11++;continue;}await illIll['uWXyx'](handleResponse,l1iIl,IilIli[l1llIl(0xfe,'@ADb')]),lIII1l=![];break;}illIll['MQsjR'](l11i11,lIII1i)&&(illIll['HiGrI'](illIll[l1llIl(0x103,'mtUZ')],illIll[l1llIl(0x128,'^vcb')])?(console['log'](IilIl1),lIII1l&&(illIll['QiUyk'](illIll[l1llIl(0x165,'X0jV')],illIll[l1llIl(0x105,'pJzR')])?(lilIll[l1llIl(0x1b8,'^kBe')](illIll[l1llIl(0x16a,'j8wa')]),l1i111['runEnd']=!![]):($[l1llIl(0x10d,'G7AR')]=!![],$[l1llIl(0x1aa,'X0jV')]&&$[l1llIl(0x139,')o8k')]['fix'](IilIl1)))):i1ll['querryError']=!![]);}async function lotteryGuaGuaLe(){const ii1I1l=IllI11,Iiill={'euMms':'GET','AYZJu':ii1I1l(0x182,'IdO4'),'odHJk':ii1I1l(0x108,'TfiU'),'nYwDp':function(IiI1,liI){return IiI1===liI;},'QmzBl':ii1I1l(0x138,'!sy8'),'QyyfG':'未获取到数据,运行\x22依赖安装\x22试试~'},l11i1i=await common['request']({'url':$[ii1I1l(0x134,'iJ@]')],'method':Iiill[ii1I1l(0x106,'nwf[')],'headers':{'Cookie':cookiesArr[0x1],'User-Agent':Iiill[ii1I1l(0x185,'vdEo')]},'proxy':null,'debug':![],'timeout':0x7530}),lI11I1=l11i1i[ii1I1l(0x177,'TfiU')];if(lI11I1){let illIli=lI11I1?.[ii1I1l(0x11b,'YK*C')](/__api_data__ *= *(\{.*?\});/);if(illIli){let l11i1l=JSON[ii1I1l(0x1c6,'0!Pr')](illIli[0x1]);for(let lIII11 of l11i1l?.[ii1I1l(0x1bb,'YK*C')]||[]){if(lIII11?.[ii1I1l(0x131,'^kBe')]){if(ii1I1l(0x156,'3ZeU')!==Iiill['odHJk'])i1l1l1[ii1I1l(0x1ab,'o4@#')]('❌\x20脚本运行遇到了错误\x0a'+IlI1I);else{$[ii1I1l(0x13c,'3ZeU')]=lIII11?.['lotteryGuaGuaLe'];break;}}}if(!$[ii1I1l(0x175,'o4@#')]){var l1il11=JSON[ii1I1l(0x16e,'(ZBt')](l11i1l[ii1I1l(0x168,'f!W2')]['evContent']);if(l1il11&&l1il11['bottomText']){if(Iiill['nYwDp'](Iiill['QmzBl'],ii1I1l(0x18d,'j8wa'))){let liIi1=iIIIIl?.['responseMessage']||II1Il?.[ii1I1l(0x198,'mtUZ')]||'';lilIlI['log'](ii1I1l(0x121,'!mdY')+liIi1);}else title=l1il11[ii1I1l(0x15f,'skzK')],bottomText=l1il11[ii1I1l(0x188,'HWt9')];}console[ii1I1l(0xfd,'p&%R')](ii1I1l(0x166,'$IJQ')+title+ii1I1l(0x16f,'$IJQ')+bottomText),$[ii1I1l(0x169,'@j&I')]=!![];}}else console[ii1I1l(0x1dc,'2JY5')]('\x0a参数获取失败,原因:参数获取失败'),$[ii1I1l(0xfb,'m0em')]=!![];}else console[ii1I1l(0x141,'@ADb')](Iiill[ii1I1l(0x102,'$IJQ')]),$[ii1I1l(0x118,'u@Sa')]=!![];}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) }