mirror of https://github.com/6dylan6/jdpro.git
11 lines
28 KiB
JavaScript
11 lines
28 KiB
JavaScript
/*
|
||
车管家签到
|
||
|
||
cron "55 1 * * *" script-path=jd_car_sign.js, tag=车管家签到
|
||
|
||
*/
|
||
const $ = new Env('车管家签到')
|
||
var iil='jsjiami.com.v7';const li1i1I=iii1II;function iii1II(_0x50ddcc,_0x216a08){const _0x69f7a7=Iii11l();return iii1II=function(_0x51b356,_0xe3e38c){_0x51b356=_0x51b356-0x128;let _0x142bb7=_0x69f7a7[_0x51b356];if(iii1II['TYzvfp']===undefined){var _0x588c85=function(_0x44dcc9){const _0x9a3f3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x458387='',_0x488e75='';for(let _0x4d0529=0x0,_0x58e894,_0x4ed1c9,_0x2f112e=0x0;_0x4ed1c9=_0x44dcc9['charAt'](_0x2f112e++);~_0x4ed1c9&&(_0x58e894=_0x4d0529%0x4?_0x58e894*0x40+_0x4ed1c9:_0x4ed1c9,_0x4d0529++%0x4)?_0x458387+=String['fromCharCode'](0xff&_0x58e894>>(-0x2*_0x4d0529&0x6)):0x0){_0x4ed1c9=_0x9a3f3['indexOf'](_0x4ed1c9);}for(let _0x4d6d55=0x0,_0x4de01b=_0x458387['length'];_0x4d6d55<_0x4de01b;_0x4d6d55++){_0x488e75+='%'+('00'+_0x458387['charCodeAt'](_0x4d6d55)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x488e75);};const _0x4c57ee=function(_0x381db2,_0x284b10){let _0x520a55=[],_0x48cc26=0x0,_0x31b54f,_0x472812='';_0x381db2=_0x588c85(_0x381db2);let _0x3ce687;for(_0x3ce687=0x0;_0x3ce687<0x100;_0x3ce687++){_0x520a55[_0x3ce687]=_0x3ce687;}for(_0x3ce687=0x0;_0x3ce687<0x100;_0x3ce687++){_0x48cc26=(_0x48cc26+_0x520a55[_0x3ce687]+_0x284b10['charCodeAt'](_0x3ce687%_0x284b10['length']))%0x100,_0x31b54f=_0x520a55[_0x3ce687],_0x520a55[_0x3ce687]=_0x520a55[_0x48cc26],_0x520a55[_0x48cc26]=_0x31b54f;}_0x3ce687=0x0,_0x48cc26=0x0;for(let _0xd7c546=0x0;_0xd7c546<_0x381db2['length'];_0xd7c546++){_0x3ce687=(_0x3ce687+0x1)%0x100,_0x48cc26=(_0x48cc26+_0x520a55[_0x3ce687])%0x100,_0x31b54f=_0x520a55[_0x3ce687],_0x520a55[_0x3ce687]=_0x520a55[_0x48cc26],_0x520a55[_0x48cc26]=_0x31b54f,_0x472812+=String['fromCharCode'](_0x381db2['charCodeAt'](_0xd7c546)^_0x520a55[(_0x520a55[_0x3ce687]+_0x520a55[_0x48cc26])%0x100]);}return _0x472812;};iii1II['tvqJAY']=_0x4c57ee,_0x50ddcc=arguments,iii1II['TYzvfp']=!![];}const _0x109e86=_0x69f7a7[0x0],_0x348bc4=_0x51b356+_0x109e86,_0x3b95bd=_0x50ddcc[_0x348bc4];return!_0x3b95bd?(iii1II['VkUeEB']===undefined&&(iii1II['VkUeEB']=!![]),_0x142bb7=iii1II['tvqJAY'](_0x142bb7,_0xe3e38c),_0x50ddcc[_0x348bc4]=_0x142bb7):_0x142bb7=_0x3b95bd,_0x142bb7;},iii1II(_0x50ddcc,_0x216a08);}(function(iIiIl,iiilii,li1i1i,IlIli1,illIiI,lI1lli,Ill1l){return iIiIl=iIiIl>>0x5,lI1lli='hs',Ill1l='hs',function(llI1Il,ii1iii,i11iil,Ill1i,ii1iil){const iiiliI=iii1II;Ill1i='tfi',lI1lli=Ill1i+lI1lli,ii1iil='up',Ill1l+=ii1iil,lI1lli=i11iil(lI1lli),Ill1l=i11iil(Ill1l),i11iil=0x0;const lllI1l=llI1Il();while(!![]&&--IlIli1+ii1iii){try{Ill1i=-parseInt(iiiliI(0x1cf,'SOx7'))/0x1*(-parseInt(iiiliI(0x12f,'DGef'))/0x2)+-parseInt(iiiliI(0x140,'P7Z['))/0x3+-parseInt(iiiliI(0x1ad,'HUng'))/0x4+-parseInt(iiiliI(0x148,'IdWq'))/0x5+-parseInt(iiiliI(0x1b3,'*Fis'))/0x6+-parseInt(iiiliI(0x1c0,'^[jv'))/0x7+parseInt(iiiliI(0x132,'cPz7'))/0x8*(parseInt(iiiliI(0x164,'uqg1'))/0x9);}catch(i11iii){Ill1i=i11iil;}finally{ii1iil=lllI1l[lI1lli]();if(iIiIl<=IlIli1)i11iil?illIiI?Ill1i=ii1iil:illIiI=ii1iil:i11iil=ii1iil;else{if(i11iil==illIiI['replace'](/[CEqOgtYNHyQWbwTeLSPn=]/g,'')){if(Ill1i===ii1iii){lllI1l['un'+lI1lli](ii1iil);break;}lllI1l[Ill1l](ii1iil);}}}}}(li1i1i,iiilii,function(llI1Ii,lllI1i,li1i1l,II1i1,lI1lll,iIiII,iil1lI){return lllI1i='\x73\x70\x6c\x69\x74',llI1Ii=arguments[0x0],llI1Ii=llI1Ii[lllI1i](''),li1i1l=`\x72\x65\x76\x65\x72\x73\x65`,llI1Ii=llI1Ii[li1i1l]('\x76'),II1i1=`\x6a\x6f\x69\x6e`,(0x14d595,llI1Ii[II1i1](''));});}(0x1840,0x82baf,Iii11l,0xc4),Iii11l)&&(iil=0x1517);const l1llIi=$['isNode']()?require(li1i1I(0x130,'cDrM')):'',II1llI=$['isNode']()?require('./jdCookie'):'',i11I11=require(li1i1I(0x149,'gFnl')),l1llIl=require('./function/jdCommon');let ii1I1l=!![],ii1I1i=[],llI='',llliI;if($[li1i1I(0x1f2,'SOx7')]()){Object[li1i1I(0x13a,'VM($')](II1llI)[li1i1I(0x133,'v6i!')](iI1liI=>{ii1I1i['push'](II1llI[iI1liI]);});if(process['env'][li1i1I(0x128,'*Fis')]&&process[li1i1I(0x1bb,'O5Z5')][li1i1I(0x16f,']7rg')]===li1i1I(0x193,'0Jei'))console[li1i1I(0x185,'BM)U')]=()=>{};}else ii1I1i=[$[li1i1I(0x1d9,'acZu')](li1i1I(0x14c,'cPz7')),$[li1i1I(0x138,'HUng')](li1i1I(0x174,'uqg1')),...liIli($['getdata'](li1i1I(0x1b0,'[7M1'))||'[]')[li1i1I(0x15d,'O5Z5')](l1lIiI=>l1lIiI[li1i1I(0x175,'*O#r')])][li1i1I(0x1d2,'SOx7')](llliiI=>!!llliiI);!(async()=>{const illIii=li1i1I,IilIiI={'alehW':function(i1i1I1,IlII1){return i1i1I1(IlII1);},'PbRkl':illIii(0x1ab,'cPz7'),'qxgfx':function(IiI11,lli){return IiI11+lli;},'jizJw':function(liIlI,lll){return liIlI!==lll;},'VnlNh':illIii(0x1f3,'cD%P'),'spfLD':'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取','eEBWD':'https://bean.m.jd.com/bean/signIndex.action','iobbE':function(llli1,iIli1i){return llli1<iIli1i;},'ihvQZ':function(iI1lii,IilIii){return iI1lii===IilIii;},'saoTu':illIii(0x139,'HUng'),'jwwUO':illIii(0x1d7,'cPz7'),'bdiqR':illIii(0x15f,'2Kda'),'LEVFz':illIii(0x1cc,'*O#r'),'BkOQq':'__jda=','ggQAO':function(iI1lil){return iI1lil();},'YMQRQ':function(l1lIi1,iIli1l,i1i1II){return l1lIi1(iIli1l,i1i1II);},'Slijn':function(liiIIl,iil1iI){return liiIIl*iil1iI;}};if(!ii1I1i[0x0]){if(IilIiI[illIii(0x1a0,'cD%P')](IilIiI[illIii(0x17a,'cPz7')],'kvzhU'))lI1Iii=[i1li[illIii(0x1f5,'HtIs')]('CookieJD'),li1II[illIii(0x1e1,'Y[5D')]('CookieJD2'),...IilIiI[illIii(0x150,'VM($')](IliI11,i1ll[illIii(0x1db,'sZxQ')](IilIiI[illIii(0x182,'HtIs')])||'[]')[illIii(0x1a9,'HUng')](il1i1I=>il1i1I[illIii(0x176,'ETsQ')])][illIii(0x190,'dv48')](lI1li1=>!!lI1li1);else{$[illIii(0x17f,'dv48')]($[illIii(0x181,'*O#r')],IilIiI[illIii(0x145,'8G0^')],IilIiI[illIii(0x1d3,'HtIs')],{'open-url':IilIiI[illIii(0x1b7,')kA)')]});return;}}for(let iI11II=0x0;IilIiI[illIii(0x1ac,'UDC8')](iI11II,ii1I1i[illIii(0x16e,'[7M1')]);iI11II++){if(IilIiI[illIii(0x151,'VM($')](IilIiI[illIii(0x1b8,'cPz7')],IilIiI[illIii(0x13b,'acZu')]))I11iI1[illIii(0x189,'IdWq')](IilIiI['qxgfx']('',l1lIil[illIii(0x141,'*O#r')](IiiIli)));else{if(ii1I1i[iI11II]){if(IilIiI['ihvQZ'](IilIiI[illIii(0x1a3,'*tbN')],IilIiI['bdiqR'])){llI=ii1I1i[iI11II],$['UserName']=IilIiI['alehW'](decodeURIComponent,llI['match'](/pt_pin=([^; ]+)(?=;?)/)&&llI['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$['index']=IilIiI[illIii(0x1e4,'qn@J')](iI11II,0x1),$[illIii(0x134,')kA)')]=!![],$['nickName']='',llliI='',console[illIii(0x1de,'Cw#v')](illIii(0x167,'yXyF')+$[illIii(0x1bc,'ETsQ')]+'】'+($['nickName']||$[illIii(0x168,']ma(')])+illIii(0x1e5,'*Fis'));if(!$['isLogin']){$[illIii(0x144,'SOx7')]($[illIii(0x161,'w)5Z')],illIii(0x180,'DGef'),illIii(0x13e,'HUng')+$['index']+'\x20'+($['nickName']||$[illIii(0x129,'IdWq')])+illIii(0x1cd,')kA)'),{'open-url':IilIiI['eEBWD']});$[illIii(0x19d,']ma(')]()&&(IilIiI[illIii(0x1b2,'aM*e')](IilIiI[illIii(0x1c2,'R(Um')],IilIiI[illIii(0x1a2,'jq)[')])?IiiIi1['log'](illIii(0x1e3,'HtIs')+(l1ii1?.[illIii(0x1e9,'IdWq')]?.[illIii(0x1a6,'cD%P')]||'')+','+(ii1ll?.['data']?.[illIii(0x1c9,'v6i!')]||'')):await l1llIi['sendNotify']($['name']+illIii(0x184,'*O#r')+$[illIii(0x162,'acZu')],'京东账号'+$[illIii(0x178,'v6i!')]+'\x20'+$['UserName']+'\x0a请重新登录获取cookie'));continue;}$[illIii(0x1ca,'BM)U')]=IilIiI['qxgfx'](IilIiI['BkOQq'],IilIiI['alehW'](IilIi1,illIii(0x1bd,'%dLr'))),$['UA']=l1llIl[illIii(0x199,'cDrM')]($[illIii(0x15e,'0Jei')]),await IilIiI['ggQAO'](iI1li1),await $['wait'](IilIiI['YMQRQ'](parseInt,IilIiI[illIii(0x155,'GZdB')](IilIiI[illIii(0x1b6,'dv48')](Math[illIii(0x136,')kA)')](),0x3e8),0x7d0),0xa));}else return Ii1iIl[illIii(0x1fa,'UDC8')](iliIIi),ill11I[illIii(0x198,'0Jei')]('京东服务器访问数据为空,请检查自身设备网络情况'),![];}}}})()[li1i1I(0x1f7,'[7M1')](IiI1l=>{const ii1il1=li1i1I;$[ii1il1(0x1fc,'*tbN')]('','❌\x20'+$[ii1il1(0x1c7,'yXyF')]+ii1il1(0x1dd,'BSxY')+IiI1l+'!','');})[li1i1I(0x1d1,'qn@J')](()=>{const lI1llI=li1i1I;$[lI1llI(0x1ce,'[7M1')]();});function Iii11l(){const i1l1i1=(function(){return[...[iil,'QYOjysWCjyiPTawemPSEigb.LQcomy.Nvtqn7tHw==','nwaqqmoxWQm','W7NdGCoYpCoTWQHRiCoPusNcQYi','kgxdPdu5FuSTW60T','aLC1jCk+bsuGpq','hCo/tCoFW5OZ','WO3cUmkdoSkWqq','lxtdOYxcQW','WOFcVCovWPna','vCoIW5y','W5dcI8obWPlcGG','auWrumol','efTPWQFcRq','wmoSW5ei','W4fBcCob','rHldGG','44cS5O2D56AF44g4WQmtzeWAW5ZLTlBLPOpML6y','emoXt8or','a1HnD3O','u8kEWR7dHIy','hCo/tCoFW5OZ5BEW5As45PwLDwXW','vIpcQa','W6RcISok','yNPttXu','WQCHsmoKWO4','fSk/W4G','sCkWDteo','grBcTSoGlG','W6ankSoAgG','FwrjvIJcOmoeW6JdNMzfCCkEW5BdR8kbW6VcVCo0WQ8','WPZcVmoHWPn+','vCk+ya','tqJdIsVdONG','lvC9','n8kvW5KfW7bYFG','vSosWOhcOrS','W7NcL8kzWRjT','gSoXvSov','a0GxjSkE','W4/cJ8kVWRu','xmoCWOO','WQFcJIf0dG','nM0DymogWQu','W7JcSNZdRa','dSoXumohW5y','W7pcRrb3fwm','WRKgBG','WPBcOb1lyq','W6pcMmkrh0u','W7BcR8oebmk6W5BcSCk+WOGkWRzl','W4KXdmoGEG','WPhdId7cGmoR','W73cNSkDWPzE','nwaq','W7RcHmkjfL0rW5e','vf/cRmkv','WPVcNmo+pa8','WP/cQHC','WOhcVGv8wv8','W4xcISocWRFcG8o9WQqcW6i','W4lcGCk5WRzk','W4BdULCbgaJcQGf4sCoLwKW','g3X2','r8onW7/cH3S','W7NcOSkMWQOlWPb9W6iJ','5lIP5lMO5P2x5yIh5zMO6k2n6zEK5PEZ5O6D5lM/56MC772N6kYG5Qo+5P+W6iEE6lMY6kY/5Awe57++57QS5OoG5yEa','fCoRW4L5W7a','k8kqECkSW7qVeSkJW6hdI8krWP1h','W7NdJSo1omoMWQHToCoDFqdcJZm','owhdOqq5DMGJW7qHAgrzWQxdMSkWW5RdQ8kg','Ea3dJdxdQq','uSoPW4/cO1O'],...(function(){return[...['W7xcHmocWOJcNW','WP/dGmoQ','fSoOuIiA','WP3dMMe','WOFcUCkinmkH','W6qrCCoVWRlcTIJcT8oMySoiCc/dGa0vW597eCohW7zdpSkau8kNWPqoEmo+A3eIoeqzWORcL2/cQWXlWQJcRmobxSkMWROZa8oMEa0MFG3dP8knmaXBru15W7pdUSkB','h2BdKdhcTW','FmoXWOZcMrW','WPCnsCksBsSnWOPNpmkyd0G','mfLtWQ3cJq','W4VcUGBdRLK','WP/cT8kHWQffCSo9','WReiFCo2','WP7cPaa','x1ZcSSkrqdG','bdpcTCor','cCkLW43cH8osza','WP3cPSotWRTlWQi','ucJcRG','DSodW7RcK1O','cmoGACoNW54','pEITM+MfGoAvHoEzPEw9MoIpNUwoQmkUvmkApwXhudFdRIihx0GUWPqyW57dNqiZW6NdR3K+WOesuSovWQKHjvWwF8oIWPuMvmo7ccNdNuHn','W57cOSkNWQq','AZDdpCkwW6ztCN/cPSo4eG','W6CtmCoBiM92','WQ1AWRj2W5FcPCoY','p2yBCCoaWQm','nN9Ds1i','qLVcR8kvusJdR8kyW6Gg','5lI45lM65P2E5yI55zIL6k606zE95PEQ5O2V5lUa56QY772R6kYH5QcA5P6C6isQ6lUP6k6U5AsL576c57IK5Ok35yEK','W6pcNItdIq','W6JcR8oxWPtcPq','kxS5umoq','nCkcW58IW75IEG','WO94WR5yW7G','WQZcNmk1BSk+W6S9','W5FcHmouWPdcSSkTWPyTW5aSpGldUZCgdMXSpSkZyCofBai/W7JcPSkjzedcTmkhktNcO8k5rmooW5ldJmkUa3VdJu1WF3Shz8ktaWpcJSk/r1dcNCk+cGLTvHqIAexdUejLWOBdVqvqWOmScNGEWOdcLeLvnKddHhbXphnuC8ktW4NdGx4SW7OSW5NdPgtdP8kPo8kGWPCkys06WRa','wZpLPkdOT7VdRLxLJBBLMlZcQSk/','xGtcOa','EJVdItddOq','yaWOlctcLCoKWRqgjHe','xSk0CYykWQeu','h8koC39AW6jfoKG/W6uUDmkwW6JcLSocW5u','6l6i5ywF5RsK5yQ05AsN6lEwWO8','WRPlWRTXW4m','m8kpzSkXW6G3dSodWOdcTW','WRVdHmoEyGrhWOlcNJpcIfVcImka','hCoItCoUW5G','BSoejCoV','hSkXW5VcQW','kmkxySkPW6WT','WRtdMZ3cUSoR','W7BcHmoFWQ/cJW','W5TjWORdI8ok','j0ai','WQjKB8oAFa','Dx1dtZ3cQW','wCo/W5CQWQ8yBG','mhW5ASobWRq','W6lcH8krpwC','fCoaW719W6m','nf9REhFcH8oc','W4dcQSoQWOVcGG','W5NcRmk9WQik','qr7cPqOUCmos','W7xcKCoFWRxcHmo/','W4FcGCk8','6lY15yA25RAk5yME5Asj6lEGWR4','WP/dGZa','W5JcM8k5WPDGw8ou','WPBcVmo0WOvz','u8oHe8oFWODFCCkU','l8kJW4RcUmoVySkqWQ0'],...(function(){return['m1qKrwK','W7Gjna','tXBdJ2tdIq','W6xcNSkm','W6isomohrq','cmouW58CWOOXrW','W67dHdXeiCkGWP42W6/cTmoVua','c2BdLIm','WRhdLmkuW67cI8oIWRGWW5mt','WOJcVmodWRnzWQBdUG','xSoFW4hcM3LKbW','wq7dTtRdGq','rConW6pcKhfG','wbtdHXZdQg7cTq','WPxcRHnvs0ZdVW','WQdcOGflyW','w1VcOCkh','omkqW5WtW5a','owhdVqSVA2q7','W4O+kSoCCa','5lME5lUx6lwb5y+g','6l2H5yAO5REY5yMP5Awt6lEqiG','eLVcRJBcMSkGi03dQctcGtfg','dCoKumoDW50XA29u','WQlcSmkfW5i0','W5ChimoSbq','nhWq','W79XWONdSCoQ','ahe3cmkr','wZZcV0i/xYHnW65Bs8o0btxdLrVdUXG9WOm1W5DLF8k0W7tcJ8k+WRRcKYFdKKa','tSoLWPRdVmkynSoiWQn7W6yUWRtcTW','wCkPwJOyWPvHs8ohWQ5EWQtcVvFdP0ZcGJ/dL8kf','W790WO3dSmoDW5K','W4NcUCk7WQGmWPjNW44E','W4xcISocWRFcG8o9WP0m','W6HGWPVdNa','AmoQhSoAWRS','WQlcNCkfsCkA','uvlcVCkCDa','wvBcRSkLEq','e3X/WRS','WRxcUCoC','lw/dMbxcTq','mv0BEvm','WQddTSkexq','hSkLW4OnW70','WPDVwmoCzW','vSoHWRRcUJ0','eCoTW4rqW6HOWRuzWODkW4m','W5xcR8kJWQqbWOe','weRcRmkeuhBcJSowW6qtBCoyWQD3WRRdRSoMW4HxBmo8iqJcT8o5WQXFEs1QWPuLWOnZtmowW44oBmkGWP4','WPxdLwC','zCoaWOJcOddcJCkerW','WOjMvmo/zW','n1TRFq','awBdJYC','b8kuW440W5f3DSku','gsdcImo4na','CG5TFSoLbIGvzSoJoW','W7HsWR/dHmom','W7xcKmopWP/cHCo8WRi','yhJdSSkExuJcLow8SEwNLEoaO+s6MUs6GoI0MEwmUG','W4/cRtTQp2FcMde','vaZdJNxdMSo+ELG','WR3cT8oppa','WORcSSofWPC','hfdcNg3dPNdcVYmBW4q','cYlcQmoyhGhdN0v3xfJcS1xcVIxdO3Koj8kKWP4ApfuWWO3dGvr9BJJcTMG','W5BcQmkNWQywWP0','W7OqnSkyWPFdSw/cIW','W53cVh/dQI4'];}())];}())];}());Iii11l=function(){return i1l1i1;};return Iii11l();};async function iI1li1(){const illIil=li1i1I,illlII={'rqsGV':function(iIII11){return iIII11();},'pzIYq':function(IiI1i,llll1,lil11l){return IiI1i(llll1,lil11l);},'AtQWq':function(i1i1Il,I1lIl1){return i1i1Il+I1lIl1;},'tkyBW':function(lil11i,IlIIl){return lil11i*IlIIl;}};$[illIil(0x13c,'0daz')]=!![],$[illIil(0x15a,'aM*e')]=![],await illlII['rqsGV'](liIll),await $[illIil(0x1e8,'*Fis')](illlII['pzIYq'](parseInt,illlII['AtQWq'](illlII[illIil(0x18c,'BhE)')](Math['random'](),0x3e8),0x3e8),0xa));}function lllii1(lI1liI){const Ill1I=li1i1I,i1i1Ii={'gfbaE':function(lllii,iI11Ii){return lllii==iI11Ii;},'CGvlQ':function(iIII1l,lllil){return iIII1l==lllil;},'croZk':Ill1I(0x15b,'[7M1'),'FOGWh':Ill1I(0x13d,'jq)[')};try{if(i1i1Ii[Ill1I(0x1ef,'2Kda')](typeof JSON[Ill1I(0x1ec,'cPz7')](lI1liI),i1i1Ii[Ill1I(0x1e7,'*O#r')])){if(Ill1I(0x1c1,'BSxY')===i1i1Ii[Ill1I(0x1f6,'cPz7')]){if(i1i1Ii[Ill1I(0x12e,'jq)[')](IilliI?.[Ill1I(0x195,'*O#r')]?.[Ill1I(0x137,'dv48')],0x0))I1l1I1[Ill1I(0x12b,'BhE)')]((I1i111?.[Ill1I(0x195,'*O#r')]?.['subMsg']||'')+','+(ilI1li?.[Ill1I(0x160,'HtIs')]?.['bean']?.[Ill1I(0x1d4,'VM($')]||''));else i1i1Ii[Ill1I(0x187,'xDUG')](ll1iI?.[Ill1I(0x16b,'v6i!')]?.[Ill1I(0x166,'cPz7')],0x67)?IIliI[Ill1I(0x12d,'cD%P')]((ilI1ll?.['data']?.['subCode']||'')+','+(Iillii?.[Ill1I(0x1d6,'R(Um')]?.[Ill1I(0x1aa,'HUng')]||'')):IlI1iI[Ill1I(0x19e,'%dLr')]('进入活动失败,'+(Iillil?.[Ill1I(0x17e,'^[jv')]?.[Ill1I(0x137,'dv48')]||'')+','+(l1lIli?.[Ill1I(0x1c4,'%dLr')]?.[Ill1I(0x1c8,'IdWq')]||''));}else return!![];}}catch(iIII1i){return console['log'](iIII1i),console[Ill1I(0x1fc,'*tbN')](Ill1I(0x1d5,'BhE)')),![];}}function liIli(iil1i1){const i11iiI=li1i1I,il1i11={'tSPyb':function(IlIll1,IlIII){return IlIll1==IlIII;},'sSyyR':function(ilil1l,illlIi){return ilil1l!==illlIi;},'roPeF':'jeOAJ','cKiAK':'请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'};if(typeof iil1i1==i11iiI(0x1f9,'cPz7'))try{return JSON[i11iiI(0x1be,'w)5Z')](iil1i1);}catch(I1lIii){if(il1i11['sSyyR'](il1i11[i11iiI(0x18e,'v6i!')],il1i11[i11iiI(0x135,'dv48')]))try{if(il1i11[i11iiI(0x165,'8G0^')](typeof li1I1[i11iiI(0x19c,'*O#r')](i1ilil),i11iiI(0x19a,'SOx7')))return!![];}catch(illlIl){return iIIl1l[i11iiI(0x18f,'Y[5D')](illlIl),llIli1[i11iiI(0x1ae,'BSxY')](i11iiI(0x1b1,'jq)[')),![];}else return console['log'](I1lIii),$[i11iiI(0x17f,'dv48')]($['name'],'',il1i11['cKiAK']),[];}}async function liIll(){const lIli11=li1i1I,i11ill={'jBNNd':lIli11(0x1c6,'VM($'),'AowgD':function(IIIIIi,IIIIIl){return IIIIIi!==IIIIIl;},'CastH':lIli11(0x17b,'SOx7'),'dkzzK':lIli11(0x1d8,'SOx7'),'WHevd':function(I1lIil,IIIl1i){return I1lIil===IIIl1i;},'BpMhI':'irWZq','fRWhC':lIli11(0x12a,'GZdB'),'qORAy':lIli11(0x146,'uqg1'),'EJdpw':function(liiII1,IIIl1l){return liiII1==IIIl1l;},'GwjKR':function(lllll,i11ili){return lllll!==i11ili;},'QZlof':lIli11(0x1fe,'v6i!'),'BJEaG':lIli11(0x1bf,'0Jei'),'DxmCw':function(iil1l1){return iil1l1();},'annml':lIli11(0x183,')kA)'),'LyrZu':lIli11(0x1b5,'0daz'),'iomvp':lIli11(0x1ea,'*Fis'),'DKbOC':lIli11(0x179,'DGef'),'AXNUQ':'3zex5T6aHbQRCTfGuv1jruLCgnUX','gHxyb':lIli11(0x1b9,'UDC8'),'VpFBQ':'https://m-car.jd.com','oLOTj':'https://m-car.jd.com/housekeeper/task?autoSign=true&channel=&shareType=2&outerItemId=QayLX5AevzfcMT2Gvxly0b9uKACkKQR79LFb4nPD0NyomJaUM4uaoFpJXbMIvJfHWsy5p4VkiyUEZLEmGjXwY%252FLuO2H8WIOjy2I9vKTTyNE%253D&sid=&un_area=4_50952_60426_0','ouRea':lIli11(0x147,'BM)U'),'BsAgy':lIli11(0x16d,'yXyF'),'YhyWu':function(lllli,iiili1){return lllli*iiili1;}};return new Promise(async ill11i=>{const lllI1I=lIli11,lllill={'appId':i11ill[lllI1I(0x1ba,'gFnl')],'functionId':i11ill['LyrZu'],'appid':'M-CAR','clientVersion':i11ill['iomvp'],'client':i11ill[lllI1I(0x1da,'qn@J')],'body':{'obtainOrUseScore':0x1,'encryptAssignmentId':i11ill['AXNUQ'],'itemId':'1','outerItemId':lllI1I(0x1dc,'cPz7')},'version':i11ill[lllI1I(0x17c,'BSxY')],'ua':$['UA'],'t':!![]},ill11l=await i11I11['getH5st'](lllill);let I1lIiI={'url':lllI1I(0x15c,'VM($')+ill11l[lllI1I(0x1f0,'xDUG')]+lllI1I(0x1e2,'Y[5D'),'headers':{'origin':i11ill[lllI1I(0x1a4,'UDC8')],'Referer':i11ill['oLOTj'],'User-Agent':$['UA'],'Cookie':llI,'content-type':i11ill[lllI1I(0x12c,'P7Z[')],'accept':i11ill[lllI1I(0x177,'w)5Z')]},'timeout':i11ill['YhyWu'](0x14,0x3e8)};$[lllI1I(0x1ee,'GZdB')](I1lIiI,async(lllili,IliiiI,Ill11)=>{const lillI1=lllI1I,liiIII={'vmdOM':function(li1i11,iI11I1){return li1i11==iI11I1;},'rHAsD':i11ill[lillI1(0x1f4,'aM*e')]};if(i11ill[lillI1(0x170,'@eXf')](i11ill[lillI1(0x143,'BhE)')],i11ill[lillI1(0x19f,'HUng')]))try{if(i11ill['WHevd'](lillI1(0x158,'2Kda'),i11ill[lillI1(0x196,'uqg1')]))lliiii[lillI1(0x1c5,'HUng')]('进入活动失败,'+(IliI1i?.[lillI1(0x192,'acZu')]||''));else{if(lllili)console[lillI1(0x153,'%(2(')](''+JSON[lillI1(0x14b,'[7M1')](lllili));else{if(i11ill[lillI1(0x1ed,'8G0^')](i11ill[lillI1(0x159,'0Jei')],i11ill[lillI1(0x14e,'*Fis')])){if(liiIII[lillI1(0x142,'u8W&')](typeof ill111[lillI1(0x1af,')kA)')](Iliil1),liiIII[lillI1(0x188,'%dLr')]))return!![];}else{Ill11=JSON[lillI1(0x18a,'Y[5D')](Ill11);if(Ill11?.['errCode']==0xc8){if(i11ill['EJdpw'](Ill11?.[lillI1(0x156,'FN]Y')]?.[lillI1(0x1fd,'UDC8')],0x0))console['log']((Ill11?.[lillI1(0x131,'w)5Z')]?.['subMsg']||'')+','+(Ill11?.[lillI1(0x19b,'@eXf')]?.['bean']?.['rewardName']||''));else Ill11?.['data']?.[lillI1(0x1f8,'Cw#v')]==0x67?console['log']((Ill11?.[lillI1(0x14d,'8G0^')]?.[lillI1(0x137,'dv48')]||'')+','+(Ill11?.['data']?.['subMsg']||'')):console[lillI1(0x1a5,'SOx7')](lillI1(0x1fb,'v6i!')+(Ill11?.[lillI1(0x16a,'%(2(')]?.['subCode']||'')+','+(Ill11?.[lillI1(0x1a7,'VM($')]?.[lillI1(0x14a,'8G0^')]||''));}else i11ill[lillI1(0x1eb,'*tbN')](lillI1(0x14f,'sZxQ'),i11ill[lillI1(0x1df,'dv48')])?console[lillI1(0x191,'uqg1')](lillI1(0x13f,'[7M1')+(Ill11?.[lillI1(0x1f1,'DGef')]||'')):II1lii['log']((lIIii1?.[lillI1(0x17d,'DGef')]?.['subMsg']||'')+','+(ll1i1?.[lillI1(0x197,'UDC8')]?.['bean']?.[lillI1(0x173,'0daz')]||''));}}}}catch(iil1ii){i11ill[lillI1(0x1cb,')kA)')](i11ill[lillI1(0x1a8,'%(2(')],lillI1(0x157,'acZu'))?i1lI[lillI1(0x152,'BSxY')]():$[lillI1(0x171,'SOx7')](iil1ii,IliiiI);}finally{i11ill['DxmCw'](ill11i);}else IIllI[lillI1(0x186,'cPz7')]((lliilI?.[lillI1(0x17e,'^[jv')]?.[lillI1(0x1d0,'BhE)')]||'')+','+(lili1?.[lillI1(0x156,'FN]Y')]?.['subMsg']||''));});});}function IilIi1(lil111=li1i1I(0x18d,'xDUG')){const i11ilI={'RyBfb':function(ii1ii1,llllI){return ii1ii1*llllI;},'BhzWg':function(lllil1,iil1il){return lllil1==iil1il;},'srPLC':function(ilil1I,i11il1){return ilil1I|i11il1;},'sDnTY':function(ii1iiI,lllilI){return ii1iiI&lllilI;}};return lil111['replace'](/[xy]/g,function(ilil11){const IlIlii=iii1II;var illlI1=i11ilI[IlIlii(0x194,'UDC8')](Math['random'](),0xa)|0x0,IIIl11=i11ilI[IlIlii(0x154,'w)5Z')](ilil11,'x')?illlI1:i11ilI[IlIlii(0x163,'yXyF')](i11ilI[IlIlii(0x18b,'yXyF')](illlI1,0x3),0x8);return jdaid=IIIl11[IlIlii(0x169,'P7Z[')](),jdaid;});}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) }
|