mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
12 lines
38 KiB
JavaScript
12 lines
38 KiB
JavaScript
/*
|
||
超市盲盒
|
||
|
||
cron:1 1 1 1 *
|
||
|
||
*/
|
||
|
||
const $ = new Env('超市盲盒')
|
||
var iil='jsjiami.com.v7';const li1i1l=iii1II;(function(Iliii1,iIiIi,iil1ll,iiilil,iil1li,lillIl,iIiIl){return Iliii1=Iliii1>>0x7,lillIl='hs',iIiIl='hs',function(iiilii,li1i1i,IlIli1,illIiI,lI1lli){const lllI1i=iii1II;illIiI='tfi',lillIl=illIiI+lillIl,lI1lli='up',iIiIl+=lI1lli,lillIl=IlIli1(lillIl),iIiIl=IlIli1(iIiIl),IlIli1=0x0;const Ill1l=iiilii();while(!![]&&--iiilil+li1i1i){try{illIiI=parseInt(lllI1i(0x1df,'d#M&'))/0x1+parseInt(lllI1i(0x268,'CtdE'))/0x2+parseInt(lllI1i(0x19a,'I)7g'))/0x3*(parseInt(lllI1i(0x25f,'jvby'))/0x4)+-parseInt(lllI1i(0x253,'i]gP'))/0x5*(-parseInt(lllI1i(0x18d,'fFhu'))/0x6)+-parseInt(lllI1i(0x1d5,'qNd]'))/0x7+-parseInt(lllI1i(0x255,'Yb&)'))/0x8*(parseInt(lllI1i(0x209,'qNd]'))/0x9)+parseInt(lllI1i(0x244,'ST4$'))/0xa;}catch(llI1Il){illIiI=IlIli1;}finally{lI1lli=Ill1l[lillIl]();if(Iliii1<=iiilil)IlIli1?iil1li?illIiI=lI1lli:iil1li=lI1lli:IlIli1=lI1lli;else{if(IlIli1==iil1li['replace'](/[wkfKRQxJtbgUrDLYFdq=]/g,'')){if(illIiI===li1i1i){Ill1l['un'+lillIl](lI1lli);break;}Ill1l[iIiIl](lI1lli);}}}}}(iil1ll,iIiIi,function(ii1iii,i11iil,Ill1i,ii1iil,lllI1l,i11iii,llI1Ii){return i11iil='\x73\x70\x6c\x69\x74',ii1iii=arguments[0x0],ii1iii=ii1iii[i11iil](''),Ill1i=`\x72\x65\x76\x65\x72\x73\x65`,ii1iii=ii1iii[Ill1i]('\x76'),ii1iil=`\x6a\x6f\x69\x6e`,(0x16e7ef,ii1iii[ii1iil](''));});}(0x6080,0xc19a8,Iii11l,0xc3),Iii11l)&&(iil=li1i1l(0x2eb,'eN[p'));function iii1II(_0x2a145a,_0xaf60cd){const _0x141df7=Iii11l();return iii1II=function(_0x3aa06f,_0x4876c8){_0x3aa06f=_0x3aa06f-0x17a;let _0x53b9da=_0x141df7[_0x3aa06f];if(iii1II['RqRQlw']===undefined){var _0xcf6cfa=function(_0x161259){const _0x8a9608='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5968a0='',_0xc00ad5='';for(let _0x443ac0=0x0,_0x41b30e,_0x1d017e,_0x14d904=0x0;_0x1d017e=_0x161259['charAt'](_0x14d904++);~_0x1d017e&&(_0x41b30e=_0x443ac0%0x4?_0x41b30e*0x40+_0x1d017e:_0x1d017e,_0x443ac0++%0x4)?_0x5968a0+=String['fromCharCode'](0xff&_0x41b30e>>(-0x2*_0x443ac0&0x6)):0x0){_0x1d017e=_0x8a9608['indexOf'](_0x1d017e);}for(let _0x3c95ab=0x0,_0x274360=_0x5968a0['length'];_0x3c95ab<_0x274360;_0x3c95ab++){_0xc00ad5+='%'+('00'+_0x5968a0['charCodeAt'](_0x3c95ab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc00ad5);};const _0x28f800=function(_0x5e56fa,_0x370cb6){let _0x1b1e77=[],_0x1d4234=0x0,_0x4b252e,_0x40fba8='';_0x5e56fa=_0xcf6cfa(_0x5e56fa);let _0x5b2231;for(_0x5b2231=0x0;_0x5b2231<0x100;_0x5b2231++){_0x1b1e77[_0x5b2231]=_0x5b2231;}for(_0x5b2231=0x0;_0x5b2231<0x100;_0x5b2231++){_0x1d4234=(_0x1d4234+_0x1b1e77[_0x5b2231]+_0x370cb6['charCodeAt'](_0x5b2231%_0x370cb6['length']))%0x100,_0x4b252e=_0x1b1e77[_0x5b2231],_0x1b1e77[_0x5b2231]=_0x1b1e77[_0x1d4234],_0x1b1e77[_0x1d4234]=_0x4b252e;}_0x5b2231=0x0,_0x1d4234=0x0;for(let _0x1a9947=0x0;_0x1a9947<_0x5e56fa['length'];_0x1a9947++){_0x5b2231=(_0x5b2231+0x1)%0x100,_0x1d4234=(_0x1d4234+_0x1b1e77[_0x5b2231])%0x100,_0x4b252e=_0x1b1e77[_0x5b2231],_0x1b1e77[_0x5b2231]=_0x1b1e77[_0x1d4234],_0x1b1e77[_0x1d4234]=_0x4b252e,_0x40fba8+=String['fromCharCode'](_0x5e56fa['charCodeAt'](_0x1a9947)^_0x1b1e77[(_0x1b1e77[_0x5b2231]+_0x1b1e77[_0x1d4234])%0x100]);}return _0x40fba8;};iii1II['jlWnOv']=_0x28f800,_0x2a145a=arguments,iii1II['RqRQlw']=!![];}const _0x521781=_0x141df7[0x0],_0x547fdd=_0x3aa06f+_0x521781,_0x4db29c=_0x2a145a[_0x547fdd];return!_0x4db29c?(iii1II['uqJiPg']===undefined&&(iii1II['uqJiPg']=!![]),_0x53b9da=iii1II['jlWnOv'](_0x53b9da,_0x4876c8),_0x2a145a[_0x547fdd]=_0x53b9da):_0x53b9da=_0x4db29c,_0x53b9da;},iii1II(_0x2a145a,_0xaf60cd);}const jdCookie=require(li1i1l(0x2b1,')O%W')),notify=require(li1i1l(0x1e1,'ZtMh')),common=require(li1i1l(0x2cc,'UVB2')),{H5st}=require(li1i1l(0x2cd,'UVB2')),linkId=li1i1l(0x1d3,'Xn6D'),isNotify=![];let cookie='';function Iii11l(){const iiiliI=(function(){return[...[iil,'LkYjfrsUQjixaFqmiKx.bcqYotJmDd.wqvRg7Ybg==','k8kUW6m','xqpdIetdRrq','W7RdHCoIqmocpL/dOSkUjCk4WP/dGCoZWPhdVSooW4aYbCkqdWRcQedcSw/dS8obyCkNWRldKmkMyHtdTmkzB8o3uspdM2hcQeZdRuBcMmoGWQbRW6NcGLzDWQVdTeLLimkzW7RcOMfse8kWWQpdP2WzW7ZdHSoPWOlcGmkdpCoQWOxdR8kRW7aJWOSdb3i2WP05wmkRW5/dVcrUzKZdMMpdSchdT8o3iILNW4ZcSXLSWOFdLmoAW4hdSSkudt83','W5W/WP7dKelcOwC','WQKvWQ3dTG','WRRcPCkvr8o4','nrXTWP7cP8ohnq','DCoZWRFcH09NW6hcV8kIWRG','W5tdK8ov','qXeecshdLXZcUYi','WQdcHs0rvG','WQ/dQ3u','5Q635OM05AA7','fmo1lXvu','sqTamaRcRX/cO3W8WQPLWOBdLCoWW4JdUNWQpSk5w8kWxupcJ8k9i0lcIcFdTmknW4RdMSkfqchdPfmtW6dcLNpcHZSF','qCojWQFdKmoM','wfpdRa','W5dcTCk0bhSZqG','W6JcUwWgF1vmW5RcIGZcGmo+W43cHq','WRHsDI/dGq','WPRdK3e0ua','oKZdShLT','WRZdHCklW5RdMG','xCo1WO0','avRdNLlcKhuOW7S','WQbosJZdKq','W5BcKSoWlSkq','jHWfnmkd','dq7dTqi','WRhdSxZdPCkgsq','W5lcKmoIWQddPXZcIgNcT8od','wqdcSc1Dt8kEW75kqW','6l+t5Rou5lUH5AEp5AEO77Yu5lI85lUr6yg35RcD5P+95OU15yUaWRpdJmov','tf/cN2xcNG','vmkzWR7cICoC','WQxdRwO','WO49WPNdK3NdSIxcVmkgzW','svpcLXbG','WPRcNr9bemov','lfpdOCkUW4LirHpdVKmvxa','WQ7dLCoMxmodCa0','W4dcLmoeWQJdUHdcRwBcVq','4P6qWPdOHO3MNixOVBBOOy/PGl7LIRdKUz3PLzxORlVdSq','WPJcGKFdVsFcQ8kADgOQWQxdUG','W53dJSoanIZcHW','jZeYn8kwWPlcLCofCZ3cOCocW4a','W4NcG8oxmCk+','b0JdK2visCkpESkrWQXrWOJdTq','B8kVWOS','5RgS5P6Z6i6J5y615yIP5lUC5yUoWRJcLW','q13dOSoY','fSoTpbPmW5D1W7ZcQ8o4DCkI','beFdLur2','q8kCtfRcKSovCgD6dCouWPm','tqFcJcHR','5OIo5lUn776S56Q75Rka','aCoMW6jkWQnhpZSnW449jfO','WQBdL0ldJCkm','bLvvehi','W7FcUCk5WQ9jWR/dVYqyW58','eLNdKgjYrCkBFmkBWQzQW5xdS8kTi8kdW5ddV8k6pX9bkSkvWQXSp8oNsmohbmkEWR0','W6b+A8odW6W','WQpdISkkW7JdQ1fe','cSokWRNcKq','o1jvcmoXuCkhsmodbeulWQ4ha8kZW5BcRCoQ','r8oWWQpdISob','A0/cIhBcTa','WRldKCo6ta','FvldN8o3W7W','WOJcJGr4','WQRdQNBdHCkq','wceShH4','W57cMCoGlmkKsLlcNq','nIiZeCk2WP0','W4TpW7ZcTIPKW5W','WR/cMCk5FmoE','WRNdKfhcVmku','F8o5WRBcHJm9WQJcH8k7WQSFoWq','WPlcIH5/aSovWQ8','WQJdKCoKqSo1BaZdSSk4kCkbWONcKa','WR0rEuNdUW','gCoOW7y','WO7cLX1+jq','W5BdQJyKW47dTJa','WR/dQc1FmG','W5NdJmoMgIZcI8kVECkhdCk7WQG','DSkUWP/cGmoHw8ktW7BdOCovWPe','WRRdI3hdJCkk','WQBdTMddRCkBsG','WO49WPNdK2tdTslcTCkr','hNXeW4VcRq','WPddIhddHSkD','W6lcJCoAWQ7dGeTocdHW','uMhdKdeO','aXZdQ2tdHIxdRa','W5ldSmkXW4O3WRm','s8kSWOSzW6PlmNZdS8o8eJqYySob','W5FcJmooWOFdSq','5AY05OQS5lMj5yUA5OMp5yM/','puD1jCoJtSkMxSodjfWx','hZXk','iML4W4hcQq','ymk/w37cTW','WRWfW6q','ew3cRf7cRx7dVa','oHz6WPq','vHeFpJFdPa','WQHhtJNdMSoql8kqDCkL','bmoPcqLSW5rEW6NcM8oRFCk5','WRLfCYldJmo4dmkxymk4q8otiCoVva','W6ZdISkD','WPFcT8ktpeCtw8kGWPG','W7tdHmkjW4NcJKpdLMXBbvpdRW','WQhdUCouW7CpW6ZdTqG4W4ZdSmoc','W4ddO8kQW7m','WR0pW7bUbfldKq','F2pcR2lcPq','WQJdKCoKqSoVBqRdPCkPoa','f0JdLg8','W6lcQmkEWQv+WRVdPYqgW47dHW','cIJcLG','WQ/dHmo2w8o1AXBdSmkFpSk1WOW','murg'],...(function(){return[...['5A2v5OQA5lQL5yQx5Aw56lwfvW','WOVcJH5Nn8olWROq','WPpcTbGJDG','bImKlSklWPVcL8ox','xWVdKfe','qt/cHYfm','g8o4bHXlW5q','W53dHmoBdW','WRxdPtK','rWiEgaldQGVcOJqLW7iX','WPJcIGnziG','W7BdJa0LW7m','WPKmBNFdNhjmh8k9','WQpdILtcQ8k/WOuLn8oeWOVcVGq','Bh7cQxJcIq','WQ1wBJK','u1NdV8olW53cPInhASog','yeeSW5NdTmktybtdRHBdGmoNEa','W4FcGCofWQRdGb7cSgZcOq','qCkKWQhcKCoh','WRJdIKhcQCkFW5DLAmoHWONcTL3cVtKAy8kKy8k0WQxdT1C5vmo1','W6vyWRqVvqlcJmoQWO/cVY8wEW','w0xdJsmS','WRhdVIPgo1PuW4FcSItcNmkkW63dJ3ygWOJcOvnTzx3cHSovFW','WQJdKCoKqSoVDXZdRCkxjCkNWO8','WOBcLdK+yq','WOFcT8kQyW','W5pdO8k3W6y','W4HQW5JcJGdcRwFcGCk1xgyIWQm','W6BcVCkYWR5tWRO','4PYFCoADQ+IcOEAUPUEILowNVUEsTaC','hSofW5bmWQO','W4pdO8kWW6WqWR3dLrNcOG','WPtcUSk7uCoj','FhFcTZHm','WOBcHmkLECo2','qwxdRCoPW4W','W43dRx5mmCkFWOxLVBtLPRVJGyFKU7pKU57OT43LJPO','zmkLWPJcOCo0yq','dCoqWOeSnJG','W4pcKSoFWRVdSttcQ27cOSoEW5/dGw3cUWW','W5xdNcuEW7S','vxdcUcnz','5Rc75PYr6i+p5y215yUP5lQW5yIjW6pcTa','5OIn5lUD5l6B5OkN5yUs77YX','WQ3cSvZdJri','eLNdTg9OtCk2yCkbWR0','i8o3pZfk','WQbttrtdOG','kXjjWQNcHW','WQZdMwakB04BWPJcTSoOECojA3jFu0boW5O','W7n3cW','q0xcTGDi','iuZdKG','WR7dJNuxBfq','hq7dSGJdUcXOWQldRSkNomkl','WRZdUcXzoG','j8oeWQismW','W6vEW6z5uG','WOpcPSkvguGav8k1WPxdLZSVW7pcVmo9WOVdNHFcMW','WOZdGSoTAmoS','rL3dPCoIW5FcUa','W7tcPCoI','W6NdQd4cwmoAW4aFgti','W6xcG8oMnCkKsLlcNq','WP49WP7dMq','bxddRMLX','WOyxEW','tuhcPHjWbcJdISkrja','W5v+s8ozW68fWRq','W6ddQ8k1W44T','iCogWPGdkW','mIavpCk2WPhcTSoBvca','g8owWOeikZJcKJ7dPq','cSoTW5btWRG9AIddJmonacaEAW','W7pdPSkAW6un','bmonWPq','W5/cJ8or','vSo/WP7dVSo0WQ8YaJDgD3XcWP3dKsVdVmopW70','WPdcOSkspMaAqCkJWPpdOG','WQVcQdm','xWWk','dCokWQlcHdnX','W7r5fCog','W67dJCk5W7uQ','t8oRjY9XW79I','W6RcSCo7WPJdOG','WQ3dQY1DhaKpWOtcTG','W5ZcLmoYWRxdNW','rSkTuuihW4XIW4JcLCoxAa','W6pcLwexCeSCW57cGCo+rmoCA2b0x0T/W5JcQ8kyW5uJ','W6pcLwexCeSCW57cGCo+rmoCA2b0Fq','W7z3hW','WQhdLxm','WOVcHGbPl8oBWQCCr27cU8oAW4ZcKHK','vWxdGW','W5G9WP5XW6hdNG','W4pdO8kWW6WcWR3dJXZcTmo0W5eV','WR4EWOVdGga','WR/dN8oZta','5P6x6k+e5lUi5yIm5AEz6lE3nq','nmogWRNcRbq','6lAE5y+S5PEy5PEI','WPhcPSkxDSoFDfBdRSojrCo7dG','lfpdOCkUW4LitH/dUvy','tL7dISopW50','cCokWQpcJGPRDmkAWPy','W6hcU2SbEHaUWR3cVrJcGW','44gD5O+Z56Ap44oE6k2n5ywR6i615y6GW4Lne1TrWRO','WPNdH8oRhq','WOiDFxRdL2Dw','W6lcOmkaWQT2WR3dNIqFW7VdKCoYWPpcMhq','cb/dLqldJs5kWQldRSk7nmkl','WP5oWQldPhGNWPS4prddVCkOWPO6o3xdJmkca8oUW7CQWOCqW6vrymoxWRVcOI/dRxRcNmoFt1C3uSkfWPhdS8odcmkhm8ohd8kAWOZcGwtcQtKmW4pdMmkQgCoUWQb3WRFcMftcTSktiW','WQFdIhRdUmkT','WO3cShBdIb0','sWtcHt59tmk9W6D9rCo1wa','WO/dNLKxsW','4PY+bUACMEIbKoAUI+EIVowKNEEtT8kp','W5ddRCow','a0JdKM92vq','W5NcK8oCWQJdTrRcRs7cP8oyW5xcOxRdOq','WQpcOCkSmgS','W5RcK8oYWQddVrVcVvlcPCorW57dO2K','aKDbW4ZcHCkH'],...(function(){return['WONcNGqRAq','W4JdUIy0W4RdOIy','sfdcHHi','nbz5','uLxdSW','kHHWWONcQCon','WQpcJZOvvq','u8o1WOxdNSoWWRO5','WQ3dQY1DhbKlWO0','WQZdIKacAKWRWPtcP8o6t8ov','bX4dkSkP','W5xdRCkNW74','W4NdSdi','gmoPla90','5P+E6kY85lIz5yUc5AA+6lsTCq','hM3dNCkdW7a','EeNcUsvu','oKnthCog','bqZcSSk/WOdcPqn3r8oTW40','dSoFWQlcJdbLACkqWOO','WOdcGGa','WPZdLSolhxxdGmkItgr6','W5ldTmoxaG4','g8omoYH7','gHVdObhdRs1PWRVdJCkUoSkkW6uSWPS5','vayzo3hdSbe','ELrvlmoIgmot','WPyZWO0','WRhdLCoKwSohzbW','W5hcJmk5','W4VdMCogoddcJ8kaDCkw','W4ldOmoXiCkClIVdN8o7FSoRhmom','yW/dT1NdQG','WOJcRmkg','W5BdQYCUW4xdOIRcT8oM','CYNdT0pdVW','W4ToW77cPXX/W4bXxKtcRCo/W6DLAIi','W4bqxmoFW6y','W4ZdNCobebVcJ8k/DCkEcCkH','mfHg','WRddN8oW','W6TlvmodW6K','WP7dQConbx4','8joRIe0','BEIVLoAZT+wqGUw4RGm','DCoCWPZdV8oe','W5/dLSoBmrC','WRJdQsPFpGKpWOhcTIFcQSouW6ZcGgGeW4NcSfe','avjbW4tcHSk1CmkxW5y','a8o8gXbRW5vfW7xcUG','WORcHNldRGFcQmkXyu4QWQVdS1/dUWJcKa','WQxdJMatAH1aW57cO8oPsCoDyMufwafwW5pdQmkwW5uG','WOPCqWZdVq','je3dKCkQW4i','BftdM8oFW7C','WPFcTSkcnKWhqq','WPq1WQpdLLW','foIVI+AZIEwMT+I2NCo14P+mbUAxREwrRUw4REAvMoAnPa','WQRdHetcGCkl','pSkkW4hdLwm','5A2l5OUx5lQV5yUh5AsQ6lAqWOm','WRZdUcX7oWC','W7RcPSkk','WQxdJMatAH1aW57cSSoRt8kxAJ1buqfFW5JcQ8oAW5S9esS','xmo/WPNdGCo0WRWY','xvldQmoQW43cStvv','gmoWaZHN','8yYiKtq','WRhcJGL7ea','m8kGW7FdMvv3W6JcSa','WOunAfJdNNrc','WOZcKSkf','eXxdSdVdMq','WPGZWO7dGq','cquQmCku','bCo8bH9qW5e','WRpcPICnt8omW58r','cLlcHHTXuLu','n8o8WRxcLYW','W5r0xW','WR7cOIz9lq','WOtdLCoeqmoe','WPJcIHLycSoFWQ8','W4X5sCosW4a','WPVdPcXsbG','eCoeWRC','W5BcKSoeWOZdPXa','kIqzpCkR','rMBdG0rYbGxdHCkXkgtdHCkIkZVcKchdTCkXgYJcIG','W50PWPLa','W6ZcUgKeEfDdWR3cPa7cOCoLW6W','5y225yoGna','vqOdeIJdRXW','lXH3WPK','lKZdKCkQ','WOxcS8kseuyGu8k1WOO','qN7cJupcNK3dQCk4bcxdJ0/cRCkqW6FcJ3PZna','WPlcImkSgMu','rNtcNwO','WRZdKvi','W5jjksNcGgvWlmkQW6Wo','dGRdTsddKsPTWQldUmkzpmkdW5KN','WPBcK8ohdZBcJmkym8kHcCkWWQhdNxX+sx4lW5jJWOlcOxPrrSo1tW','W5/ORjJMSk/LPl3OTyBcKUkDLLu','tWpdIvxdHa/dKNxdPCkXpa41WOJcSG','WQ/cUgtdHde','WOhcU8kiiq','W6ZdPmoldaO','WP7dH8oRh24','q8kCA3/cJSoQxx1I','FrBcGH9E','WQZdIKacAKWJWPJcOmoV','smkQWPakW6fVnhtdRa','BIhcVcvm','t8kkDhhcRa','W4X6s8obW50nWQqPDCkAg3fC','WO7dMSontSo+','hSotWOmjlG','WQ7dLxOfCea','gmoIW6jsWPfplW','WQFdNSkaW68','WPZcUCkK','t8k/WPeiW4TNcxVdUmoWbG','5OMT5lQs77+Z'];}())];}())];}());Iii11l=function(){return iiiliI;};return Iii11l();};const cookiesArr=Object['keys'](jdCookie)['map'](llIIll=>jdCookie[llIIll])[li1i1l(0x1f8,'Yb&)')](IillIi=>IillIi);!cookiesArr[0x0]&&($['msg']($[li1i1l(0x23a,'QNZ7')],'【提示】请先获取Cookie'),process[li1i1l(0x1e5,'m)74')](0x1));!(async()=>{const II1i1=li1i1l,lii={'LNnzi':function(IllI1i,i11I1l){return IllI1i<i11I1l;},'vjIxT':'PEExG','LikKi':'CvcCV','mflJM':function(lil,IllI1l){return lil(IllI1l);},'pSMbs':II1i1(0x28f,'CtdE'),'DUwvh':function(i11I1i){return i11I1i();},'WJVhN':function(IillIl,llliil){return IillIl===llliil;},'eGbNA':'pxtys','OOzkr':II1i1(0x25c,'DGbL')};notify[II1i1(0x1f1,'UVB2')]({'title':$['name']});for(let liIl1=0x0;lii['LNnzi'](liIl1,cookiesArr['length']);liIl1++){if(lii[II1i1(0x238,'21fk')]===lii['LikKi'])IiilIl[II1i1(0x1ca,'lssv')](iii1Ii[II1i1(0x1d1,'eN[p')]);else{$[II1i1(0x23d,'W*M1')]=liIl1+0x1,cookie=cookiesArr[liIl1],common[II1i1(0x199,'ZtMh')](cookie),$['UserName']=lii[II1i1(0x1ed,'lRDi')](decodeURIComponent,common[II1i1(0x1e0,'PGO5')](cookie,lii[II1i1(0x206,'21fk')])),$[II1i1(0x1f2,'sYAY')]=notify['create']($[II1i1(0x1b0,'LNKd')],$[II1i1(0x275,'^Ucx')]),$['nickName']='',console[II1i1(0x25e,'fMQC')](II1i1(0x297,')O%W')+$[II1i1(0x243,'xwyv')]+'】'+($[II1i1(0x23f,'OMV9')]||$[II1i1(0x2b2,'OMV9')])+'******\x0a'),$['UA']=common[II1i1(0x27c,'c1Ac')]($['UserName']),await lii['DUwvh'](Main),common[II1i1(0x24d,'lrLl')]();if($[II1i1(0x2d2,'o3q2')])break;await $[II1i1(0x1d8,'!KRy')](0x3e8);}}isNotify&¬ify[II1i1(0x282,'fFhu')]()&&(lii['WJVhN'](lii['eGbNA'],lii[II1i1(0x242,'I)7g')])?I1iIiI[II1i1(0x215,'eN[p')]=li1I1[II1i1(0x26d,'MAb&')]||[]:await notify['push']());})()[li1i1l(0x1e7,'4Y7M')](ii1I1I=>$['logErr'](ii1I1I))[li1i1l(0x1d7,'[OBw')](()=>$['done']());async function Main(){const lI1lll=li1i1l,IiIl={'pCpYP':'还没有到开奖时间','CkYTT':lI1lll(0x2de,'LNKd'),'vYNgj':lI1lll(0x182,'21fk'),'lgqKu':lI1lll(0x19f,'GSeL'),'RjZgX':function(iI1ll1,IlI1Il){return iI1ll1<=IlI1Il;},'YZkCN':function(l1il1l,liIil){return l1il1l==liIil;},'rdeaM':function(IllI1I,liIii){return IllI1I!==liIii;},'uLDhF':lI1lll(0x211,'OMV9'),'kBAmZ':function(II1ll1,IlI1Ii){return II1ll1<IlI1Ii;},'TjWJu':function(i11I1I,l1il1i){return i11I1I===l1il1i;},'ZUkmQ':lI1lll(0x210,'LN]s'),'InTqD':lI1lll(0x2e5,'C[7f'),'JsSmN':function(ll1,iI1llI){return ll1(iI1llI);},'GbMeB':lI1lll(0x1b6,'ST4$'),'SLbfu':function(llliii,IllI11){return llliii(IllI11);},'TxKVW':lI1lll(0x263,'wA#S'),'uwhdE':function(l1llIi,II1llI){return l1llIi(II1llI);},'jHeyQ':'===\x20任务列表\x20start\x20===','YbJBw':function(i11I11,l1llIl){return i11I11===l1llIl;},'WieWI':lI1lll(0x1cf,'qNd]'),'cORyx':function(ii1I1l,ii1I1i){return ii1I1l<ii1I1i;},'fWKkb':lI1lll(0x1ac,'wA#S'),'NTqyK':'taskType','ftrYV':lI1lll(0x246,'QNZ7'),'cuMek':'taskDoTimes','WfQmM':'BROWSE_','skWDA':function(llI,llliI){return llI(llliI);},'gjiJH':lI1lll(0x1da,'m)74'),'XeSib':function(iI1li1,lllii1){return iI1li1*lllii1;},'DBaxP':'qKfEM','AMKqN':lI1lll(0x1ec,'^VEJ'),'YQMYv':function(liIli,liIll){return liIli<liIll;},'EffSp':lI1lll(0x21e,'LNKd'),'IePwv':function(IilIi1,iI1liI,l1lIiI){return IilIi1(iI1liI,l1lIiI);},'gJZxD':function(llliiI,IilIiI){return llliiI+IilIiI;},'lZwfE':function(i1i1I1,IlII1){return i1i1I1<IlII1;},'PrzAJ':'DdYbI','JWerr':function(IiI11,lli){return IiI11!==lli;},'vNljC':lI1lll(0x20d,'i]gP'),'uYfot':lI1lll(0x2a2,'LN]s'),'jQlEp':lI1lll(0x181,')O%W'),'CNtPP':function(liIlI,lll){return liIlI(lll);},'WYRlI':function(llli1,iIli1i,iI1lii){return llli1(iIli1i,iI1lii);},'WivIi':function(IilIii,iI1lil){return IilIii+iI1lil;},'OfQsv':function(l1lIi1,iIli1l){return l1lIi1!==iIli1l;},'xKduh':lI1lll(0x19e,'Yb&)')},IiIi=await common['getLoginStatus'](cookie);if(!IiIi&&typeof IiIi===IiIl[lI1lll(0x2b4,'MAb&')]){console[lI1lll(0x2b5,'d#M&')](lI1lll(0x2d8,'lssv'));return;}try{await sendRequest(IiIl[lI1lll(0x254,'1Pwg')]),info=$[lI1lll(0x19f,'GSeL')];if(IiIl[lI1lll(0x1ef,'QNZ7')](info?.['planDrawTime'],new Date()[lI1lll(0x1cd,'c1Ac')]())&&IiIl['YZkCN'](new Date()[lI1lll(0x298,'lrLl')](),0x4)){if(IiIl['rdeaM'](IiIl[lI1lll(0x212,'^Ucx')],lI1lll(0x24b,'qNd]'))){IiilI1[lI1lll(0x2cf,'UVB2')]('账号无效');return;}else for(let liiIIl=0x0;IiIl[lI1lll(0x291,'sYAY')](liiIIl,0x3);liiIIl++){IiIl[lI1lll(0x2a1,'wA#S')](IiIl[lI1lll(0x1c5,'^Ucx')],IiIl[lI1lll(0x23b,'fFhu')])?I1iIl1[lI1lll(0x27a,'qNd]')](lI1lll(0x221,'QNZ7')+i1il):(console['log']('第'+(liiIIl+0x1)+lI1lll(0x203,'CtdE')),$['body']={'linkId':linkId},await IiIl['JsSmN'](sendRequest,lI1lll(0x27f,'xwyv')),await $[lI1lll(0x1f3,'i]gP')](0x3e8));}}else console[lI1lll(0x2d1,'Yb&)')]('还没有到开奖时间');!info?.[lI1lll(0x2ed,'eN[p')]&&('yKEgb'===IiIl[lI1lll(0x2ec,'m)74')]?($[lI1lll(0x1c4,'8EH2')]={'linkId':linkId,'isDailyRaffle':!![]},await IiIl[lI1lll(0x252,'W*M1')](sendRequest,IiIl[lI1lll(0x18b,'Xn6D')]),await $[lI1lll(0x236,'tPD6')](0x3e8)):iIIl1I[lI1lll(0x187,'xHvL')](lI1lll(0x2e8,'DGbL')+I1iIli+'\x20请求响应\x20'+(lI1Ill[lI1lll(0x17c,'xHvL')]||lI1Ili)));await IiIl[lI1lll(0x22d,'^VEJ')](sendRequest,lI1lll(0x2a0,'MAb&')),console[lI1lll(0x207,'fFhu')](IiIl[lI1lll(0x191,'ZtMh')]);for(const il1i1I of $[lI1lll(0x190,'4Y7M')]){IiIl['YbJBw'](IiIl[lI1lll(0x20b,'UVB2')],IiIl[lI1lll(0x247,'d#M&')])?console[lI1lll(0x1ff,'ZtMh')](il1i1I[lI1lll(0x2c9,'qNd]')]+'\x20'+il1i1I[lI1lll(0x26e,'CtdE')]+'/'+il1i1I['taskLimitTimes']):IlI11[lI1lll(0x202,'W*M1')](iIIIIl['taskTitle']+'\x20'+II1Il[lI1lll(0x1f5,'smEM')]+'/'+lilIlI['taskLimitTimes']);}console[lI1lll(0x1f7,'ST4$')]('===\x20任务列表\x20end\x20\x20===');for(let iI11II=0x0;IiIl[lI1lll(0x1a5,'4Y7M')](iI11II,$[lI1lll(0x1ea,'UVB2')][lI1lll(0x278,'wA#S')]);iI11II++){$[lI1lll(0x250,'8EH2')]=$['apTaskList'][iI11II][IiIl['fWKkb']],$[lI1lll(0x2e2,'PGO5')]=$[lI1lll(0x262,'LN]s')][iI11II]['id'],$[lI1lll(0x1c0,'ST4$')]=$[lI1lll(0x216,'^VEJ')][iI11II][IiIl[lI1lll(0x239,'jvby')]],$[lI1lll(0x226,'MAb&')]=$[lI1lll(0x2b6,'Xn6D')][iI11II][IiIl[lI1lll(0x18c,'Ip4$')]],$[lI1lll(0x1a1,'ZtMh')]=$[lI1lll(0x2da,'LNKd')][iI11II][IiIl['cuMek']],$[lI1lll(0x267,'7L32')]=$['apTaskList'][iI11II][lI1lll(0x2a9,'PGO5')],$[lI1lll(0x224,'^Ucx')]=$['apTaskList'][iI11II]['taskShowTitle'],$[lI1lll(0x2d0,'c1Ac')]=$[lI1lll(0x215,'eN[p')][iI11II][lI1lll(0x2e1,'CtdE')];if($[lI1lll(0x1e3,'Yb&)')]==null){if(!$[lI1lll(0x2d3,'fys)')]&&$[lI1lll(0x183,'qNd]')][lI1lll(0x1bc,'fFhu')](IiIl['WfQmM'])){if($[lI1lll(0x22f,'sYAY')])for(let iIII1I=0x0;iIII1I<0x1;iIII1I++){console[lI1lll(0x1a2,'Ip4$')]('去做\x20'+$[lI1lll(0x2dc,'tPD6')]),$[lI1lll(0x21b,'8EH2')]='',await IiIl[lI1lll(0x2a3,'!KRy')](sendRequest,IiIl[lI1lll(0x1a9,'ZtMh')]),await $[lI1lll(0x23c,'c1Ac')](parseInt(IiIl[lI1lll(0x19b,'Yb&)')](Math[lI1lll(0x180,'!KRy')](),0x5dc)+0x5dc,0xa));}else{if(IiIl[lI1lll(0x2d4,'8EH2')]===IiIl[lI1lll(0x1cb,'c1Ac')])I1lll1[lI1lll(0x1b9,'CtdE')]('❓'+i1IIi+'\x20'+IIII1I[lI1lll(0x220,'eN[p')](Iii111));else for(let IlIIi=0x0;IiIl[lI1lll(0x2c8,'eN[p')](IlIIi,0x1);IlIIi++){console[lI1lll(0x2a7,'LNKd')]('去做\x20'+$[lI1lll(0x284,'eN[p')]),await sendRequest(IiIl[lI1lll(0x1e9,'^VEJ')]),await $[lI1lll(0x28c,'I)7g')](IiIl[lI1lll(0x20c,'MAb&')](parseInt,IiIl['gJZxD'](IiIl[lI1lll(0x1cc,'QNZ7')](Math['random'](),0x5dc),0x5dc),0xa));const IiI1l=$['apTaskDetail']?.[lI1lll(0x28a,'QNZ7')]||[],illlII=$[lI1lll(0x22a,'wA#S')]?.[lI1lll(0x2a8,'UVB2')]?.['finishNeed'];for(let iIII11=0x0;IiIl[lI1lll(0x251,'DGbL')](iIII11,illlII);iIII11++){if(lI1lll(0x24e,'W*M1')===lI1lll(0x277,'^VEJ')){const IiI1i=IiI1l[iIII11];IiI1i?lI1lll(0x2bd,'fys)')!==IiIl[lI1lll(0x2ae,'QNZ7')]?lilIli[lI1lll(0x2bf,'eN[p')](lI1lll(0x2d6,'DGbL')+(Iliili?.[lI1lll(0x1b8,'qNd]')]||'')):($[lI1lll(0x1ee,'lssv')]=IiI1i['itemId'],$['taskInsert']=IiI1i[lI1lll(0x26c,'QNZ7')],await IiIl[lI1lll(0x22d,'^VEJ')](sendRequest,IiIl['gjiJH']),await $[lI1lll(0x269,'fys)')](IiIl[lI1lll(0x280,'jvby')](parseInt,IiIl[lI1lll(0x234,'lssv')](Math[lI1lll(0x1c6,'wA#S')](),0x5dc)+0x5dc,0xa))):console['log'](lI1lll(0x29d,'Spe1'));}else i1ili1[lI1lll(0x265,'7L32')](IiIl[lI1lll(0x29b,'xHvL')]);}}}}else{if(!$[lI1lll(0x27b,'[OBw')]&&$[lI1lll(0x1c7,')O%W')]['includes'](lI1lll(0x1fb,'8EH2'))){if(IiIl[lI1lll(0x1c9,'tPD6')]('lzbAT',IiIl['vNljC']))lilIl1[lI1lll(0x271,'Ip4$')](i1l1ii[lI1lll(0x2c5,'Spe1')],IiIl[lI1lll(0x1af,'LN]s')]),i1l1[lI1lll(0x279,'ZtMh')](0x1);else for(let I1lIl1=0x0;IiIl[lI1lll(0x23e,'[OBw')](I1lIl1,0x1);I1lIl1++){IiIl[lI1lll(0x296,'fFhu')]!==IiIl['jQlEp']?(console['log'](lI1lll(0x1d6,'UVB2')+$[lI1lll(0x292,'fys)')]),await IiIl['CNtPP'](sendRequest,IiIl['gjiJH']),await $[lI1lll(0x229,'fFhu')](IiIl[lI1lll(0x219,'lrLl')](parseInt,IiIl[lI1lll(0x2b8,'fys)')](Math[lI1lll(0x2af,'fFhu')]()*0x5dc,0x5dc),0xa))):Ii1iII[lI1lll(0x25a,'Ip4$')]=l1i11I['data']||[];}}}}}}catch(IlIIl){IiIl[lI1lll(0x2ab,'iULv')](IiIl[lI1lll(0x1a0,'lssv')],'HCSsw')?I1llil[lI1lll(0x196,'8EH2')]('❓'+I1llii+'\x20'+lilIll['stringify'](l1i111)):console[lI1lll(0x2bf,'eN[p')]('❌\x20脚本运行遇到了错误\x0a'+IlIIl);}}async function handleResponse(i1i1Ii,lllii){const iIiII=li1i1l,iI11Ii={'ttuEA':iIiII(0x228,'UVB2'),'vKMOL':'ZfYkr','suwvl':iIiII(0x1a4,'lssv'),'VJwXe':iIiII(0x193,'PGO5'),'tbqxN':function(iIII1l,lllil){return iIII1l===lllil;},'omkCX':iIiII(0x274,')O%W'),'JsVPT':function(iI11Il,iIII1i){return iI11Il===iIII1i;},'SSXbX':'TXywU','FVplW':iIiII(0x270,'QNZ7'),'ysTvT':function(iil1i1,il1i11){return iil1i1===il1i11;},'dLhXE':function(IlIll1,IlIII){return IlIll1!==IlIII;},'DFvMQ':iIiII(0x18a,'LNKd'),'Nadws':iIiII(0x26b,'jvby'),'VrEmo':'apsDoTask','dlxFe':iIiII(0x1d2,'^Ucx'),'wnuJm':function(ilil1l,illlIi){return ilil1l===illlIi;},'JvYRx':iIiII(0x295,'I)7g'),'eJEIt':iIiII(0x2c6,'fys)')};try{if(iI11Ii[iIiII(0x1dc,'m)74')]===iI11Ii['suwvl'])IiiIli[iIiII(0x1c1,'d#M&')]=!![],iillli[iIiII(0x2b7,'lssv')]&&I1i11l[iIiII(0x1fd,'!KRy')]['fix'](llIlii);else switch(i1i1Ii){case iI11Ii[iIiII(0x1e4,'C[7f')]:if(lllii['success']===!![]&&iI11Ii[iIiII(0x1ce,'lssv')](lllii['code'],0x0))$['starShopPageInfo']=lllii[iIiII(0x28d,'fys)')];else lllii['errMsg']?iI11Ii[iIiII(0x1bd,'wA#S')]!=='CZWBN'?console[iIiII(0x1d0,'tPD6')](lllii['errMsg']):i1ill1['log'](iIIl1l[iIiII(0x1d1,'eN[p')]):iI11Ii[iIiII(0x1fc,'I)7g')](iI11Ii[iIiII(0x27d,'xHvL')],iIiII(0x1e6,'ZtMh'))?console[iIiII(0x187,'xHvL')]('❓'+i1i1Ii+'\x20'+JSON[iIiII(0x19d,'xHvL')](lllii)):IiilII['starShopPageInfo']=IliI1I[iIiII(0x276,'Yb&)')];break;case iI11Ii['FVplW']:if(lllii[iIiII(0x241,'GSeL')]===!![]&&iI11Ii[iIiII(0x225,'OMV9')](lllii[iIiII(0x1dd,'jvby')],0x0)){if(iI11Ii[iIiII(0x2e4,'W*M1')](iIiII(0x2d7,'tPD6'),iI11Ii[iIiII(0x1a8,'21fk')]))switch(lllii?.[iIiII(0x213,'PGO5')]?.[iIiII(0x200,'[OBw')]){case 0x0:console[iIiII(0x227,'lrLl')](iIiII(0x22e,'eN[p'));break;case 0x1:console[iIiII(0x2be,'iULv')](iIiII(0x29e,'OMV9')+lllii?.['data']?.['prizeConfigName']);break;case 0x2:console[iIiII(0x202,'W*M1')](iIiII(0x1f6,'i]gP')+lllii?.['data']?.[iIiII(0x257,'smEM')]);break;case 0x3:console[iIiII(0x187,'xHvL')]('抽中:'+lllii?.['data']?.[iIiII(0x264,'LN]s')]);break;case null:console[iIiII(0x20e,'21fk')](iIiII(0x217,'lrLl'));break;default:console[iIiII(0x2c2,')O%W')](lllii?.[iIiII(0x2b3,'8EH2')]?.['prizeType']+'-'+lllii?.[iIiII(0x2df,'4Y7M')]?.[iIiII(0x29a,'eN[p')]);return;}else ilI1lI['message']['fix'](IiiIll);}else lllii[iIiII(0x261,'[OBw')]?'zbAIe'===iIiII(0x2db,'fFhu')?console['log'](lllii['errMsg']):(l1lIlI[iIiII(0x1de,'xwyv')](IiiIl1),lIIil1&&(IiiIlI['outFlag']=!![],Iilli1[iIiII(0x245,'c1Ac')]&&Illl1l[iIiII(0x26a,'fMQC')][iIiII(0x17f,'fFhu')](Illl1i))):console[iIiII(0x27a,'qNd]')]('❓'+i1i1Ii+'\x20'+JSON[iIiII(0x1eb,'smEM')](lllii));break;case iIiII(0x190,'4Y7M'):if(lllii[iIiII(0x24a,'xHvL')]===!![]&&lllii['code']===0x0)$[iIiII(0x2ba,'^Ucx')]=lllii[iIiII(0x17d,'Xn6D')]||[];else lllii[iIiII(0x261,'[OBw')]?console['log'](lllii[iIiII(0x223,'ZtMh')]):'ZxVmZ'===iI11Ii[iIiII(0x1bf,'c1Ac')]?console[iIiII(0x2ce,'Spe1')]('❓'+i1i1Ii+'\x20'+JSON[iIiII(0x18e,'tPD6')](lllii)):iii1I1['log'](iI11Ii['ttuEA']);break;case iI11Ii['VrEmo']:if(lllii[iIiII(0x1b2,'m)74')]===!![]&&lllii[iIiII(0x1d9,'LNKd')]===0x0)iI11Ii['dLhXE'](iI11Ii[iIiII(0x258,'eN[p')],iI11Ii[iIiII(0x293,'I)7g')])?ill111[iIiII(0x196,'8EH2')]('❓'+Iliil1+'\x20'+i1III[iIiII(0x2bb,'iULv')](Ii1iIi)):console['log'](iIiII(0x259,'ZtMh'));else lllii[iIiII(0x240,'^Ucx')]?iI11Ii[iIiII(0x22b,'MAb&')](iIiII(0x28b,')O%W'),iI11Ii['JvYRx'])?li1II[iIiII(0x17e,'!KRy')](IliI11[iIiII(0x299,'iULv')]):console[iIiII(0x19c,'m)74')](iIiII(0x1b7,')O%W')+(lllii?.[iIiII(0x21d,'c1Ac')]||'')):iIiII(0x17b,')O%W')===iIiII(0x29c,'Xn6D')?lilIil[iIiII(0x1a2,'Ip4$')]('❓'+i1l11+'\x20'+i1l1li['stringify'](i1ilii)):console['log']('❓'+i1i1Ii+'\x20'+JSON[iIiII(0x266,'m)74')](lllii));break;case iIiII(0x24c,'ZtMh'):if(lllii[iIiII(0x235,'i]gP')]===!![]&&lllii[iIiII(0x2d5,'QNZ7')]===0x0)$[iIiII(0x222,'C[7f')]=lllii[iIiII(0x281,'LN]s')]||[];else lllii['errMsg']?console['log'](iIiII(0x189,'smEM')+(lllii?.[iIiII(0x256,'fys)')]||'')):console[iIiII(0x2c3,'[OBw')]('❓'+i1i1Ii+'\x20'+JSON['stringify'](lllii));break;}}catch(IIIl1l){iI11Ii['eJEIt']!==iIiII(0x294,'Xn6D')?console[iIiII(0x1a3,'QNZ7')](iIiII(0x290,'^Ucx')+i1i1Ii+iIiII(0x1a7,'LNKd')+(IIIl1l[iIiII(0x1bb,'21fk')]||IIIl1l)):IllII1[iIiII(0x248,'sYAY')]('❓'+I1iIil+'\x20'+lI1Iil[iIiII(0x1ab,'DGbL')](lilIiI));}}async function sendRequest(i11ili){const iil1lI=li1i1l,iil1l1={'Idkbn':iil1lI(0x1ad,'C[7f'),'jTrGs':iil1lI(0x198,'CtdE'),'YTBJp':'1d456','otDtK':iil1lI(0x2a5,'Spe1'),'zzqXg':iil1lI(0x2e6,'^VEJ'),'BdMtR':iil1lI(0x1aa,'qNd]'),'lQSSD':iil1lI(0x232,'CtdE'),'vqphk':function(li1i11,iI11I1){return li1i11(iI11I1);},'XhPYO':'apTaskDetail','qxprF':iil1lI(0x1c2,'ZtMh'),'KevKt':iil1lI(0x233,'MAb&'),'gBywM':'application/x-www-form-urlencoded','TCOQF':iil1lI(0x1ae,'UVB2'),'hognA':'https://prodev.m.jd.com/mall/active/32KbKK7xhekoy6qLX9AhUt8EqWgs/index.html','cxgre':'Content-Type','eSPmd':function(il1i1l,IlIlll){return il1i1l>IlIlll;},'eClYq':function(IIIl1I,iil1ii,IlIlli){return IIIl1I(iil1ii,IlIlli);},'niInl':function(il1i1i,lil111){return il1i1i>=lil111;},'TNBvl':'qelwh','rntNq':function(i11ilI,ii1ii1){return i11ilI!==ii1ii1;},'iDfja':iil1lI(0x204,'wA#S')};if($[iil1lI(0x214,'W*M1')])return;let lllli='',iiili1='',ill11i='POST',lllill=null,ill11l={};switch(i11ili){case iil1l1[iil1lI(0x2b9,'iULv')]:ill11i=iil1l1['jTrGs'],ill11l={'appId':iil1l1['YTBJp'],'functionId':iil1l1['Idkbn'],'appid':'activities_platform','clientVersion':common['getLatestAppVersion'](),'client':iil1l1[iil1lI(0x2ca,'eN[p')],'body':{'taskId':'','encryptionPin':'','linkId':linkId},'version':'4.7','t':!![]},lllill=await H5st[iil1lI(0x194,'[OBw')](ill11l),lllli='https://api.m.jd.com/api?'+lllill[iil1lI(0x2c4,'tPD6')]+'&cthr=1';break;case iil1l1[iil1lI(0x1b5,'xwyv')]:ill11i=iil1lI(0x25b,'!KRy'),ill11l={'appId':iil1lI(0x231,'[OBw'),'functionId':iil1l1[iil1lI(0x1c3,'PGO5')],'appid':iil1l1[iil1lI(0x2e7,'UVB2')],'clientVersion':common[iil1lI(0x1db,'jvby')](),'client':iil1l1[iil1lI(0x2a6,'Xn6D')],'body':$[iil1lI(0x186,'fys)')],'version':iil1lI(0x2e9,'m)74'),'t':!![]},lllill=await H5st['getH5st'](ill11l),lllli=iil1lI(0x289,'qNd]')+lllill['params']+iil1lI(0x1f9,'QNZ7');break;case iil1l1[iil1lI(0x192,'wA#S')]:ill11i=iil1lI(0x2b0,'eN[p'),iiili1={'linkId':linkId},lllli='https://api.m.jd.com/api?functionId=apTaskList&body='+iil1l1[iil1lI(0x1f0,'iULv')](encodeURIComponent,JSON[iil1lI(0x27e,'d#M&')](iiili1))+iil1lI(0x2e3,'GSeL')+common[iil1lI(0x2c0,'21fk')]()+iil1lI(0x1fa,'8EH2');break;case iil1lI(0x1e8,'lRDi'):ill11l={'appId':iil1lI(0x2ac,'fMQC'),'functionId':iil1lI(0x1e8,'lRDi'),'appid':iil1l1[iil1lI(0x285,'lrLl')],'clientVersion':common[iil1lI(0x2ad,'m)74')](),'client':'ios','body':{'taskType':$['taskType'],'taskId':$[iil1lI(0x2d9,'I)7g')],'channel':0x4,'checkVersion':!![],'linkId':linkId,'itemId':$['taskSourceUrl'],'taskInsert':$[iil1lI(0x2c1,'m)74')]},'version':iil1lI(0x26f,'1Pwg'),'t':!![]},lllill=await H5st['getH5st'](ill11l),lllli=iil1lI(0x286,'xwyv')+lllill[iil1lI(0x2ea,'MAb&')]+iil1lI(0x195,'Ip4$');break;case iil1lI(0x184,'UVB2'):ill11l={'appId':iil1lI(0x21c,'Xn6D'),'functionId':iil1l1[iil1lI(0x1b1,'fFhu')],'appid':iil1lI(0x2a4,'UVB2'),'clientVersion':common[iil1lI(0x237,'Ip4$')](),'client':iil1l1[iil1lI(0x188,'wA#S')],'body':{'taskType':$[iil1lI(0x273,'c1Ac')],'taskId':$[iil1lI(0x22c,'lRDi')],'channel':0x4,'checkVersion':!![],'linkId':linkId},'version':iil1l1[iil1lI(0x249,'c1Ac')],'t':!![]},lllill=await H5st['getH5st'](ill11l),lllli=iil1lI(0x1ba,'UVB2')+lllill[iil1lI(0x17a,'DGbL')]+iil1lI(0x1c8,'Xn6D');break;default:console[iil1lI(0x1f4,'I)7g')]('❌\x20未知请求\x20'+i11ili);return;}const I1lIiI={'url':lllli,'method':ill11i,'headers':{'Accept':iil1l1['KevKt'],'Accept-Encoding':'gzip,\x20deflate,\x20br','Accept-Language':iil1lI(0x205,'[OBw'),'Content-Type':iil1l1[iil1lI(0x201,')O%W')],'Cookie':cookie,'Origin':iil1l1[iil1lI(0x29f,'C[7f')],'Referer':iil1l1['hognA'],'X-Referer-Page':'https://prodev.m.jd.com/mall/active/32KbKK7xhekoy6qLX9AhUt8EqWgs/index.html','x-rp-client':iil1lI(0x20f,'PGO5'),'User-Agent':$['UA']},'body':iiili1,'timeout':0x7530};ill11i===iil1lI(0x18f,')O%W')&&(delete I1lIiI[iil1lI(0x260,'!KRy')],delete I1lIiI[iil1lI(0x2e0,'d#M&')][iil1l1['cxgre']]);const lllili=0x1;let IliiiI=0x0,Ill11=null,liiIII=![];while(IliiiI<lllili){iil1l1[iil1lI(0x230,'W*M1')](IliiiI,0x0)&&await $[iil1lI(0x1d4,'o3q2')](0x3e8);const llllI=await common[iil1lI(0x21f,'QNZ7')](I1lIiI);if(!llllI['success']){Ill11=iil1lI(0x1be,'UVB2')+i11ili+iil1lI(0x1e2,'c1Ac')+llllI[iil1lI(0x2aa,'qNd]')],IliiiI++;continue;}if(!llllI?.[iil1lI(0x2b3,'8EH2')]){Ill11=iil1lI(0x1a6,'[OBw')+i11ili+iil1lI(0x1b4,'fFhu'),IliiiI++;continue;}iil1l1[iil1lI(0x288,'1Pwg')](handleResponse,i11ili,llllI[iil1lI(0x2df,'4Y7M')]),liiIII=![];break;}iil1l1[iil1lI(0x1b3,'8EH2')](IliiiI,lllili)&&(iil1l1[iil1lI(0x185,'^Ucx')]===iil1lI(0x20a,'LN]s')?(console[iil1lI(0x17e,'!KRy')](Ill11),liiIII&&(iil1l1['rntNq'](iil1lI(0x25d,'lRDi'),iil1l1[iil1lI(0x218,'jvby')])?($['outFlag']=!![],$['message']&&$[iil1lI(0x197,'QNZ7')][iil1lI(0x21a,'W*M1')](Ill11)):Iliiil[iil1lI(0x248,'sYAY')](iil1lI(0x272,'qNd]')+(li1Il?.[iil1lI(0x24f,'W*M1')]||'')))):Ii1iIl['log']('完成任务成功'));}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) }
|