mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-15 00:09:20 +08:00
18 lines
38 KiB
JavaScript
18 lines
38 KiB
JavaScript
/*
|
||
PRO抽奖机任务
|
||
|
||
jd_pro_lottery_task_id // 活动ID
|
||
jd_pro_lottery_task_opencard // 是否入会,默认不入会
|
||
|
||
走代理,不然403
|
||
|
||
|
||
cron:1 1 1 1 * jd_pro_lottery_task.js
|
||
|
||
*/
|
||
|
||
const $ = new Env('PRO抽奖机任务');
|
||
var iil='jsjiami.com.v7';function iii1II(_0x375640,_0x55a865){const _0x508ec8=Iii11l();return iii1II=function(_0x2c6155,_0x35f697){_0x2c6155=_0x2c6155-0x67;let _0x552ea4=_0x508ec8[_0x2c6155];if(iii1II['hiznjY']===undefined){var _0x427e69=function(_0x264ff3){const _0x49c67d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x543b3a='',_0x507af6='';for(let _0x403418=0x0,_0x2e30ef,_0x522abe,_0x3008a6=0x0;_0x522abe=_0x264ff3['charAt'](_0x3008a6++);~_0x522abe&&(_0x2e30ef=_0x403418%0x4?_0x2e30ef*0x40+_0x522abe:_0x522abe,_0x403418++%0x4)?_0x543b3a+=String['fromCharCode'](0xff&_0x2e30ef>>(-0x2*_0x403418&0x6)):0x0){_0x522abe=_0x49c67d['indexOf'](_0x522abe);}for(let _0x5e0001=0x0,_0x22e27e=_0x543b3a['length'];_0x5e0001<_0x22e27e;_0x5e0001++){_0x507af6+='%'+('00'+_0x543b3a['charCodeAt'](_0x5e0001)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x507af6);};const _0x5b56a3=function(_0x4d7c8f,_0x229553){let _0x33f4b0=[],_0x1e93e3=0x0,_0x413f47,_0x2b84d7='';_0x4d7c8f=_0x427e69(_0x4d7c8f);let _0x539a1d;for(_0x539a1d=0x0;_0x539a1d<0x100;_0x539a1d++){_0x33f4b0[_0x539a1d]=_0x539a1d;}for(_0x539a1d=0x0;_0x539a1d<0x100;_0x539a1d++){_0x1e93e3=(_0x1e93e3+_0x33f4b0[_0x539a1d]+_0x229553['charCodeAt'](_0x539a1d%_0x229553['length']))%0x100,_0x413f47=_0x33f4b0[_0x539a1d],_0x33f4b0[_0x539a1d]=_0x33f4b0[_0x1e93e3],_0x33f4b0[_0x1e93e3]=_0x413f47;}_0x539a1d=0x0,_0x1e93e3=0x0;for(let _0x21996a=0x0;_0x21996a<_0x4d7c8f['length'];_0x21996a++){_0x539a1d=(_0x539a1d+0x1)%0x100,_0x1e93e3=(_0x1e93e3+_0x33f4b0[_0x539a1d])%0x100,_0x413f47=_0x33f4b0[_0x539a1d],_0x33f4b0[_0x539a1d]=_0x33f4b0[_0x1e93e3],_0x33f4b0[_0x1e93e3]=_0x413f47,_0x2b84d7+=String['fromCharCode'](_0x4d7c8f['charCodeAt'](_0x21996a)^_0x33f4b0[(_0x33f4b0[_0x539a1d]+_0x33f4b0[_0x1e93e3])%0x100]);}return _0x2b84d7;};iii1II['KvBkum']=_0x5b56a3,_0x375640=arguments,iii1II['hiznjY']=!![];}const _0x1e577f=_0x508ec8[0x0],_0x44e731=_0x2c6155+_0x1e577f,_0x43002d=_0x375640[_0x44e731];return!_0x43002d?(iii1II['NkuxXf']===undefined&&(iii1II['NkuxXf']=!![]),_0x552ea4=iii1II['KvBkum'](_0x552ea4,_0x35f697),_0x375640[_0x44e731]=_0x552ea4):_0x552ea4=_0x43002d,_0x552ea4;},iii1II(_0x375640,_0x55a865);}const lIli1i=iii1II;(function(liil11,iiillI,l1l111,l1iIII,llI1I1,IlIlil,lIli1I){return liil11=liil11>>0x4,IlIlil='hs',lIli1I='hs',function(II1il,lllI11,I1lIll,I1lIli,II1ii){const iiill1=iii1II;I1lIli='tfi',IlIlil=I1lIli+IlIlil,II1ii='up',lIli1I+=II1ii,IlIlil=I1lIll(IlIlil),lIli1I=I1lIll(lIli1I),I1lIll=0x0;const IIIIII=II1il();while(!![]&&--l1iIII+lllI11){try{I1lIli=-parseInt(iiill1(0x9d,'(m6n'))/0x1+-parseInt(iiill1(0x188,'gRCT'))/0x2*(-parseInt(iiill1(0x157,'nAI)'))/0x3)+parseInt(iiill1(0xce,'bN#N'))/0x4+parseInt(iiill1(0x87,'PyJ]'))/0x5*(parseInt(iiill1(0xac,'70L4'))/0x6)+-parseInt(iiill1(0x12b,'gRCT'))/0x7+-parseInt(iiill1(0x1bd,'%D34'))/0x8+parseInt(iiill1(0x17e,'r[XV'))/0x9;}catch(lillII){I1lIli=I1lIll;}finally{II1ii=IIIIII[IlIlil]();if(liil11<=l1iIII)I1lIll?llI1I1?I1lIli=II1ii:llI1I1=II1ii:I1lIll=II1ii;else{if(I1lIll==llI1I1['replace'](/[qnKJRULSINOQMTPB=]/g,'')){if(I1lIli===lllI11){IIIIII['un'+IlIlil](II1ii);break;}IIIIII[lIli1I](II1ii);}}}}}(l1l111,iiillI,function(ii1ilI,lI1ll1,iIiI1,liil1I,i11ii1,IlIliI,l1iII1){return lI1ll1='\x73\x70\x6c\x69\x74',ii1ilI=arguments[0x0],ii1ilI=ii1ilI[lI1ll1](''),iIiI1=`\x72\x65\x76\x65\x72\x73\x65`,ii1ilI=ii1ilI[iIiI1]('\x76'),liil1I=`\x6a\x6f\x69\x6e`,(0x16dd5d,ii1ilI[liil1I](''));});}(0xbd0,0xdad21,Iii11l,0xbf),Iii11l)&&(iil=0x3bf7);const jdCookie=require('./jdCookie'),notify=require(lIli1i(0xc7,'OiI!')),common=require(lIli1i(0x14f,'6XhC')),{H5st}=require(lIli1i(0xc9,'%BEl'));console['log'](''),console[lIli1i(0x92,'7OG1')](lIli1i(0x1c5,'p[rg')+$[lIli1i(0x141,'eIGj')]+lIli1i(0x128,'quI*')),console[lIli1i(0xc2,'UoV9')]('jd_pro_lottery_task_id\x20//\x20活动ID'),console[lIli1i(0xe9,'PyJ]')](lIli1i(0x132,'(iU7')),console['log'](lIli1i(0x1c5,'p[rg')+$['name']+'提示结束=========='),console[lIli1i(0xea,'U])J')]('');const configCode=process['env'][lIli1i(0x1ad,'%D34')]||'',joinMember=process['env'][lIli1i(0xfd,'70L4')]===lIli1i(0xa9,'4WMX'),isNotify=![];let cookie='';function Iii11l(){const lI1lil=(function(){return[...[iil,'qIjOQsjTNJiKaKRmUiq.coSKmL.Mv7PUPBQnBRNR==','FSoqEuylWOtcO8kDEJaWWOa','W6tdOw/cH2rFCq','jSkrwuD5lSogWQJdSSkEnSo1W6CXnbDd','W4Ppm0HNqgFcUZu','W4mty0VcNSoTASov','D3jsWRhdSqZdUSoz','b8oczmkfiaVcVcFcSSkSpb9zmmkKsLy','W5zpoK9m','WOxcIxxdMmoe','E8okCfSO','ghxdRCkcaKa','W5yLW4LWWRG','W6xcOCotW4lcPSopWPO','W5i+b8ooqmoGW5WY','WPrdzLOkwJ/cPMe','W4LzWQJdTCkYwCo9BmoNW4pdPW','W4VcVmosWOldIq','W6m/W70','fmoGhG','dCoiDmk8lrRcNJhcSSkSlXTMi8k/tuzkW5q','WOBdHCokbNK9W4qXpq','jSkrwuD5lSodWQZdTCk6hmoVW6GO','ASkZjmksW7O','W7zAW5BcQ8ovW7FcICowvmkdrSozjtC','4PI1CEIUGUweS+wUG+s6Now+PEIMNUEAL+EmQEwGTUwpSEMgLowtRUweUoI9TUIHH+IfMUADRG','W7GWbq','yCknpSkWW58','EJv0WO7dQq','W4tcV8oVWOVdGdlcUmkxW69Zu01GWQe','oSopWRLleq','W5FcRmo3WRtdPG','kSkex8kW','W53LV4/LJ5y','5lQs5yIF5Awy6lsjWOOT','rwBcGCohra','WRzFnCkMrG','4PYOlUADR+IcTUAUO+EGPEImVUwmIoA0HEwkOos/Q+AaSa','W41AwI5qWRD8fCkSgsfqi8krFCoyWRP+WR5DW6yBoK8ysCklra','W5H8cW','W4GVnSo9qa','WRZcHuddTmoOW6lcImkAW6W3maRcLhNdKSkubez7W4CaWRLzWQjtyq','cmkNfsjdW6BdKSoxhG','WPJcRMC','WQXigmkCBGmCA8kqumkOF1rGW67dOWa','W4nFWQe','W5Scba','WO3cPNhdKCoaW5FcI8kZW5eC','5Rsc5yMI5BgA5z+mWRK','bSoczW','AdOQkq','Cmk5WOtdVSo7','h8oBb0JdLx9SCq','5PEZ5BUT5lIq5yIW5yot5A+P5lInsq','pZuyW4JdPKFcQYaU','WPldIxCXWQ7cKZq','W7FcSSo+gmkvfCk3','uSkFpCk+W5i','A3FcL8o8ySo5WOuiWPDbW5tcHmkeWONcH8o+od0cW4iu','W7tcP1i7p8o0wq','W5OJladcLW','hMhdSmkSiKvYrG','W5bYgfm','WPxdG20QWR/cIs/dHCor','W75tWP1FqG','bCkejdLp','W6r8uarq','bmordvNdNgHICbldI8kXWR7dU8kmfdNcJW','gNxdSmkV','ymopWOJdISowhsGWW4T/WRarW6ldUa','cmo9fSkjW6eegW','W5lKU7ZOS5W','5Rwd5yIN5AsV5yMN776t','W6ldPmkYWPpdHMKmW5HAW4ddRIBcOwVcL8oauG','WPbeEmoZW7ddSmo2FhpcJCk3pNuwdWNcUazm','WO/cG8o7FSkb','W6NcTSoZhCkRbCkEf8o/WQ/cHgHIvKq','ESk6WOW','W5Xgl18vA0BdTZBcGeZdRKvklCkg','W5rjWPL9za','W7tcUmoLcCkQe8kDe8o/WPW','5yYn6ys56k6g5PUXW4aQW4GWWQhcOSkjcSkRuG','d3ldSCkOhG','ENtcUCocCa','cmo7zCoDWQGuW6JdJr/cJmk/WQbpW5e','4P67aEACPUEDMUITPUAZHSkZ','emkPaq','W4JdJCkxWPddIa','W4XFWQJdUSkOvG','b2NdHqNcGN0Xp8ogWQyEWOO','WOnSpCkBsq','W50wt1dcOSoJwmoCgeLOuCkNWQ7cSKxcRGf5WQNcNI1UWOPnxSo+W4fKkNyW5PI85zgw5yE/5l6H772w6BQV6k+05lI+5yw75l+n','xdLtWO3dL8o6WPvmy8kiu8obW4FcIalcR8k/','W6yLfa9SWQy','yKfTWOtdNq','44k95O+W56E244cK6k+r5yEd6i+M5y6nzqxcN8k/W7Dv','W5H2aLxcVmkC','yCoAALivWOu','d3tdKXpcNfutkCobWOyAWPT8sCkVW4mr','W4XtWR9CqCoL','W7RKUPlOSym','W4amcHK','WRv6w8kmpSk4WOqypSkdWOr0WQ4','W6n/WQBdSmo5','dMhdQSkRfxb+ubi','WPlcSYy','WPrawmoN','sEw+VUwMOU+8OoABQUEcTowgQoADSowrGCo0','W6pcQ8o4hCk3nmkGaSoU','W6NcQSoW','W4jFWQldQCkTvmo5zSoMW6ZdSmovW7aNkrtdJG','kXn2','W6BdV8kZWOVdO2G','E8kWWPJdOSoOaSoU','eCkPaJXSW6ZdOmoChKnXW4ddG8k9rSkfDG','WRJcMrBcISkrCSkYAmoOW57dL0pdVXLocLi','zaC4WPldIa'],...(function(){return[...['W4RcTmo4WQVdMJhcTmkk','W63cT8oZdCk/','dMOMi8kVpSoJWRDFzM0aW7Pk','uSoPeZ1PW6xdLmkwogDWW5hdHSk4CmkBAXZcGIK3W4O3','DsCIiCkdWQu','W6ZcHCkx','6lAb5y+j5PEL5Psw','CtWJoCkMWQq5WRG1WPFcUSoQb8oWhtHO','FvXZ','lCkqrCkS','gmoyBSk1iGO','i21aW7FcMCohCSk/W74ZW6y','ymopWOJdISowht8SW4r4WRCq','W6NcTSoZhCkRbCkBe8o4WPJcQhfLsW','5AsU5yI+5BAl5OM05yEa','WRnseSkSBai','tCkRl8kpW5DaWR3cMq','W7G+eq51WRaKCeFdP8ogqG','W5jaWRpdQmokWRisdvCfaeZdUWBcO8oEW60acSk+W45cWRfEW71GELBcVSonhIFdHG','8jQAUaa','dCkivmk7W5u','W7mSeCoxqmoGW5WY','5AAC5yMC5AAt6lsSW5pdPa','WO/dI30QWRlcHZFdJG','EZyZd8kLWQ4vWRqKWOdcUmoYg8oJ','WQ/ORQFMS5JLPjBOT6NdU+kCJ2hML77LKQtLUzlMLz/MJzm','WOZdJxO0WPdcGX3dJSorWOdcRGVdOCohvCkmWPK','WQ1igW','W4rXWOddHCoe','BMBcKmo/CmkKW48','W5DmAGfkWRDx','dg82fmkKjmoNWRTHFgSSW7K','CmkCahKZ','hSo5ofBdVq','vCkLoW','WRfsd8kb','W5axFNxcKq','W4PrysToWR1Khmk3ldzbomkEs8oyWQi','WPJdGmo/pwG','jEs6PEs6GUwjTW','s8kVk8kfW6TfWOhcIsVcQ8kaWQjyW4e','jh7dRI/cMq','CdasWQRdHmoNy8kLW4e','FZOrWRBdHSowtCkTW5a/W4rahmoCWPhcK1m','5Pwc5BIg5lU+5yU/5yg45A2u5lQLbW','EmkVWQRdQ8oL','W4bnjeLkA27cQshcHqVdGW','A+ISIEAXV+wKG+I0SgVINj3dRq','WPPoAmokW73dOCouANpcNSkIouibgq','4P6TWPFOHR/MNz/OV5NOOkxPG7RLIBhKU57PLApORBji','W7VdN8kspCorW73dTmo/d8ovfrRdJSo+','W6HTrWH1','W67cRCoFiCkq','W6ftWQ7dN8ki','W41xphn3','WODvu8opW7JdQG','dSocBSkv','zNzxWRtdJqNdHSojWPdcI3NcHXDF','W7K+eG','W6tcHCkmWRr+W7nwW5a','dmo8zmk3W7PZWQtcLH0','WOJdLNSSWRxcGG','WO1axmo2','W4Chy0G','t+s7UEIWS++/J+whM8oO','b2/dP8kYaefyrG0EwaRcNMCN','mmoOWPjYpxxcIa','dmoeEa','xUs6R+IYPq','W5L8ceFcPmkruuKAWQGunrRcMCoeWQhdHW','W7S5W7Dc','WOtdKgWUWO7cQZ/dMmowWQdcQHO','CSk0WOldVCoWmCoQraq','umoHWOxdGSos','yCoAALivWOxcTSkhtZ83WOiniq','W4zEWQldUCk5','WPDewmoGWPDeWP/cL8oEW4m','amoqcKddHwLazG','zmkWWPZdSmo7aConxGhdJ8kdW4i','z8oEBLGRWOJcLmkg','W4TryG','WORcV0RdV8oP','WRJcKX/cNCkyzCkHBmoVW7q','WQCkW6yFdmkHE+w9M+wNREobUUs5Nos7IoI2UowpHW','WRHkzSolW5u','dxRdQSk3qar7rH8GxaNcMJLJcmoR','Eci3WQFdHG','W5dcSCoYWRFdVsdcVW','kSo1WPrdbNlcK1jmW7CLFmkPbW','vmkLomkrW7veWPFcMt7cHmkxWR9fW45qWOlcSG','W6SIbq','ubCYomke','6kcm5AsO5PIA5lUK5OQX6lAO','W4RcSmooWPhdUa','W6pcVmoJjmkMfmk8aCo/WRZcKw9vqvldSmkybLy','DmkWWOZdUmoNmCoIwGO','C8kNWPNdVSo7kmoUrbZdH8kxW48','W781kGTRWRO/C3ZdSSobtcNcMCoQW5jQmYNdHCkeca','ocazW4RdHeNcSti','cNRdHdBcGLK6omo0WQqnWQz7wCkP','W6jqW5pcJ8ogW7dcSa','4P6TWOlMNltOGRZMRP/NOOJLPz7NKQ3cHq','k0qRg8kx','W6RNURBKU6VLIOhVV4RMNOZPQ5/LJz/OJ4dLVQPh','vZKVk8kB','W5brWRFdP8ol','W5RcRSoUW6dcMa','WPjvqCoYWOemW7ZdKComW4FdJX4oW5HFh8kyW5tdTMipW64yWQq','omo/WQvpda','is4oW5tdPexcHIKdtmkQdG','WOpdH3KOWPlcSJpdHSoa','WPhcQgq','iSkXBG','WQrJr0OPW6DxlxldQ8oGBXNcLG','x8knhhq1','W6NcTSoZhCkRbCkDhCoFWPZcKNq','zNzxWRtdJqNdKCovWP/cJh7cHG','W6eXW7Dc'],...(function(){return['W6LAW5lcUCogW7tcVq','W55FWQFdSCopWRq0heORdrFdUapcPCoeWRG','W4Hyg3Xc','CxXxWPZcTr3dV3TQea','smkQpuW','kIGgW5xdRvi','CmkehuGgpwnPnLNcVeCzWRpcOa','W4iFbXv0','r8oUDMms','Fmk/ogGg','WPpNUjhMNB7MLR7PLQRVVOK','W6ThWOJdJmkB','pdqzW4K','h8kPcc9PW67dQCoyb2C','5lUP5yU05OML5yMCWPdcKW','hmoiBSkukrZcSIy','W4ZcR8oVWOhdGZtcTG','eCkPaJXSW6ZdPCoygwDBW5RdJmkK','ALG2W5hdQMHo','W5L2h0hcQCktCW','WRhdT8kcWQldVmowWOC6W7CVqq','i8kksujMCCkUW6ldP8kVpmkVW6nPnWCuzxeIxSkDW5hdMq','W6DEW4/cPmoiW6FcH8omrCkixmoVpsDlWOq','W4z2g1pcUSkqr1KpWOCdkaFcLG','umk+oCkjW5bf','W4FcU8oVWQy','W6ZcOmoq','W7ZdOmk/WPBdUhKL','WRvgd8kctaC2AW','6kcy5AsM5PUC5lI+5OIW6lAH','WPjpAmoRW7JdQCo2','W5/cI3Sfhq','WOldMmolfwaoW7mGnr8','WQFcGSogFmkfWQhcGmkJiSoyjWNdLCodW6xcULa','W4/cV8o1WQddMZ0','fCkDvSklW70','WR1NWQmxW7ZdOSkMdKC7WO1SFW','ymoZs0iF','W7NcH8kgWQ9IW6Dv','sCoWxHPJW5VdK8otpq','W5OcbXJcVSo/s8ocWPVcMCoeW7tdP8kU','W44ugHtdV8oxrmkoWOZcMmkTW5ldICo7W67dOq','WRzgfCkD','W7ddOxJcGKi','hComACke','W41vWQhdTCkVzCoxBSo3','W5qOD1BcQa','W6HqW4y','f2uSo8kspSoN','kcaEW4a','DZWr','4P2uW4xMNytOG6xMRjFNOlROJRRLJ4VMTyZLIPlKVkNMGAe','W7uOfCoDFmoLW6aIbSk/WRTEWPJdPW','zhjsWRtdKH7dK8oDWOxcHa','txNcGSo0xq','WRlcLehdPSo6','W5xcVmosW6tcGCodWPiO','dxOGjSkjlW','ag4eW4JcISonWRnJx8kbya','W7yWbX9xWRqnEG','W4mDrvdcOmoPDCoZfK55','W6uJgIrXWROu','n+wfTUs5LEA7P+MaV+w8PownVG','WR5uqCofWRe','5REA5yIF5zkO56Ad77Yt','W4hNUBhMNyhVVy3KU7FMR4FMLRpNGjlMN4dLK6BcSW','FZayWQhdJ8obrSkHW5Ck','W5aifYxdP8oPFq','W5LbWR9EAmoQpd4','WQHjh8kfDWi+Fq','hNldTSkI','WPBcN1tdU8oH','CdWG','WPfKDcrlWRj7','WO3dJf8dWRe','BZGUpmkyWRqq','W71IWQ7dL8kc','5REb5yQj5AwJ5yIZ77+O','mJhdKCk9iCoXWP0vWOzEW67dRmkRW5e','WPjiAa','ChjuWRq','W6rrAYPhWRzxvmkxfcvq','W7xcL8ond8kc','WPZcT3pdNmoeW4FcRSkMW4WsfwNcOrRdQSkZiJLoW7WNWOiJWO94v2HahKrNnhG','WPNcQfFdKCoEW4/cVCkNW4S','eKyQeSkl','ESoEWOVdM8oxq1zQW5PJWQTwW7VcRWJcNG7dOJuP','b8oiC8kdlqNcNG','gCoDBmkzoa','W7NdRSk4WOldJ34cW5K','WRRcN8onvSkbWQVcSW','WPhcOrxcNCkn','W4DHkepcIW','W5mmfWW','kmoYWPD4gG','WO3dMmoc','W6LAW4ZcQmocW6hcJmocrSkg','WOVcR1RdTmob','WQpcKXZcM8kyzCk8Aq','mgCbm8ks','WQhcPmkJWPldG2a4WPj8W6tdRZFcPg7cOCohtSoeWQKZBcBdM8kfbCo3ha','rxrSWPBdIa','BSk1WOHzphBcJW1tW7CQE8kGbSoLfa','W7dcUmoKa8ked8kShmo/','FZOrWRBdHSowsmkPW5CBW65Ae8of','WOnmW7BdUmkrWQ1abqOwxW','WOjieSkDzWGVi8kWAmk7BG','wmkDmmohFfVdItpcISkfmGze','W7NcLdu','k8o/WOrE','W7tcRuu9mSo2EYyZFSk4W7ZcRblcGCkwhq','o8oylmkrW64','WPhMN63NUARLPz/LIzJcMq','W5ODDfxcVmoPqmova3X/qmk8WQhcHexcTG','vSk/kmkIW7vaWRC','FgDuWQxdJfFcUmktWPdcLwtdGa4iWQ4MW6/cRK7cHghcHCoKhW','W5z2c1VcPSkGF0el'];}())];}())];}());Iii11l=function(){return lI1lil;};return Iii11l();};const cookiesArr=Object[lIli1i(0xd0,'%BEl')](jdCookie)[lIli1i(0xf1,'%D34')](l1lIi1=>jdCookie[l1lIi1])[lIli1i(0x68,'p[rg')](iIli1l=>iIli1l);!cookiesArr[0x0]&&($[lIli1i(0x144,'Z$0b')]($['name'],'【提示】请先获取Cookie'),process['exit'](0x1));!(async()=>{const IIIII1=lIli1i,i1i1II={'Eddpk':IIIII1(0x136,'r7oo'),'Syxvc':IIIII1(0xd2,'U])J'),'dZVpr':'⚠\x20请先定义必要的环境变量后再运行脚本','jwBdl':'azpLk','OlzSx':IIIII1(0x1a7,'lpuD'),'QgLCw':function(liiIIl,iil1iI){return liiIIl+iil1iI;},'tvlsI':IIIII1(0x183,'H7hT'),'NchCI':IIIII1(0x100,'J9v#'),'DwNPZ':function(IlIllI){return IlIllI();}};if(!configCode){if(i1i1II[IIIII1(0xee,'gRCT')]==='CWUGg'){console[IIIII1(0xfe,'R7Jy')](i1i1II[IIIII1(0x6c,'Ntv&')]);return;}else i1ill1[IIIII1(0x1bb,'J9v#')](IIIII1(0xfc,'y7rm'));}notify[IIIII1(0x12f,'Eedu')]({'title':$[IIIII1(0x1c1,'PyJ]')]});for(let lI1li1=0x0;lI1li1<cookiesArr[IIIII1(0x137,'R7Jy')];lI1li1++){if(i1i1II[IIIII1(0x1a2,'nAI)')]===i1i1II[IIIII1(0x86,'x4EX')])lilIl1['msg'](i1l1ii['name'],i1i1II['Eddpk']),i1l1['exit'](0x1);else{$['index']=i1i1II[IIIII1(0xc8,'(u)q')](lI1li1,0x1),cookie=cookiesArr[lI1li1],common['setCookie'](cookie),$[IIIII1(0x9b,'!weL')]=decodeURIComponent(common[IIIII1(0x164,'lpuD')](cookie,i1i1II[IIIII1(0xf6,'CxC@')])),$[IIIII1(0x148,'I62)')]=notify['create']($[IIIII1(0x14d,'Z$0b')],$['UserName']),$[IIIII1(0x163,'uu7G')]='',$['fp']=randomString(0x20,'0123456789abcdef'),$[IIIII1(0xb2,'H7hT')]=randomString(0x5a,i1i1II[IIIII1(0x181,'Eedu')])[IIIII1(0x9f,'(iU7')](),console[IIIII1(0x104,'Eedu')](IIIII1(0x19f,'r7oo')+$[IIIII1(0x197,'Eedu')]+'】'+($[IIIII1(0x187,'(vnT')]||$[IIIII1(0xe5,'f7FR')])+'******\x0a'),$['UA']=common[IIIII1(0x170,'(iU7')]($['UserName']),await i1i1II[IIIII1(0x6e,'Eedu')](Main),common['unsetCookie']();if($[IIIII1(0x15b,'xXrQ')])break;await $[IIIII1(0x155,'x4EX')](0x7d0);}}isNotify&¬ify['getMessage']()&&await notify[IIIII1(0x6f,'p[rg')]();})()[lIli1i(0x1b5,'T)Db')](iIII1I=>$['logErr'](iIII1I))['finally'](()=>$[lIli1i(0x184,'bN#N')]());async function Main(){const I1lIlI=lIli1i,ilil1i={'BKArK':function(IiI1l,illlII){return IiI1l===illlII;},'ijUVW':I1lIlI(0xd9,'%MD^'),'vHoYK':I1lIlI(0x119,'70L4'),'WyxcP':function(iIII11){return iIII11();},'vRMQb':function(IiI1i,llll1){return IiI1i>llll1;},'yBBpO':'woIcW','ZaYvW':I1lIlI(0x125,'XNel'),'EFoJK':function(lil11l,i1i1Il){return lil11l<i1i1Il;},'hAFYF':function(I1lIl1,lil11i){return I1lIl1!==lil11i;},'kXWKL':function(IlIIl){return IlIIl();}},IlIIi=await common[I1lIlI(0xf4,'CxC@')](cookie);if(!IlIIi&&typeof IlIIi===ilil1i[I1lIlI(0x1a9,'CxC@')]){console['log'](I1lIlI(0x152,'70L4'));return;}try{if(I1lIlI(0x117,'r7oo')===ilil1i[I1lIlI(0xb8,'y7rm')])IiiIl1['log']('领取'+lIIil1[I1lIlI(0x7f,'xXrQ')]+'奖励成功'+(IIli1[I1lIlI(0x196,'Htna')]?':\x20'+II1liI[I1lIlI(0x174,'gRCT')]+'京豆':''));else{$[I1lIlI(0xa0,'%D34')]=![],$[I1lIlI(0xb7,'J9v#')]=![],$[I1lIlI(0x10e,'uu7G')]=![];let i1i1Ii=[],lllii=[];$[I1lIlI(0x103,'xXrQ')]='',await ilil1i['WyxcP'](sendRequestWithRetry);if($[I1lIlI(0x156,'bN#N')])return;if($[I1lIlI(0xda,'FX7V')]&&$[I1lIlI(0x171,'70L4')]?.['moduleBaseInfo']){if(!$[I1lIlI(0x1af,'Ltjv')]){$[I1lIlI(0x69,'Ntv&')]=!![];$[I1lIlI(0xd1,')bd$')]['dailyTask']&&$[I1lIlI(0x1c3,'T)Db')][I1lIlI(0x13f,'4WMX')][I1lIlI(0x1ae,'p[rg')]&&$[I1lIlI(0x120,'OiI!')]['dailyTask']['taskList'][I1lIlI(0x1b0,'7OG1')]((iI11Il,iIII1i)=>{const ii1ill=I1lIlI;if(ii1ill(0x6b,'Htna')==='bwuJd')ilil1i[ii1ill(0x131,'xXrQ')](IIli1l,0x193)&&(lili1[ii1ill(0x10f,'Z$0b')]=!![]),lIIii1['log'](ll1i1),IIli1i&&(ll1l1[ii1ill(0x73,'CxC@')]=!![],IllIIi[ii1ill(0x76,'R7Jy')]&&l1ii1[ii1ill(0xba,'bN#N')][ii1ill(0x18f,'bN#N')](ii1ll));else{let il1i11='第['+(iIII1i+0x1)+ii1ill(0x1b3,'(iU7')+iI11Il[ii1ill(0x101,'6XhC')]*iI11Il[ii1ill(0x185,'(u)q')]+ii1ill(0x18c,'nAI)')+iI11Il[ii1ill(0xca,'Z$0b')]+ii1ill(0x173,'U])J');i1i1Ii[ii1ill(0x16f,'xXrQ')](il1i11);}});if($[I1lIlI(0x166,'uu7G')]['memberTask']){let IlIll1='开卡最高可获得['+$[I1lIlI(0x1a5,'gRCT')][I1lIlI(0xc3,'7OG1')][I1lIlI(0xa5,'nAI)')]['length']*$[I1lIlI(0x177,'nAI)')][I1lIlI(0x19e,'quI*')]['memberList'][0x0]['rewardQuantity']+I1lIlI(0x13b,'70L4');i1i1Ii['push'](IlIll1);}if($['moduleGetActivity'][I1lIlI(0xcb,'nAI)')]&&$['moduleGetActivity'][I1lIlI(0x159,'Z$0b')][I1lIlI(0x158,'tR*l')]){let IlIII='完成全部任务可额外获得['+$['moduleGetActivity'][I1lIlI(0x74,'6XhC')][I1lIlI(0x19a,'I62)')]+I1lIlI(0x11e,'PyJ]');i1i1Ii[I1lIlI(0x11b,'4WMX')](IlIII);}ilil1i[I1lIlI(0x14b,'nAI)')](i1i1Ii['length'],0x0)&&(ilil1i[I1lIlI(0x118,'6XhC')]!=='woIcW'?IiilIl['push'](I1lIlI(0xb0,'eIGj')):lllii['push'](I1lIlI(0x11f,'U])J')));lllii[I1lIlI(0x18b,'(iU7')](...i1i1Ii);const iI11Ii=$[I1lIlI(0x109,'lpuD')](I1lIlI(0x8c,'Hpno'),$[I1lIlI(0x1ba,'uu7G')]),iIII1l=$[I1lIlI(0x192,'PyJ]')](ilil1i[I1lIlI(0x1b6,'!weL')],$['endTime']);console['log'](($[I1lIlI(0x83,'UoV9')]&&I1lIlI(0xa3,'UoV9')+$['configName']+'\x0a')+'开始时间:'+iI11Ii+I1lIlI(0x6d,')bd$')+iIII1l+'\x0a'+(lllii?''+lllii['join']('\x0a'):'')+'\x0a');const lllil=Date['now']();if($[I1lIlI(0x90,'Eedu')]&&ilil1i['EFoJK'](lllil,$[I1lIlI(0xd7,'R7Jy')])){console[I1lIlI(0x167,'xXrQ')](I1lIlI(0x107,'gRCT')+iI11Ii+I1lIlI(0x142,'WFVa')),$['runEnd']=!![];return;}if($['endTime']&&ilil1i[I1lIlI(0x135,'(u)q')](lllil,$[I1lIlI(0x81,'H7hT')])){console[I1lIlI(0x1a6,'f7FR')]('活动已于\x20'+iIII1l+I1lIlI(0xa4,'uu7G')),$[I1lIlI(0xe2,'4WMX')]=!![];return;}}await ilil1i['WyxcP'](doDailyTask),$['doTaskrun']&&console[I1lIlI(0x12d,'6XhC')](I1lIlI(0x178,'70L4')),joinMember&&(ilil1i['hAFYF'](I1lIlI(0x1b8,'%BEl'),I1lIlI(0x12e,'OiI!'))?await ilil1i[I1lIlI(0xaa,'J9v#')](memberList):Illl1I[I1lIlI(0x112,')bd$')]['fix'](lliiiI)),await ilil1i[I1lIlI(0x160,'x4EX')](rewardStatus);}else console[I1lIlI(0xab,'lpuD')](I1lIlI(0x96,'Ntv&'));}}catch(I1lIii){console[I1lIlI(0x16e,'gRCT')](I1lIlI(0x17d,'UoV9')+I1lIii);}}async function doDailyTask(){const II1iI=lIli1i,IiI1I={'FIZMC':'[浏览店铺]','wGQzM':function(i11ill,IIIIIi){return i11ill==IIIIIi;},'kUaZK':'[浏览商品]','WNrnm':function(IIIIIl,I1lIil){return IIIIIl(I1lIil);},'YuSWt':function(IIIl1i){return IIIl1i();}};let illlIl=!![];for(let liiII1 of $[II1iI(0xde,'bN#N')]?.[II1iI(0x194,'I62)')]?.[II1iI(0x19b,'Htna')]||[]){if('NzaxL'!==II1iI(0x99,'s*Rl'))i1ilil['log'](II1iI(0x10c,'I62)'));else{if(liiII1[II1iI(0xe7,'Eedu')]>=liiII1[II1iI(0x116,'uu7G')])continue;else illlIl=![];$[II1iI(0x7f,'xXrQ')]=liiII1['groupType']==0x1?IiI1I[II1iI(0x82,')bd$')]:IiI1I[II1iI(0x16d,'WFVa')](liiII1[II1iI(0x143,'Z$0b')],0x2)?IiI1I[II1iI(0x110,'gRCT')]:'',$[II1iI(0x11c,'tR*l')]=liiII1[II1iI(0x7a,'R7Jy')]||0x0,$[II1iI(0xec,'UoV9')]=liiII1['groupType'],$[II1iI(0x7b,'gRCT')]=liiII1['item'][II1iI(0x9c,'y7rm')],$[II1iI(0x16b,'y7rm')]=![],await IiI1I[II1iI(0x6a,'%D34')](sendRequest,II1iI(0x1b9,'p[rg')),await $['wait'](0x3e8);if($[II1iI(0x16a,'70L4')]||$[II1iI(0x7e,'OiI!')])break;}}if(illlIl)$['doTaskrun']=!![];if(!$['doTaskrun']&&!$[II1iI(0xbd,'r[XV')]&&!$[II1iI(0x93,'y7rm')]){const lllll=II1iI(0xe6,'XNel')[II1iI(0xdf,'XNel')]('|');let i11ili=0x0;while(!![]){switch(lllll[i11ili++]){case'0':$['moduleGetActivity']='';continue;case'1':await $[II1iI(0x8d,'xXrQ')](0x3e8);continue;case'2':await sendRequestWithRetry();continue;case'3':await IiI1I[II1iI(0xe3,'PyJ]')](doDailyTask);continue;case'4':await $[II1iI(0x8f,'bN#N')](0x3e8);continue;}break;}}}async function memberList(){const llI1II=lIli1i,iil1l1={'FebKU':function(lllli,iiili1){return lllli(iiili1);},'IWOBM':'moduleGetReward'};$[llI1II(0x79,'7OG1')]=[];for(let ill11i of $[llI1II(0x191,'R7Jy')]?.['memberTask']?.[llI1II(0x198,'eIGj')]||[]){$[llI1II(0xef,'7OG1')]=ill11i['rewardQuantity']||0x0,$['venderId']=ill11i[llI1II(0xbc,'OiI!')];if($['cannot_open_list']['includes']($[llI1II(0x72,'bN#N')]))continue;switch(ill11i['result']){case 0x0:$['open_flag']=await common[llI1II(0x1a4,'%BEl')]($['venderId']);if($[llI1II(0xdb,'XNel')]){$['cannot_open_list'][llI1II(0xf7,'x4EX')]($[llI1II(0x10b,'WFVa')]);continue;}await $[llI1II(0x18a,'eIGj')](0x3e8);case 0x1:$[llI1II(0x114,'4WMX')]='['+ill11i[llI1II(0xdd,'(u)q')]+llI1II(0xf8,'!weL'),$['groupType']='7',$['itemId']=$[llI1II(0xc5,'quI*')],await iil1l1[llI1II(0xfa,'s*Rl')](sendRequest,iil1l1['IWOBM']),await $[llI1II(0x13c,'Hpno')](0x3e8);break;case 0x2:console['log']('['+ill11i[llI1II(0x9e,'%D34')]+']开卡奖励已领取');break;case 0x3:console[llI1II(0x108,'bN#N')]('['+ill11i['cardName']+llI1II(0xa1,'4WMX'));break;}if($[llI1II(0x18e,'%BEl')]||$[llI1II(0x89,'(vnT')])break;}}async function rewardStatus(){const lIli1l=lIli1i,lllill={'QJfOX':lIli1l(0xcc,'T)Db'),'lnABM':function(ill11l,I1lIiI){return ill11l(I1lIiI);}};$[lIli1l(0x120,'OiI!')]='',await sendRequestWithRetry();if($[lIli1l(0x149,'6XhC')]?.['moduleBaseInfo']?.['rewardStatus']==0x1){const lllili=lllill['QJfOX'][lIli1l(0xbb,'bN#N')]('|');let IliiiI=0x0;while(!![]){switch(lllili[IliiiI++]){case'0':$[lIli1l(0xdc,'(iU7')]=lIli1l(0xd3,'r[XV');continue;case'1':await $['wait'](0x7d0);continue;case'2':$['groupType']='5';continue;case'3':$[lIli1l(0x150,'lpuD')]='1';continue;case'4':await lllill[lIli1l(0xad,'uu7G')](sendRequest,'moduleGetReward');continue;case'5':$[lIli1l(0x138,'Htna')]=$[lIli1l(0x14a,'quI*')]?.[lIli1l(0xed,'FX7V')]?.['rewardFinish'];continue;}break;}}}async function sendRequestWithRetry(Ill11=0x3){const lillIi=lIli1i,liiIII={'cZgvx':'被外星人抓走','DutGC':'moduleGetActivity','yiUHB':function(iI11I1,il1i1l){return iI11I1===il1i1l;},'sLVqx':'vhYDl'};let li1i11=0x0;while(li1i11<Ill11){$[lillIi(0x84,'r[XV')]='',await sendRequest(liiIII[lillIi(0xa2,'eIGj')]);if($['moduleGetActivity']&&$[lillIi(0xd1,')bd$')]?.['moduleBaseInfo']){if(liiIII[lillIi(0x126,'r7oo')](liiIII[lillIi(0x88,'Htna')],lillIi(0xc4,'J9v#')))return $['moduleGetActivity'];else llIll1[lillIi(0x193,'uu7G')][lillIi(0x199,'WFVa')](liiIII[lillIi(0x91,'(iU7')])&&(I11iI1[lillIi(0x11d,'U])J')]=!![]),Illl1i[lillIi(0x124,'I62)')]('领取'+lIIiil[lillIi(0xa7,'r7oo')]+lillIi(0x162,'r[XV')+l1lIii[lillIi(0x130,'Ltjv')]);}li1i11++;}return $['moduleGetActivity'];}async function handleResponse(IIIl1I,iil1ii){const illIi1=lIli1i,IlIlli={'mQhhb':illIi1(0xf0,'%D34'),'hhjUO':'AWNdy','AWTga':'ogrLT','GQmLp':function(il1i1i,lil111){return il1i1i==lil111;},'LXRdV':illIi1(0x1b4,'lpuD'),'wACAg':illIi1(0x15a,'U])J'),'srDqC':function(i11ilI,ii1ii1){return i11ilI!==ii1ii1;},'BKziv':illIi1(0xbe,'quI*'),'ROHZU':illIi1(0x1a0,'H7hT'),'seqXB':illIi1(0x1a8,'70L4'),'TXRNT':'eVnKc','mgMZz':'MKNGG','XGbTF':illIi1(0x1b2,'y7rm')};try{if(IlIlli[illIi1(0x182,'XNel')]===IlIlli[illIi1(0xc1,'%BEl')])switch(IIIl1I){case illIi1(0x11a,'WFVa'):iil1ii['data']&&iil1ii['success']==!![]?'ogrLT'!==IlIlli['AWTga']?IiiIli['pro_hot']=!![]:($[illIi1(0x133,'(m6n')]=iil1ii?.[illIi1(0x115,'R7Jy')],$[illIi1(0x1ab,'I62)')]=$[illIi1(0x139,'Ltjv')]?.[illIi1(0x8b,'Hpno')]?.[illIi1(0x176,'nAI)')],$[illIi1(0xe4,'!weL')]=$[illIi1(0x103,'xXrQ')]?.['moduleBaseInfo']?.['endTime'],$[illIi1(0x70,'6XhC')]=$['moduleGetActivity']?.['moduleBaseInfo']?.['configName']):console['log']('❓'+IIIl1I+'\x20'+JSON[illIi1(0x10d,'p[rg')](iil1ii));break;case illIi1(0x1bf,'Z$0b'):if(IlIlli['GQmLp'](iil1ii['success'],!![]))console[illIi1(0x186,'%D34')]('完成'+$[illIi1(0x161,'f7FR')]+illIi1(0x71,'nAI)')+$['rewardQuantity']+'京豆');else{if(IlIlli['LXRdV']==='KjhgQ')(iil1ii['errorMessage']['includes']('活动太火爆')||iil1ii['errorMessage']['includes'](illIi1(0x80,'T)Db'))||iil1ii['errorMessage'][illIi1(0x14c,'CxC@')](IlIlli[illIi1(0x168,'T)Db')]))&&($['pro_hot']=!![]),console[illIi1(0x7d,'!weL')]('完成'+$[illIi1(0x161,'f7FR')]+illIi1(0xf9,'WFVa')+iil1ii['errorMessage']);else{IiilI1[illIi1(0xab,'lpuD')](IlIlli['mQhhb']);return;}}break;case illIi1(0x18d,'4WMX'):iil1ii['success']==!![]?console[illIi1(0x104,'Eedu')]('领取'+$[illIi1(0x15c,'gRCT')]+'奖励成功'+($[illIi1(0x97,'f7FR')]?':\x20'+$[illIi1(0x196,'Htna')]+'京豆':'')):IlIlli['srDqC'](IlIlli[illIi1(0x195,'tR*l')],IlIlli['ROHZU'])?(iil1ii[illIi1(0x1ac,'I62)')][illIi1(0xa8,'xXrQ')](IlIlli['seqXB'])&&(IlIlli['TXRNT']===IlIlli[illIi1(0x1c4,'XNel')]?(delete I1l1I1[illIi1(0x7c,'CxC@')],delete I1i111['headers'][illIi1(0xb4,'70L4')]):$['pro_hot']=!![]),console[illIi1(0x7d,'!weL')]('领取'+$['taskName']+'奖励失败:\x20'+iil1ii[illIi1(0x17a,'XNel')])):iliIII[illIi1(0x105,'Hpno')]('❌\x20脚本运行遇到了错误\x0a'+iIIl1i);break;}else return i1III[illIi1(0xd4,'(iU7')];}catch(ii1iiI){IlIlli[illIi1(0xbf,'R7Jy')](IlIlli[illIi1(0xf2,'gRCT')],IlIlli['XGbTF'])?(IllIII[illIi1(0xd5,'gRCT')]=!![],ii1li[illIi1(0x1c2,'7OG1')]&&IiiIiI[illIi1(0x169,'s*Rl')][illIi1(0x151,'(vnT')](lilii)):console[illIi1(0xab,'lpuD')](illIi1(0x1b1,'uu7G')+IIIl1I+'\x20请求响应\x20'+(ii1iiI[illIi1(0x112,')bd$')]||ii1iiI));}}async function sendRequest(ilil11){const ii1ili=lIli1i,illlI1={'EnYwh':ii1ili(0x153,'lpuD'),'RRhKC':ii1ili(0x140,'quI*'),'xNvhi':'05b33','mNOmE':ii1ili(0x1b7,'eIGj'),'OSBVW':ii1ili(0x1bc,'FX7V'),'sfVJH':ii1ili(0x146,'#kzd'),'DuHTv':ii1ili(0x123,'Z$0b'),'FeYIi':'23615','zUDfD':ii1ili(0x13e,'T)Db'),'ioBYj':'yMFJI','EmjsI':ii1ili(0x1a1,'4WMX'),'voxiC':'keep-alive','qNZgE':ii1ili(0xb6,'J9v#'),'tRTVU':ii1ili(0xb9,'tR*l'),'humhO':ii1ili(0x111,'s*Rl'),'nzAzl':function(IlIli1,illIiI){return IlIli1===illIiI;},'TiDxR':function(lI1lli,Ill1l){return lI1lli!==Ill1l;},'KcCvR':ii1ili(0xff,'f7FR'),'hynaG':function(llI1Il,ii1iii,i11iil){return llI1Il(ii1iii,i11iil);},'GhrlA':ii1ili(0x12a,'s*Rl')};if($['runEnd'])return;let IIIl11='',I1lIi1=null,liiIIi=null,lil11I=ii1ili(0x67,'Ntv&'),Iliii1={},iIiIi={};switch(ilil11){case illlI1[ii1ili(0x122,'r[XV')]:lil11I=illlI1['RRhKC'],iIiIi={'appId':illlI1[ii1ili(0xe0,'J9v#')],'functionId':illlI1['EnYwh'],'appid':'jdchoujiang_h5','clientVersion':common[ii1ili(0x121,'H7hT')](),'client':ii1ili(0x154,'(u)q'),'body':{'configCode':configCode,'fp':$['fp'],'eid':$[ii1ili(0x95,'nAI)')]},'version':'3.1','t':!![]},Iliii1=await H5st[ii1ili(0xa6,'Hpno')](iIiIi),IIIl11=illlI1[ii1ili(0x113,'Hpno')],liiIIi=Iliii1[ii1ili(0x98,'(u)q')];break;case ii1ili(0x15d,'%D34'):iIiIi={'appId':'bbfbd','functionId':ii1ili(0xd8,'Htna'),'appid':ii1ili(0x14e,'y7rm'),'clientVersion':common[ii1ili(0xeb,'bN#N')](),'client':illlI1[ii1ili(0x17f,'70L4')],'body':{'groupType':$['groupType'],'configCode':configCode,'itemId':$[ii1ili(0x189,'uu7G')],'fp':$['fp'],'eid':$[ii1ili(0xcf,'VHoR')]},'version':illlI1['sfVJH'],'t':!![]},Iliii1=await H5st['getH5st'](iIiIi),IIIl11=ii1ili(0xd6,'(u)q'),liiIIi=Iliii1[ii1ili(0x106,'J9v#')];break;case illlI1['DuHTv']:iIiIi={'appId':illlI1[ii1ili(0x175,'Ltjv')],'functionId':ii1ili(0x17c,'H7hT'),'appid':'jdchoujiang_h5','clientVersion':common[ii1ili(0x1aa,'Z$0b')](),'client':illlI1[ii1ili(0x9a,'J9v#')],'body':{'groupType':$['groupType'],'configCode':configCode,'itemId':$[ii1ili(0x147,'OiI!')],'fp':$['fp'],'eid':$[ii1ili(0x102,'J9v#')]},'version':illlI1['sfVJH'],'t':!![]},Iliii1=await H5st['getH5st'](iIiIi),IIIl11=ii1ili(0x78,'FX7V'),I1lIi1=Iliii1[ii1ili(0x127,'Z$0b')];break;default:console[ii1ili(0x19c,'70L4')](ii1ili(0x12c,'H7hT')+ilil11);return;}const iil1ll={};I1lIi1&&(illlI1[ii1ili(0xf5,'%BEl')]!==illlI1['ioBYj']?Object['assign'](I1lIi1,iil1ll):lliiil[ii1ili(0xae,'lpuD')]=!![]);liiIIi&&Object[ii1ili(0x13a,'r7oo')](liiIIi,iil1ll);const iiilil={'url':IIIl11,'method':lil11I,'headers':{'Accept':ii1ili(0x15e,'T)Db'),'Accept-Encoding':illlI1['EmjsI'],'Accept-Language':'zh-CN,zh-Hans;q=0.9','Connection':illlI1[ii1ili(0x8e,'%MD^')],'Content-Type':illlI1[ii1ili(0xb5,'Z$0b')],'Cookie':cookie,'Origin':illlI1['tRTVU'],'Referer':illlI1[ii1ili(0xe1,'Htna')],'User-Agent':$['UA']},'params':liiIIi,'data':I1lIi1,'timeout':0x7530};illlI1['nzAzl'](lil11I,illlI1[ii1ili(0xaf,'Eedu')])&&(delete iiilil[ii1ili(0x94,'p[rg')],delete iiilil['headers'][ii1ili(0xcd,'xXrQ')]);const iil1li=0x1;let lillIl=0x0,iIiIl=null,iiilii=![],li1i1i=null;while(lillIl<iil1li){if(illlI1[ii1ili(0x179,'I62)')](ii1ili(0x19d,'J9v#'),ii1ili(0xfb,'xXrQ'))){lillIl>0x0&&await $['wait'](0x3e8);const ii1iil=await common[ii1ili(0x75,'#kzd')](iiilil);if(!ii1iil['success']){if(illlI1[ii1ili(0xc6,'y7rm')](illlI1[ii1ili(0xf3,'(m6n')],ii1ili(0x180,'Z$0b'))){li1i1i=ii1iil[ii1ili(0x134,'%D34')],iIiIl='🚫\x20'+ilil11+ii1ili(0x17b,'FX7V')+ii1iil[ii1ili(0x129,'4WMX')],lillIl++;continue;}else l1lIll['assign'](I1l1II,IIli1I);}if(!ii1iil[ii1ili(0xc0,'Hpno')]){iIiIl=ii1ili(0x15f,'(u)q')+ilil11+ii1ili(0x165,'PyJ]'),lillIl++;continue;}await illlI1[ii1ili(0x16c,'Ntv&')](handleResponse,ilil11,ii1iil[ii1ili(0xb3,'(u)q')]),iiilii=![];break;}else{let llI1Ii='完成全部任务可额外获得['+lI1Iil[ii1ili(0x145,'Eedu')]['moduleBaseInfo'][ii1ili(0x1c0,'(u)q')]+ii1ili(0x190,'s*Rl');lilIiI[ii1ili(0xf7,'x4EX')](llI1Ii);}}if(lillIl>=iil1li){li1i1i===0x193&&($[ii1ili(0x1a3,'CxC@')]=!![]);console['log'](iIiIl);if(iiilii){if(ii1ili(0x172,'UoV9')===illlI1[ii1ili(0x1be,'Ntv&')])$[ii1ili(0xd5,'gRCT')]=!![],$['message']&&$[ii1ili(0x112,')bd$')]['fix'](iIiIl);else{let li1i1l='';for(let II1i1=0x0;II1i1<lliii1;II1i1++){li1i1l+=IIlll[liliI[ii1ili(0x10a,'I62)')](ll1lI['random']()*l1iii[ii1ili(0x137,'R7Jy')])];}return li1i1l;}}}}function randomString(lI1lll,iIiII='qwertyuiopasdfghjklzxcvbnm'){const liil1i=lIli1i,iil1lI={'hfIEf':function(li1i1I,illIii){return li1i1I*illIii;}};let iiiliI='';for(let ii1il1=0x0;ii1il1<lI1lll;ii1il1++){iiiliI+=iIiII[Math['floor'](iil1lI[liil1i(0xe8,'CxC@')](Math['random'](),iIiII[liil1i(0x85,'CxC@')]))];}return iiiliI;}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) }
|