mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-14 07:29:18 +08:00
9 lines
45 KiB
JavaScript
9 lines
45 KiB
JavaScript
/**
|
||
特务之明星送好礼
|
||
请自行测水,平常请禁用
|
||
cron 36 8,19 * * * jd_superBrandStar.js
|
||
*/
|
||
const $ = new Env('特务之明星送好礼');
|
||
var iil='jsjiami.com.v7';function Iii11l(){const ili11l=(function(){return[...[iil,'RtWjrAsrjDiybanmirCg.BHcYuSoSmR.dlAvN7tS==','W7FdMJ58WPvVW6LFoa','tCo/dqXx','W6GYhrj2','g0G4W6r0W7HcDmkA','WOfAWP0YaMxcVMpcT8oTCmovgmo1f35aW6u','W6xdQ8oxwCo0ra','5lUP5yUn776N','5B6u5yMx5REl5yMXfq','WO8prgSigmon','44g45O+g56At44cmihRcNMC7qUw0OEwMIoAxUa','WPldK2rIhSkGW6JcVYz3W7BdS8kAktLgy0XFsCojEaxdGCo+j8kAW6feemo/E8oVkJLDW40sjY7dGaBdGa','WOrPttuAWRm','qmk/W6/cQmo3DW','W4ZcQfS','W7zPWPBcU33cQqJdVColiG','fmktc8o/WPq','W6LoWR1QW6r+WQyYW5KsjmoWzZPLxmoYoCo5dSo6rbdcGe7cQ196W7TUAmoQWR4UjM7cHcBcTfq','xSkQW6pcSq','W6tdISofWP1mCmkyCq','WOfPubSsWRur','W6tdKCoXFSoQ','WRBdPfHtWQm','C8ojWRW','xYxcNYX3iCk7AWjRWOtdTG','DmotstS','xqRdI8oBaW','mSkeWRhdJvS','lIaRWR8K','iqnyW7vr','vmoZWOX9W60','5As35yo56lwO5y2h6BI15yYhxCk8Aq','WQddNvXFWQ5FWOKR','WOddUtZdLxFcSvtcIq4','pmopWOldNK4','t8ogeJbk','WOjOqsWkWQynnSkea0BdQ8kJc8o3WOn6rmkc','amk+WRNcLbFcStq','WQq0W4ZdOgZcNW','xmojWPbgW7G','WQXdWRzR','WRuRA1eH','uW/dSmkh','W6W4dgtcGa','WPzaWOmY','WP/dN2q','WQHjWQzQW7W3W6i','ymkDW6lcH8oyhs5DW5W','WQ05W5VdRwa','mCkriCo4WOL5omkWWPK','wmoMhZbDg8opW7fo','pNGOW5xcGa','lJFdUCkDnW','WORdTYtdSuC','WRuUW43dGMVcNc8','k8kXWPW','W5lcKeS','ymkjW7FcNmokicnuW7VcMuhdUqb9W6ZcIW','qSo8gID6','j0a/W4hcOW','CmokWPfXW6u','WPFdHMrXbq','wIVdSSo8fa','W7BdSmk0vCo+','gZ4Mzq','WR9kW5qpuu0aW7dcLXNdNa','bxFdNx4R','oJ7dOCknmmkIzSo5xt9r','cSoIWQBdSvlcTf7dKSoTuG','gCoSWQVdQgC','WQbEWPuoha','qbzTW7TDW5Po','5BEB5A2h5OQA5OM45AEO77Ys','g3ddH2K7','WQWYWPTzcInPcSoet13dMwRdUmkVW7a','BXxdQSkzWQpcOow9U+wNKEoaNos5RUs5VoI1JUwpTa','W68XewFcQ8o9pcG','sCoGhYXMmCodW7PyCmoxfCo7W7/dHG','WOfUWPKhga','WQGVWOTcfd1Wp8oyvgpdHxNdQq','tbDSW4O','WOOZWRnXfG','5PY45OM85yII6iY+5y625yUL5BIV6zcs5l6F5OoN772P6lwL6l6K5OUg6kkymW','WQDyWQz+W655WQWQW7PhF8oSExT6sSk/p8kZuCoNquddHXxcVby9W6PDzSoMWRyUpIVdNJBcPxhdIcq7WO7dJHLaW5VcRGjVBSorW5TiW4ddOSoEWOVcLCoHW5PPtJrOiCkDWRuuW4C/AvFdPbrv','WQCrWRzkaq','5B665AwV5OUF5Awt776a','jfCJW5u','WRDfsge9','brZdOSkvna','WRePcSkcWQuEW70UW61CW7XZWRKcW6i1WRNcK8oOfhRcU0FdP8khl8kFW480oCk+W6TKWQPMxGmQW5ZdH17dLbaxqIOWzCoCiX/dKqFdQrmtW5dcPCkGWPDiW7PgWO9gWQ7dUmoVW4FdISk3FmkWw2xdUwtcSqFcLGiLhbPJWPHgWQqvb18ZW6ZdRCoZaW','W4/cQvKrlSoKnG','pCkTkCkuW7ZcNCk0WOddU8kXW4jNwSoJq14toeBcINhdM3e','WRRdULLrWQq','WR08cSkt','W60zkq','W7JdNSofWOnt','WRn7WOpcSMpcVqma','kSkWWO7dV3XzxW','W7uQmhJcGCo5','W5uBWPnF','W57dL8ofWRTJySkE','xJRdMCoqaq','W5/cNfJcSWddR8o8hComtq','FSorWRPUW7NdTSkIWPL6','zCoifSo9','WOS5A00c','W7xcNSkBq8ok','WR1zWRXhW7mLW6W','FqldMmoDaCkMW5m','W7xdJHDWWQS','W7lcOmkHwSosobhcK8o4lmoxtSowaSksWQ8','WOz1utCuWRGueSkzbgVdQCk+bq','ASoifq','W4NcVHFdPdpcTmoTW4NcJebsvmosjG/dISksW4epzWzMW5nBW5lcG3ZcSWJdVgtdPN8eWQyaDwCWW63cJmoNkCkHedVdUvng','W4KQg2xcQ8o9pcG','WP9aAcOk','5lMB5yQn772N','WQmUWOLOgW','WQ9UWOtcQvZdRL9BWOlcJXNcISkyWPifaCk7W5xcQCoJW7ygW7vPxt/cT3HzlmkLWOxdK8kpW4pcI8oAzCoiWQ7cRsFcUa5wWPKoWRRcRdVdKHRcVmkBlWxcVYddGe/cSgHaWQJdRLhcJSk0vKJdPwPVW7Li','WPrdWOWW','qCk/W77cTConkq7cSwO0WRVdUfdcTSkVW5i6mbBcR1eyW68','kvKHW5VcJCkv','FdrrW75z','WR1jWQzTW7iNW6y','W4dcVqldPItdGmkJWOVcNG','ctpdTCkzlW','WQRdHND4oW','5lQh5lQo5P2Z5yUJ5zMQ6l6O5zM456UT5Pwk5O27','vmoqk8kOW48','WRXeWR15W443W6j3W5XECmk2xtT2qq','CCkFW7dcNq','vWpdLq','lvBcKa','WOtdSgbWWOv8WRej','W44Vhq','WO1EWQ/cNwRcLIuZ','WPPcWR0tnq','rCo9cq','EmodWQ94W7ZdLSk6','WR/dIMPMaa','sXL8W44','bxLKDgPp','WPX7WOFcUf3cScqnWOlcMeS','ewZdKeSS','ac/dPSkak8kLu8o0rducFhRcOqbrW7rtzCkcb09yyvHAW5aKtCocW7vs','bIezWOyi','DSoSp8ksW6ZcGCkZW7/dM8k7W4PNvCoKvva','sNvVDwS','W6ldUCo0uW','W5tcU8kRwmoSmblcKq','cX/dHCkXqG','wmo6etvrcmohW6v9FmodlCoBW6ldLhO','W4hcPeGSoCo+krJcNM8','gmo+WRJdVmkjjbpdMLW8WQFdLMW'],...(function(){return[...['umkXW7pcK8or','WRxdGgbgcW','WPiOW4BdUuVcMY3dLW','omksnmo6WP4xBSoVWP4wfGFdIGD6ucVdMLddLNirE3LjW6tcU8kdWQ8aW4ldMJdcT8oVaCooyxPVk8kVma','zmoce8o2DmkyW7G','z8oqe8oQxSkJW7tdN8oV','W5BcGWldVaK','WPGuxa','iSkjnCoKWOK','W53dLSoh','W69spSoItmk3mSoIjq','duVcTmodW7RcSfq1FmkWdWXMtCkvWPC6WOmFbCoQn8oordlcQYbij8kBW4Wudr52cSouW79cWRxdPZ3cO8oPhSo7W4yhtmkxWQpdTmkrwt/dRSk+gmkraH0rW7xcKfldOaqRm8kzW4/cSXLCW7C','WROSnSkNWP4','CColwG9n','pcdcRSkAza','WQGPB3a5p8oLuCo5WPC','WQhdVcxdVKq','E8ojWRv5','5Bw+5AYu5OQj5OQl5AEg77YG','WRRdM3bwWQO','aJ4Sy1Sr','r8o9gsTS','W5tcL30raa','WRXyWRn8W4iKW6PJW68','WObkWPK0h0pcQq','WPzeW5yarW','ku3cG3FcQcrpWRf0W5DjimoYiSkmw2TAB8kPbSo5hSksASoxFmk9W7DAtmoLW6VdIuWhlCojwGhcV33cNmoXW6RcONLEge/cL8o2WPRdMxTQW5ldMmknfSo9W4RcL8knc8oga8kygmkYW6xcNJxdL0qbpw5+hmkOmmk5WOTSWP9eWO0l','ftuP','W4RdLG1HW69NWPxcIw3cLmkaBq','W4dcVqldPItdMSk7WPBcNG','W6TlpmoIuCktp8ocmIWqW4KyECk0W6S','WOjcW5aeuG','W6tdGZX8WPv/W68','W5lcOK8Wi8oJ','ya3dK8oTd8k4','W5/cJ1ZcTH/dPCoPemoSrSkLuJ9ilJqwyIq3eCkOE8k6CvVdJCkmW5edWPbyeq','kCk7WOxdJgLc','WOi8cCktWQraWOz4W7XjWQG','rxDQDW','sSosWPn4W4W','tr1PW4fYW5Xi','WOddUc3dGLRcLe/cJHqtxCoeWPZdQ03cVSkfW74','sJehWQezcSoMECoJW55qW4RdH2tcMSoEW7JdMSkMW4tcN3bfDahdNe51WPhcVSoZFmkNWPFdU8knW5yxE3yJe3FcUJKSymkyuHK8W7SRW4C8','W6zCW4nfWPRcJmk/ESkEWRq','W5ddMSouWOz0EmkbBrXiWRz6W7S3fWu','omkoW6i8x3FdPuubW79D','WPD2qM4dCSkRzmk2kSoA','WQG1W4BdN2tcIsS','WOP5WQpcNvS','5lIC5yQN77Y4','W6WpoxhcRW','WQOZWPDagJy','W6CTacTB','WOq8W4ZdRKO','W4lcP8kHqColnaZcVSo9','nCkii8o4WPrDnCkqWO4ChqZcHX4DxG','k1u6W5NcKSkzv8k7xSonW73cPW','WR3dGe1DWQ5zWO0Ouq','WQyBxumugSo2BCohWQzR','5l6o5Ogw5yMQ','W77dT8oSwmo0','W4RcSuRcVXi','W4SZndbswq','iSkHaSoSWRu','gSk4WOxcNGlcMIGaWPhdKSkyxG44WPPln1e','oN7dMLqu','l1dcLgZcLx8nW7S','ymkDW6lcH8oybZzaW5W','WPevtq','WQW/p8kuWP8','WPBORQ7PHRpMLQFNMP7LV4NOJ6BLJPTrdgRdKSorWQSscxrKW4qQq8oKAxFdTbK2ngDvoJ3dUtGfcmogr8oah8oFlmo7brFcM8kNzg1FWQGl','WQ09WOXk','k8k/WOBdJG','WP/dOJO','WO51BdexWRm','WQO6W5m','W43ORQZPHA7MLlVNMB7LVQ/OJ7FLJAtdGbZdUCkahCkU','j10wW7pcKq','W7y2f3NcTSo0pJ0waxpdHmoeWQO','bhNdJG','WPldVI7dJK/cUfdcIHqdxCoCWP/dPq','lvBcKg7cTq','mCkjWQH5W7pdHSkvWOzRzCo/WP4','W4eHdJXE','WR8iW7f1WOFcGSkUCW','WRm0W6ZdQw8','WPddOJldJehcSW','W5NcMLJcVHFdSSoP','tMHS','esGSF1alhSoicmoiW6jUnCoy','frBcNmkZ','mK3cHw7cTxKjW7HS','W7iWhxZcQ8o9pcG','BCkfW6tcSmoooW','ymoghSoRxW','beJcOCobW63dNGjQAq','f1RcT8osW7VdRGG','5lIm5lIW6lwB5yY/','W6CYprXD','ofCGW5tcI8kD','hZu6qLywga','CCohWRz5','DWLgW456','FmoDwG','hmodWPZdT1e','W5aHfdTzuq','W6JcVmkRr8oRnq','WRGUdCkBWRfkWR9KW6jyW5S8WRLj','W5ZdMmoq','x8kPW5VcS8og','AmooeCoZDmkmW7JdLW','yCowirDroCo0W4H7uSoGf8og','erxdMCkPkG','44kX5OYA56wz44kf6k635yEg6i215yYW5lMx5lIT6lsh5y6n5lQ4iu7dHSkwW4vfaoEAI+ApRos/HUEuMSoYWOT6WQu5WRlNMO3KUlpKUy3NRiNLI77OJ4pLJ44','W4OSgsPB','W6/dT8o9uW','bhNdJNqT','BEwoGUAkKoIHIW','fmk/WRRdV3S','W5ZdSGD0','WQrDxh09WPLBWR9a','WQHjWQzBW68VW5nKW6LwE8kNydbI','d8oUWRNdTeO','W77dJGnIW5u','W7HRW4Wtr2TuhSo+zKhdHG','WOfBWOWJbvq','WRqUW5pdRNFcUdldK8onf8osWOqGWQRcICo2','WPJdJMPraSo+WQi','WRuYgq','W68Tdh7cI8o7ocSI','WPCEs1iwrColrmoFWQW4vmknvmk3imohW7VdHI0Xg8kmFmkicSkrduaZxrSyWOtdGXldKCoyW79Gt8oGW6FcJmkaa8oqnmk7DdO/W5FcMcS+W440uSoEW5fQsfBcIXlcTHNcTYVcSSozhLVcNsFcPavEWQL3WRpdMCoBFINdOZOInYnIWR1FncHXW73cTCoKiHbKsdiOWQzUWP3dNapcI8oszZm3WQ3cUwddHSo7ySk3kmkFimo1WPBdMSorisJcMGZdOL0gWORdSSo6sqpcPry0WRmrWPS9emkyWPBcSIzhWOhdMuVdLvy','WPzWtMKauCkGBmkyjCoU','W6dcQ8k6q8ouoaVcJCoWkW','WRDFu0y3WQTn','rWX8W59pWPmkpmkxp1pcQ03dN1LAWOVcScpcI0DJWODVWQNcGaVdKafPhSkoW5CpaSkrgeNdQrpcN2aS','sCk7W4lcHSo7','ECkzW77cRmoW','ASochmo/tSkf','W4hcPeGSoCo+krJcNMxdPwu','gJq2EgeahCoja8ooW79Z','WPtdPhPJjG','zCoihCoZu8ki5BwN5AAd5PEcg8o5la','ACojf8omw8kEW74','t35LD2CA','fsmR','WQWvWOfCcG','W6tdKYfaWPDT','dfhcPmowW7e','WRVdO2P9WQi','W4FcOKGHlSoJpa','tmkLW7W','WPZdIc/dKLG','qexdNCoIvcRcVSkiWOLt','W5nyd8kHD8kNWPCtaa','W5tdJZvzWRC'],...(function(){return['W4NcNKxcRG','sSoHdsTLeSolW7juyCoXimoIW6K','mCkjWOlcOHS','rSo1oSkkW4i','W7RcHa9/WOHVWOmPrW','CCoRjSkJW7RcLCkI','W4ldKmo+q8oP','WQPewfS4WR5j','WQHGscFcI8oteX4mbG','WQS5WPLfpszW','trfYW6XtW41a','W7NdNXLKWRi','ztXxW7PVW6X3tmk0hxFcIZC','W6POkmkj','WP3dRdddGG','aXBcHSk2qXq','WQH0WPxcJu7cPXS','nJxcH8kuzW','W69gk8o5xSkkp8oRcs0CW4m','txr8','W5qIirL9','WPDFW5ehtu49W6/cNG','6l+E5P6U5lQj5yI55PYq5A2H5OQf776+5PwQ5RoU5OMP5AwA776t','WQT/WP7cVLVcVa','FmoDwH9mWP4','WRj1rYW9WRCueG','rCoihCoZu8kiW5/dTSk4','WPnwWOOcaW','WRODWOX7gW','dSo5WQy','ySohuXnqWORdRq','ifRcG27cRxCuW6DCW4m','BSo3nJjh','W67dSCoJDCo/rwa','W5FcI0NcTZ/dOG','k3NdHNyQCmk7sa','BSkeW6BcOCoDoJW','mCkvm8oJWOPdlmkLWPihiXdcLa8','W5BcOLiHkSoLfau','W4zammoetq','eL7cQCoh','772N5BwZ5A2E5OQi','yGpdJSo9','yapdImoNba','gSk4WOxcNGlcMIGaWPhdKSkyxG44WPPnmfeyse0','WPvZtbCDWRaw','W4ndeSkJCmkL','exZcVgpcTq','WQaVWRzefZy','WOLVqtu9WRCueG','W53cU3VcUbW','C8klW63cKCotja','mCkfnmoJWPTenCk5WRuDeqy','kCkXWOW','fvxcTCo8W44','WPVdGxjCdG','W6lcNmkkC8or','huqhW7lcOW','thDbFwS','pmkjjW','mKZcH2lcQvWsW797W4n0B8oSz8kQudfnzCk2ua','cmk9WOxcLXNcUZSvWPBdMCkIebCGWRLmAaujx0XpWOFcJSk0zSoJWQqcd1XjW6W','W5xdIGDrW7T3WOO','batcJCkatrFcKCkI','W7ZdQbnwW7W','WQj0WPpcQ1BcPaq1WOhcJH/cICktWOLoaSoHW7BcQq','f8k5W4a0rq','WRtdTxr7WQS','sSoLhZbMkmoFW6DF','W7rlW4vfWOlcGSkIzCkU','Dmo4nCkqWRNdKCkJW4RdJ8k4W4f2u8k8pfyf','j8olxan3WQpdHG','hrJcJW','kZFdNCkokq','W6nplCoksG','CSkEW6lcGCojoG','bdhdTCkEo8k2rSoqxZugnNpcPIzB','WOXdWR1LW7qMW4LbWQK','W6XRrSodW6nQWR9eW5vuW5K','y8ojeCoQq8kDW6hdOSo4vmk+ACoXtmkjW4G','pmk+WPdcIt7cUtCe','WPiEsCo9lCoXW4ChnWtcIrVcRW','WQ48f8kg','Amo9esLRgCovW51+','b8koW6e8','aLRcTmoxW6JdVHO','WQzPWOpcSeJcUH0rWPZcIslcL8knWOe','tCkQW77cPa','WRa6W4RdV0hcJZldK8oxgSo5WOu','WQuZWP9Uase','rSoZdG','W6TqW5a','wNf1pb1V','acJdT8kEjSkiu8oTsa','WPnmWPK+bK7cUhVcKmoT','W7VcLf7cJda','W57dHrzK','FG94WOdcISk/yCkrqmob','dw7dNq','W4XdgSknA8kY','W4LkhHrqe8oewCoaWRqU','tG9PW51yW71Cy8kq','W6VdOSoWrSk8awfNiMhdNmowpSkpW4aVW7y','W7JdNZfEWRv4W61o','ECogwdD3WOG','x8ocjaPr','qYRdTSo8gq','FW7dLCoRfG','CmoZcsnWgmoYW65kCmky','qXDV','FCopWQfFW7ldHSk+','dtaCWQWwxSk3n8oOWPueWPC','xrD9W4fy','W7VdUCoWqG','WPZdIhX+aSoTWPtdUcTI','aSk1WORdSvq','rSkLW6/cKCoFyeO','WOJdGMnNaCoU','W5jne8kSDSkT','i8kol8o6WQnmlmkL','yCoSoCkAW5y','WPRdVHhdIe/cV1m','WQrjswyVWQrwWRzStWHc','ccZdMSkdjCkVxa','W6eVftrFwCkmzq','c8kKWO/cTGpcVW','tHT8W4zkW4brASk7o1/cOa','W4pcOXNdLY/dQSkN','W4PppSo3zW','eSkFj8oMWQe','pIxdUE++KW','WQS0W4q','ubOpx+IVGoAWP+wLGUI2Io+9QUITI+AHTUAFSUE8LoI1KUMeToIVUa','6iY55y+Z5RwK5yI46k+o5OcM5Aw66lA3','aY4VC0uNaComcmoyW6j2nSowWRvcW509W73dHg0','WOPEWPvnW7y','rCkKW60','WOzXqYWxWOiab8ks','W4DNcmkmyW','ybNdK8oadSkZW5C','FSowWRiYW7dcJmkXWO0XB8o2WOO','dJhdS8k4i8k1wq','b8oUWRu','hYCAWQWoumkQkmoy','z8kdW6/cGCozoW','W5pcRXtdTtldQSkX','kHWRWOKt','WRmYW5FdP2a','W7rAW5LiWQlcISk/ASkXWQK','W7FdHsfCWPX3W61om2pdICkaWQJdJa','jSkDW5iErG','44cp5O2256EH44cn6k2Q5yEQ6i2S5yY/5lQZ5lIq6lA/5yYq5lQifxZcKMXiDmko55M25O2W5l2755EqpI8NWPmxxEEBT+s4Hos4GEETR+wlOoImPEwpHa'];}())];}())];}());Iii11l=function(){return ili11l;};return Iii11l();};const lliiIl=iii1II;(function(llIlII,IIlII,lIIiII,i1iIlI,li111,liI1lI,lIIiI1){return llIlII=llIlII>>0x3,liI1lI='hs',lIIiI1='hs',function(ll1I1,Ii1ili,iI1Ii1,Ii1ill,llIlI1){const li11l=iii1II;Ii1ill='tfi',liI1lI=Ii1ill+liI1lI,llIlI1='up',lIIiI1+=llIlI1,liI1lI=iI1Ii1(liI1lI),lIIiI1=iI1Ii1(lIIiI1),iI1Ii1=0x0;const iI1IiI=ll1I1();while(!![]&&--i1iIlI+Ii1ili){try{Ii1ill=-parseInt(li11l(0x1c1,'O9E7'))/0x1+-parseInt(li11l(0x78,'W1gD'))/0x2*(parseInt(li11l(0x199,'C14x'))/0x3)+parseInt(li11l(0x75,'GS]H'))/0x4*(parseInt(li11l(0xba,'SGeh'))/0x5)+parseInt(li11l(0x144,'#rZn'))/0x6+-parseInt(li11l(0x227,'s!X]'))/0x7*(-parseInt(li11l(0xc3,'xWTs'))/0x8)+parseInt(li11l(0x231,'P@I1'))/0x9+-parseInt(li11l(0xaf,'19U5'))/0xa*(-parseInt(li11l(0x173,'pitd'))/0xb);}catch(IIlI1){Ii1ill=iI1Ii1;}finally{llIlI1=iI1IiI[liI1lI]();if(llIlII<=i1iIlI)iI1Ii1?li111?Ii1ill=llIlI1:li111=llIlI1:iI1Ii1=llIlI1;else{if(iI1Ii1==li111['replace'](/[dSulYHBNgCnbyDArWtR=]/g,'')){if(Ii1ill===Ii1ili){iI1IiI['un'+liI1lI](llIlI1);break;}iI1IiI[lIIiI1](llIlI1);}}}}}(lIIiII,IIlII,function(i1iIli,i1iIll,i1lliI,liI1l1,IllIlI,IiillI,ili11I){return i1iIll='\x73\x70\x6c\x69\x74',i1iIli=arguments[0x0],i1iIli=i1iIli[i1iIll](''),i1lliI=`\x72\x65\x76\x65\x72\x73\x65`,i1iIli=i1iIli[i1lliI]('\x76'),liI1l1=`\x6a\x6f\x69\x6e`,(0x16c538,i1iIli[liI1l1](''));});}(0x658,0x55cea,Iii11l,0xcd),Iii11l)&&(iil=Iii11l);const notify=$[lliiIl(0x10d,'glW@')]()?require(lliiIl(0x197,'$7UJ')):'',jdCookieNode=$[lliiIl(0x18f,'1&BJ')]()?require('./jdCookie.js'):'',common=require(lliiIl(0x106,'^zA$'));let cookiesArr=[],UA='';$[lliiIl(0xac,'yDwY')]=[];function iii1II(_0x2a981d,_0x1415c3){const _0x1033ce=Iii11l();return iii1II=function(_0x283123,_0x523d5e){_0x283123=_0x283123-0x73;let _0x3174c0=_0x1033ce[_0x283123];if(iii1II['wTiBAK']===undefined){var _0x2efdf3=function(_0x44be2f){const _0x1370ec='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x565a1d='',_0x373a8b='';for(let _0x4435fd=0x0,_0x4a18a6,_0x29a04d,_0x134ca8=0x0;_0x29a04d=_0x44be2f['charAt'](_0x134ca8++);~_0x29a04d&&(_0x4a18a6=_0x4435fd%0x4?_0x4a18a6*0x40+_0x29a04d:_0x29a04d,_0x4435fd++%0x4)?_0x565a1d+=String['fromCharCode'](0xff&_0x4a18a6>>(-0x2*_0x4435fd&0x6)):0x0){_0x29a04d=_0x1370ec['indexOf'](_0x29a04d);}for(let _0x36d6db=0x0,_0x275865=_0x565a1d['length'];_0x36d6db<_0x275865;_0x36d6db++){_0x373a8b+='%'+('00'+_0x565a1d['charCodeAt'](_0x36d6db)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x373a8b);};const _0x3bc696=function(_0xc0ffb1,_0x4e21b5){let _0x50eeb8=[],_0x52ad4f=0x0,_0x19a6c9,_0x343c57='';_0xc0ffb1=_0x2efdf3(_0xc0ffb1);let _0x47e676;for(_0x47e676=0x0;_0x47e676<0x100;_0x47e676++){_0x50eeb8[_0x47e676]=_0x47e676;}for(_0x47e676=0x0;_0x47e676<0x100;_0x47e676++){_0x52ad4f=(_0x52ad4f+_0x50eeb8[_0x47e676]+_0x4e21b5['charCodeAt'](_0x47e676%_0x4e21b5['length']))%0x100,_0x19a6c9=_0x50eeb8[_0x47e676],_0x50eeb8[_0x47e676]=_0x50eeb8[_0x52ad4f],_0x50eeb8[_0x52ad4f]=_0x19a6c9;}_0x47e676=0x0,_0x52ad4f=0x0;for(let _0x1c0e5a=0x0;_0x1c0e5a<_0xc0ffb1['length'];_0x1c0e5a++){_0x47e676=(_0x47e676+0x1)%0x100,_0x52ad4f=(_0x52ad4f+_0x50eeb8[_0x47e676])%0x100,_0x19a6c9=_0x50eeb8[_0x47e676],_0x50eeb8[_0x47e676]=_0x50eeb8[_0x52ad4f],_0x50eeb8[_0x52ad4f]=_0x19a6c9,_0x343c57+=String['fromCharCode'](_0xc0ffb1['charCodeAt'](_0x1c0e5a)^_0x50eeb8[(_0x50eeb8[_0x47e676]+_0x50eeb8[_0x52ad4f])%0x100]);}return _0x343c57;};iii1II['XpnMye']=_0x3bc696,_0x2a981d=arguments,iii1II['wTiBAK']=!![];}const _0x1264e7=_0x1033ce[0x0],_0x354716=_0x283123+_0x1264e7,_0x37c35a=_0x2a981d[_0x354716];return!_0x37c35a?(iii1II['GmVXpU']===undefined&&(iii1II['GmVXpU']=!![]),_0x3174c0=iii1II['XpnMye'](_0x3174c0,_0x523d5e),_0x2a981d[_0x354716]=_0x3174c0):_0x3174c0=_0x37c35a,_0x3174c0;},iii1II(_0x2a981d,_0x1415c3);}let useInfo={};const awardTypeMap={0x3:'京豆',0x7:lliiIl(0x180,'yDwY')};$[lliiIl(0x122,'eRCb')]=![];if($[lliiIl(0x210,'O9E7')]()){Object[lliiIl(0xeb,'EejT')](jdCookieNode)[lliiIl(0xbf,'1&BJ')](i1l1II=>{const li11i=lliiIl;cookiesArr[li11i(0x12d,'OEjo')](jdCookieNode[i1l1II]);});if(process[lliiIl(0x1db,'#rZn')][lliiIl(0x132,'S&ZM')]&&process[lliiIl(0x14c,'W1gD')][lliiIl(0x130,'#VfH')]===lliiIl(0x1a3,'drxt'))console['log']=()=>{};}else cookiesArr=[$['getdata'](lliiIl(0x203,'xWTs')),$[lliiIl(0x135,'$7UJ')](lliiIl(0x1fa,'drxt')),...$[lliiIl(0x158,'#VfH')]($['getdata'](lliiIl(0x233,'qbE9'))||'[]')[lliiIl(0x1b1,'jO0b')](i1ill=>i1ill['cookie'])]['filter'](I1l11l=>!!I1l11l);!(async()=>{const lliiIi=lliiIl,lilIIi={'SLYQe':function(i1l1Il){return i1l1Il();}};if(!cookiesArr[0x0]){if('Yxasx'!=='lRZez'){$[lliiIi(0x19d,'X2B7')]($[lliiIi(0x1ee,'qLEx')],lliiIi(0x1b6,'JE0V'),lliiIi(0xb6,'R689'),{'open-url':'https://bean.m.jd.com/bean/signIndex.action'});return;}else il1i11[lliiIi(0x239,'O9E7')](IlIll1,IlIII);}for(let i1i11l=0x0;i1i11l<cookiesArr[lliiIi(0x1d4,'X2B7')];i1i11l++){UA='jdapp;iPhone;10.0.8;14.6;'+randomWord(![],0x28,0x28)+';network/wifi;JDEbook/openapp.jdreader;model/iPhone9,2;addressid/2214222493;appBuild/168841;jdSupportDarkMode/0;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_6\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/16E158;supportJDSHWK/1',$['index']=i1i11l+0x1,$[lliiIi(0xb7,'1&BJ')]=cookiesArr[i1i11l],common['setCookie']($[lliiIi(0xd1,'SGeh')]),$[lliiIi(0x8d,'qLEx')]=!![],$[lliiIi(0x1b3,'drxt')]='',$[lliiIi(0x140,'t!(E')]=decodeURIComponent($['cookie'][lliiIi(0xed,'xWTs')](/pt_pin=([^; ]+)(?=;?)/)&&$[lliiIi(0x20e,'P@I1')][lliiIi(0xe8,'R689')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),console[lliiIi(0x11b,'drxt')](lliiIi(0xf6,'XjTu')+$[lliiIi(0x1d8,'XjTu')]+'】'+($[lliiIi(0x1a1,'glW@')]||$['UserName'])+lliiIi(0x23c,'EejT'));if(!$[lliiIi(0xd0,'X@A1')]){$['msg']($['name'],lliiIi(0xb5,'xWTs'),'京东账号'+$[lliiIi(0x13e,'X2B7')]+'\x20'+($['nickName']||$['UserName'])+lliiIi(0x18b,'glW@'),{'open-url':lliiIi(0x148,'e63l')});$[lliiIi(0x183,'pitd')]()&&await notify[lliiIi(0xa8,'C14x')]($[lliiIi(0x13f,'FwBz')]+lliiIi(0x1d2,'drxt')+$[lliiIi(0xbe,'jO0b')],lliiIi(0x1a6,'P@I1')+$[lliiIi(0xe5,'qbE9')]+'\x20'+$['UserName']+lliiIi(0x191,'SGeh'));continue;}try{await lilIIi[lliiIi(0x125,'19U5')](main),common['unsetCookie']();}catch(i1i11i){console[lliiIi(0x1c5,'Je^R')]('好像账号黑号~~~');}if($[lliiIi(0x16b,'X2B7')])return;}})()[lliiIl(0x198,'pitd')](II11l1=>{const iiIi1I=lliiIl;$[iiIi1I(0xc2,'$7UJ')]('','❌\x20'+$[iiIi1I(0x18d,'VCJp')]+',\x20失败!\x20原因:\x20'+II11l1+'!','');})['finally'](()=>{const IllIl1=lliiIl;$[IllIl1(0x156,'$7UJ')]();});async function main(){const ll1Ii=lliiIl,Iil1lI={'rmypC':function(IiiliI,iii1iI){return IiiliI(iii1iI);},'fisjq':ll1Ii(0xc8,'b)DW'),'GRwHZ':function(llIll,il1iII){return llIll===il1iII;},'tPZHS':ll1Ii(0x73,'(wmV'),'cDWbj':function(iilli,IlllIl,II11lI){return iilli(IlllIl,II11lI);},'cTDYs':ll1Ii(0x16e,'qLEx'),'vCAod':function(lI1IIi,I1l11I){return lI1IIi!==I1l11I;},'tPATO':'LVdYa','wwvSd':ll1Ii(0x100,'HyRj'),'Ohoqu':ll1Ii(0x20c,'X@A1')};$['runFlag']=![],$[ll1Ii(0x196,'9fp]')]=!![],$[ll1Ii(0x1cf,'sK44')]={},await Iil1lI[ll1Ii(0xf0,'OFIo')](takeRequest,'showStarGiftInfo');if($[ll1Ii(0x82,'$7UJ')]==Iil1lI[ll1Ii(0x164,'7L%B')]){console[ll1Ii(0x9c,'#rZn')]('本期活动结束,等待下期。。。'),$[ll1Ii(0x16b,'X2B7')]=!![];return;}if(Iil1lI[ll1Ii(0x12b,'^zA$')](JSON[ll1Ii(0x1a0,'9fp]')]($[ll1Ii(0x214,'e63l')]),'{}')){if(Iil1lI['tPZHS']!==Iil1lI[ll1Ii(0x7d,'qbE9')])Illl1l[ll1Ii(0x83,'b)DW')]=Illl1i[ll1Ii(0x74,'HyRj')][ll1Ii(0x159,'EejT')];else{console[ll1Ii(0x131,'pitd')](ll1Ii(0x99,'OE&Q'));return;}}console['log']('获取活动详情成功'),$['activityId']=$[ll1Ii(0x1f2,'OE&Q')][ll1Ii(0xe4,'OEjo')][ll1Ii(0x143,'sK44')],$['activityName']=$[ll1Ii(0x17d,'GS]H')][ll1Ii(0x171,'jO0b')][ll1Ii(0x92,'19U5')],console['log'](ll1Ii(0xb3,'S&ZM')+$['activityName']+ll1Ii(0x96,'[gja')+$[ll1Ii(0xef,'OFIo')]),$[ll1Ii(0x22f,'drxt')]=$['activityInfo']['activityBaseInfo']['encryptProjectId'],useInfo[$[ll1Ii(0x230,'X@A1')]]=$[ll1Ii(0x13d,'^zA$')],$['taskList']=[],await Iil1lI[ll1Ii(0x212,'(wmV')](takeRequest,Iil1lI[ll1Ii(0x218,'t!(E')],{'source':ll1Ii(0xdd,'qbE9'),'activityId':$[ll1Ii(0x23e,'eRCb')]});if($[ll1Ii(0x15a,'qbE9')]){if(Iil1lI[ll1Ii(0x114,'W1gD')](ll1Ii(0x110,'[gja'),Iil1lI[ll1Ii(0x15b,'sK44')])){illlII[ll1Ii(0x8f,'fzc5')]=![];return;}else await $[ll1Ii(0x1e0,'(wmV')](0x3e8),await doTask(),await $[ll1Ii(0x208,'XjTu')](0x1f4),console[ll1Ii(0x228,'zuZ^')](Iil1lI['wwvSd']),await await takeRequest(Iil1lI[ll1Ii(0xdf,'fzc5')]);}}async function doTask(){const ll1Il=lliiIl,iilll={'HGOut':ll1Il(0x152,'s!X]'),'vbQvx':function(il1iI1,IlllIi){return il1iI1===IlllIi;},'ErGCk':function(iIIiil,i1l1Ii){return iIIiil===i1l1Ii;},'AZehB':ll1Il(0xc6,'VCJp'),'tFfch':ll1Il(0xe7,'$7UJ'),'RqxYl':function(I1iIIi,I1iIIl){return I1iIIi!==I1iIIl;},'mkXCu':function(lI1IIl,i1ilI){return lI1IIl==i1ilI;},'yzyVo':ll1Il(0xcc,'qLEx'),'mvqqG':ll1Il(0x153,'zuZ^'),'tNfed':'superBrandDoTask','WNPFj':ll1Il(0x1cd,'#rZn'),'jrqCh':function(iii1lI,i1ilI1,Iiilii){return iii1lI(i1ilI1,Iiilii);},'eIywy':function(Iil1li,Iiilil){return Iil1li!==Iiilil;},'wdXKA':'xnqLv','iJUrG':'CXFZU','ICrKl':ll1Il(0xfd,'[gja')};for(let Iil1ll=0x0;Iil1ll<$['taskList'][ll1Il(0x1f7,'S&ZM')];Iil1ll++){$['oneTask']=$[ll1Il(0x10b,'S&ZM')][Iil1ll];if($[ll1Il(0xf2,'19U5')]['completionFlag']){if(ll1Il(0x1fb,'eRCb')===iilll[ll1Il(0xe9,'[gja')]){console['log'](ll1Il(0xb2,'[gja')+$[ll1Il(0x204,'OEjo')][ll1Il(0x1b0,'Je^R')]+ll1Il(0x209,'OFIo'));continue;}else lilIil[ll1Il(0xd7,'eRCb')]();}if(iilll[ll1Il(0x1b2,'#rZn')]($[ll1Il(0x88,'#rZn')]['assignmentType'],0x1)){if(iilll[ll1Il(0xaa,'BQ96')](ll1Il(0x1c0,'HyRj'),ll1Il(0x94,'OE&Q'))){let lI1III=$[ll1Il(0x1f0,'S&ZM')]['ext'][ll1Il(0x161,'HyRj')]||$[ll1Il(0x1e7,'xR*&')][ll1Il(0xd8,'R689')][ll1Il(0x119,'t!(E')]||'';if(lI1III&&lI1III[0x0]){if(iilll[ll1Il(0x1a7,'pitd')](iilll['AZehB'],'iiWVj')){const IllIiI={'Origin':ll1Il(0x123,'#rZn'),'Cookie':l1iIIi['cookie'],'Connection':'keep-alive','Accept':'application/json,\x20text/plain,\x20*/*','Referer':ll1Il(0x121,'S&ZM'),'Host':ll1Il(0xa0,'$7UJ'),'User-Agent':lilIi,'Accept-Language':ll1Il(0x141,'zuZ^'),'Accept-Encoding':ll1Il(0x226,'^zA$')};return{'url':l1l11I,'headers':IllIiI,'body':''};}else for(let i1il1=0x0;i1il1<lI1III[ll1Il(0x1ce,'drxt')];i1il1++){if(iilll['tFfch']!==ll1Il(0x21a,'X2B7'))I1l1II['log'](ll1Il(0x157,'FwBz'));else{$[ll1Il(0x116,'gZ2(')]=lI1III[i1il1];if(iilll['RqxYl']($[ll1Il(0x20d,'1&BJ')][ll1Il(0x1c2,'eRCb')],0x1))continue;console['log'](ll1Il(0x176,'1&BJ')+($[ll1Il(0x1fe,'s!X]')][ll1Il(0xa7,'SGeh')]||$[ll1Il(0x9f,'[gja')][ll1Il(0xf7,'glW@')]||$[ll1Il(0x1ca,'xR*&')][ll1Il(0xb8,'#rZn')])+',去执行'),iilll[ll1Il(0x192,'GS]H')]($[ll1Il(0x117,'[gja')]['assignmentName'],'浏览会场')?(await takeRequest('superBrandDoTask',{'source':iilll[ll1Il(0x145,'#rZn')],'activityId':$[ll1Il(0x1c9,'t!(E')],'encryptProjectId':$['encryptProjectId'],'encryptAssignmentId':$[ll1Il(0x1a9,'EejT')]['encryptAssignmentId'],'assignmentType':$[ll1Il(0x10f,'jO0b')][ll1Il(0xfa,'O9E7')],'itemId':$['runInfo'][ll1Il(0x202,'(wmV')],'actionType':0x1}),await $[ll1Il(0x85,'FwBz')]($['oneTask'][ll1Il(0x1fd,'OFIo')][ll1Il(0x238,'SGeh')]*0x3e8),await takeRequest('superBrandDoTask',{'source':iilll[ll1Il(0x13a,'xWTs')],'activityId':$[ll1Il(0x111,'(wmV')],'encryptProjectId':$[ll1Il(0xf5,'O9E7')],'encryptAssignmentId':$[ll1Il(0x117,'[gja')][ll1Il(0x221,'S&ZM')],'assignmentType':$['oneTask'][ll1Il(0x205,'e63l')],'itemId':$[ll1Il(0xe1,'SGeh')]['itemId'],'actionType':0x0})):iilll[ll1Il(0x9b,'gZ2(')]('BJIiK',iilll[ll1Il(0xe6,'GS]H')])?iiilll[ll1Il(0x189,'W1gD')](lI11Il[ll1Il(0x1de,'P@I1')](lIII1i)):(await takeRequest(iilll[ll1Il(0xde,'GS]H')],{'source':iilll[ll1Il(0xe0,'qLEx')],'activityId':$['activityId'],'encryptProjectId':$['encryptProjectId'],'encryptAssignmentId':$[ll1Il(0x174,'SGeh')][ll1Il(0xcf,'1&BJ')],'assignmentType':$[ll1Il(0xa1,'fzc5')][ll1Il(0x19e,'EejT')],'itemId':$['runInfo']['itemId'],'actionType':0x0}),await $[ll1Il(0xbd,'#rZn')](0xc8));}}}}else iI1lli[ll1Il(0xe3,'(wmV')](ll1iI[ll1Il(0x17e,'#VfH')](iI1lll));}else{if($['oneTask'][ll1Il(0xa9,'yDwY')]===0x3){let liiI11=$[ll1Il(0x21e,'HyRj')][ll1Il(0x1d5,'EejT')][ll1Il(0x86,'R689')]||'';if(liiI11&&liiI11[0x0])for(let ililI1=0x0;ililI1<liiI11['length'];ililI1++){if(iilll[ll1Il(0x155,'qLEx')](iilll[ll1Il(0xcd,'OFIo')],ll1Il(0x223,'#VfH'))){$['runInfo']=liiI11[ililI1];if(iilll[ll1Il(0xf1,'eRCb')]($['runInfo'][ll1Il(0x22b,'OEjo')],0x1))continue;console['log']('任务:'+($[ll1Il(0xb4,'W1gD')]['title']||$['runInfo'][ll1Il(0x8b,'e63l')]||$['runInfo'][ll1Il(0x1af,'t!(E')])+ll1Il(0x1ba,'9fp]')),await iilll['jrqCh'](takeRequest,iilll[ll1Il(0x182,'(wmV')],{'source':ll1Il(0x15c,'gZ2('),'activityId':$[ll1Il(0x1ff,'9fp]')],'encryptProjectId':$[ll1Il(0x163,'OE&Q')],'encryptAssignmentId':$[ll1Il(0x105,'sK44')]['encryptAssignmentId'],'assignmentType':$[ll1Il(0x174,'SGeh')][ll1Il(0x1e1,'qbE9')],'itemId':$[ll1Il(0x165,'yDwY')]['itemId'],'actionType':0x0});}else Iil1II(iIIl1I,I1iIli);}}else{if($[ll1Il(0x117,'[gja')][ll1Il(0x236,'S&ZM')]===0x7){let i1ili=$[ll1Il(0x10c,'VCJp')][ll1Il(0x76,'xWTs')][ll1Il(0xf8,'qbE9')]||'';console['log'](ll1Il(0x11f,'P@I1')+$['oneTask']['assignmentName']+',入会尝试领取');try{if(iilll[ll1Il(0x1d6,'O9E7')](iilll['wdXKA'],iilll['iJUrG'])){$['joinVenderId']=common[ll1Il(0x1be,'gZ2(')]($[ll1Il(0x1d3,'drxt')][ll1Il(0x11a,'1&BJ')],ll1Il(0x206,'sK44'));const Iiill1=await common[ll1Il(0x193,'glW@')]($[ll1Il(0x1d0,'EejT')]);Iiill1&&(console['log']('加入店铺会员成功'),await $[ll1Il(0x232,'Je^R')](iilll[ll1Il(0x120,'O9E7')](parseInt,Math[ll1Il(0x213,'OEjo')]()*0x3e8+0x3e8,0xa))),await $['wait'](iilll[ll1Il(0x13c,'b)DW')](parseInt,Math[ll1Il(0x1ef,'zuZ^')]()*0x3e8+0x3e8,0xa));}else ii1I1l[ll1Il(0x18e,'qLEx')](''+ii1I1i[ll1Il(0x1c6,'glW@')](llI)),llliI['log'](iI1li1['name']+ll1Il(0x98,'EejT'));}catch{console[ll1Il(0x1c5,'Je^R')](iilll['ICrKl']);}await takeRequest(iilll[ll1Il(0x107,'#VfH')],{'source':iilll['yzyVo'],'activityId':$['activityId'],'encryptProjectId':$[ll1Il(0x17c,'e63l')],'encryptAssignmentId':$[ll1Il(0x10c,'VCJp')]['encryptAssignmentId'],'assignmentType':$['oneTask'][ll1Il(0x195,'qLEx')],'itemId':i1ili[0x0][ll1Il(0x7c,'s!X]')],'actionType':0x0});}}}}}async function takeRequest(lilII1,iill1=''){const iiIi11=lliiIl,iii1l1={'IgelQ':function(liiI1I,ililII){return liiI1I-ililII;},'dokln':'uZMGE','XDwYk':function(lI1II1,i1ilII,iIIii1){return lI1II1(i1ilII,iIIii1);},'RbFkj':function(IllIi1,lilIII){return IllIi1===lilIII;},'iFsME':iiIi11(0x133,'eRCb'),'pJOEh':function(Ii1ilI){return Ii1ilI();},'MsAnf':function(II11i1,iliIil){return II11i1(iliIil);},'dTlrH':function(iliIii,lill1i){return iliIii!==lill1i;},'uWUIb':iiIi11(0x1f4,'eq#s'),'UtHdQ':iiIi11(0x142,'qbE9'),'mrzPz':function(il1li,iIIill){return il1li(iIIill);}};let IIliIl='',II11ll='';if(iill1)IIliIl='https://api.m.jd.com/?uuid=&client=wh5&area=&appid=ProductZ4Brand&functionId='+lilII1+iiIi11(0x12e,'zuZ^')+Date[iiIi11(0xe2,'VCJp')]()+iiIi11(0x138,'X2B7')+encodeURIComponent(JSON['stringify'](iill1));else switch(lilII1){case iii1l1[iiIi11(0x16c,'$7UJ')]:IIliIl=iiIi11(0x104,'Je^R')+Date[iiIi11(0x134,'qbE9')]()+iiIi11(0xbc,'gZ2(');break;case iiIi11(0xb0,'eRCb'):IIliIl=iiIi11(0x15f,'9fp]')+Date[iiIi11(0x1f3,'X2B7')]()+'&body=%7B%22source%22:%22star_gift%22,%22activityId%22:'+$['activityId']+',%22assistInfoFlag%22:1%7D';break;case iiIi11(0x21c,'9fp]'):IIliIl='https://api.m.jd.com/?uuid=&client=wh5&area=22_2005_2009_36385&appid=ProductZ4Brand&functionId=superBrandTaskLottery&t='+Date['now']()+iiIi11(0x16f,'b)DW')+$[iiIi11(0x170,'C14x')]+',%22encryptProjectId%22:%22'+$[iiIi11(0x22c,'fzc5')]+'%22%7D';break;default:console[iiIi11(0x81,'19U5')]('错误'+lilII1);}return II11ll=iii1l1['mrzPz'](getRequest,IIliIl),new Promise(async iilii=>{const ill1II=iiIi11,Ill11i={'wBNou':function(iilil,Ill11l){return iii1l1['MsAnf'](iilil,Ill11l);}};iii1l1[ill1II(0xce,'qbE9')](iii1l1['uWUIb'],iii1l1[ill1II(0x1d9,'#VfH')])?i1l1I['log'](ill1II(0xca,'GS]H')):$[ill1II(0x20a,'[gja')](II11ll,(i1ilIi,lill1l,l1l1i1)=>{const i1llii=ill1II,i1iiI={'OgpTf':function(i1ilIl,llI11I){return i1ilIl*llI11I;},'mjrZb':function(Il1i11,iii1li){const i1llil=iii1II;return iii1l1[i1llil(0x10a,'jO0b')](Il1i11,iii1li);}};if(iii1l1[i1llii(0x1bf,'OFIo')]===i1llii(0xc7,'b)DW'))llliil=liIl1[i1llii(0x102,'xR*&')](i1iiI[i1llii(0x146,'R689')](II1lll['random'](),i1iiI[i1llii(0x22a,'OE&Q')](II1lli,ii1I1I)))+IiIl;else try{iii1l1[i1llii(0x1e2,'X@A1')](dealReturn,lilII1,l1l1i1);}catch(IIii11){console[i1llii(0x21b,'e63l')](l1l1i1),$[i1llii(0x1a2,'OEjo')](IIii11,lill1l);}finally{iii1l1['RbFkj'](iii1l1['iFsME'],i1llii(0x18a,'Je^R'))?I1lllI=i1llii(0xfe,'gZ2(')+ill111+'&t='+Iliil1['now']()+'&body='+Ill11i[i1llii(0x1ad,'OFIo')](i1III,Ii1iIi['stringify'](iliIIl)):iii1l1[i1llii(0x1b5,'fzc5')](iilii);}});});}function dealReturn(Ii1il1,iii1ll){const l1i1I1=lliiIl,IIliI1={'nMNar':function(il1lI){return il1lI();},'hlcum':function(IliIIl,I1il1l){return IliIIl-I1il1l;},'OfvRc':function(lI1l1l,IIliII){return lI1l1l*IIliII;},'oErup':l1i1I1(0x17b,'t!(E'),'FLqSf':l1i1I1(0x1cb,'19U5'),'ByglL':function(iiliI,Ill11I){return iiliI!==Ill11I;},'fmsNU':function(I1il1i,IliIIi){return I1il1i===IliIIi;},'UwfjW':function(lI1l1i,i1iil){return lI1l1i===i1iil;},'HQAsG':l1i1I1(0x1d1,'R689'),'XqNaF':function(llI11l,I1llIl){return llI11l-I1llIl;},'McSDt':l1i1I1(0x8c,'^zA$'),'afbNc':l1i1I1(0x12c,'gZ2('),'cqHUH':function(i1iii,I1llIi){return i1iii==I1llIi;},'dCtyv':'iDSrA','RhsIW':'TK103','kTwXh':function(IIii1I,llI11i){return IIii1I!==llI11i;},'JhKbk':l1i1I1(0x118,'yDwY'),'NNgHl':function(i1iIi1,l1l1il){return i1iIi1!==l1l1il;}};try{iii1ll=JSON['parse'](iii1ll);}catch(I11i1I){if(IIliI1[l1i1I1(0x175,'S&ZM')]===l1i1I1(0x1f1,'zuZ^'))IIliI1[l1i1I1(0xff,'O9E7')](illlIi);else{console[l1i1I1(0x228,'zuZ^')]('返回信息异常:'+iii1ll+'\x0a');return;}}switch(Ii1il1){case IIliI1[l1i1I1(0x217,'R689')]:$['bizCode']=iii1ll['data']['bizCode'];iii1ll[l1i1I1(0x113,'drxt')]==='0'&&iii1ll[l1i1I1(0x74,'HyRj')]&&iii1ll[l1i1I1(0x108,'Je^R')][l1i1I1(0x166,'sK44')]&&($[l1i1I1(0x8e,'xR*&')]=iii1ll[l1i1I1(0x234,'BQ96')][l1i1I1(0x89,'R689')]);break;case l1i1I1(0x185,'X@A1'):if(IIliI1['fmsNU'](iii1ll[l1i1I1(0x1b8,'FwBz')],'0')&&iii1ll[l1i1I1(0x18c,'O9E7')][l1i1I1(0x1ea,'19U5')]=='0')$['taskList']=iii1ll[l1i1I1(0x19f,'zuZ^')]['result']['taskList'];else IIliI1['UwfjW'](iii1ll[l1i1I1(0xd3,'gZ2(')],'0')&&IIliI1['cqHUH'](iii1ll[l1i1I1(0x137,'19U5')][l1i1I1(0x93,'JE0V')],l1i1I1(0x10e,'7L%B'))&&($[l1i1I1(0x1b9,'xWTs')]=![],console['log'](iii1ll[l1i1I1(0x237,'#rZn')][l1i1I1(0x91,'X@A1')]+'\x0a'));break;case l1i1I1(0x1c3,'SGeh'):if(iii1ll[l1i1I1(0xfb,'19U5')]==='0')console[l1i1I1(0xb9,'sK44')](JSON['stringify'](iii1ll['data']['bizMsg']));else{if(IIliI1['ByglL'](IIliI1[l1i1I1(0x103,'fzc5')],l1i1I1(0xae,'eq#s'))){var Il1i1I='',Ii1iii=Iiili,iIIilI=['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];IilIli&&(Ii1iii=IiI1[l1i1I1(0x20b,'[gja')](liI[l1i1I1(0x1a8,'GS]H')]()*IIliI1[l1i1I1(0x1b7,'pitd')](illIli,l11i1l))+lIII11);for(var il1l1=0x0;il1l1<Ii1iii;il1l1++){IiilI=ii1I11[l1i1I1(0x15e,'7L%B')](IIliI1[l1i1I1(0xc5,'[gja')](liIi1[l1i1I1(0x1ae,'pitd')](),IIliI1[l1i1I1(0x128,'fzc5')](iIIilI['length'],0x1))),Il1i1I+=iIIilI[lI11II];}return Il1i1I;}else console[l1i1I1(0x12f,'9fp]')](JSON[l1i1I1(0x1a0,'9fp]')](iii1ll));}break;case l1i1I1(0x9a,'EejT'):if(iii1ll['code']==0x0){if(iii1ll[l1i1I1(0xc4,'s!X]')][l1i1I1(0x1c4,'R689')]==IIliI1[l1i1I1(0x186,'xWTs')])IIliI1[l1i1I1(0x95,'e63l')](l1i1I1(0x9e,'P@I1'),'hAllV')?console[l1i1I1(0x14e,'jO0b')](l1i1I1(0xf3,'#rZn')):lI1Iii=[i1li[l1i1I1(0x235,'XjTu')](l1i1I1(0x90,'pitd')),li1II[l1i1I1(0x1da,'sK44')](l1i1I1(0x22d,'gZ2(')),...IliI11[l1i1I1(0x19a,'SGeh')](i1ll[l1i1I1(0xd9,'gZ2(')](IIliI1[l1i1I1(0x1dc,'qLEx')])||'[]')[l1i1I1(0x23a,'qbE9')](Ilil1i=>Ilil1i[l1i1I1(0x124,'GS]H')])][l1i1I1(0xa4,'OEjo')](iili1=>!!iili1);else{if(IIliI1['cqHUH'](iii1ll['data'][l1i1I1(0x1e5,'^zA$')],'TK000')){if(IIliI1['kTwXh'](IIliI1[l1i1I1(0x229,'fzc5')],l1i1I1(0x17a,'SGeh'))){const II11ii=iii1ll?.['data']?.[l1i1I1(0x1d7,'yDwY')]?.[l1i1I1(0x1a5,'XjTu')]?iii1ll[l1i1I1(0xc4,'s!X]')][l1i1I1(0x166,'sK44')][l1i1I1(0xa5,'JE0V')][l1i1I1(0x190,'SGeh')](Iil1iI=>{const llIIil=l1i1I1;if(IIliI1[llIIil(0x1df,'yDwY')](llIIil(0xa6,'b)DW'),'IpDnU')){if(Iil1iI){if(IIliI1['fmsNU'](Iil1iI[llIIil(0x14f,'OE&Q')],0x3))return(Iil1iI[llIIil(0x149,'drxt')]||'')+'\x20'+(awardTypeMap[Iil1iI['awardType']]||llIIil(0x80,'qbE9')+Iil1iI['awardType']+']');else{if(IIliI1[llIIil(0x1e3,'^zA$')](Iil1iI[llIIil(0xdc,'e63l')],0x7)){if(IIliI1[llIIil(0xad,'qbE9')](llIIil(0xf9,'eRCb'),llIIil(0x1fc,'O9E7')))return(Iil1iI[llIIil(0x14a,'drxt')]||'')+'\x20'+(Iil1iI['useRange']||'')+'\x20'+(awardTypeMap[Iil1iI['awardType']]||llIIil(0xec,'7L%B')+Iil1iI['awardType']+']');else lIIil1=IIli1[llIIil(0xd6,'glW@')](II1liI);}else{if(IIliI1[llIIil(0x1cc,'OEjo')]===IIliI1[llIIil(0xd4,'W1gD')])return(Iil1iI[llIIil(0x23d,'fzc5')]||'')+'\x20'+(awardTypeMap[Iil1iI[llIIil(0x1bd,'xR*&')]]||llIIil(0x16a,'Je^R')+Iil1iI[llIIil(0x79,'19U5')]+']');else{I1iIil['msg'](lI1Iil[llIIil(0x101,'GS]H')],llIIil(0xab,'$7UJ'),'https://bean.m.jd.com/bean/signIndex.action',{'open-url':IIliI1[llIIil(0x220,'HyRj')]});return;}}}}return'';}else return(IIlli[llIIil(0x127,'JE0V')]||'')+'\x20'+(l1iil[ii1l1['awardType']]||llIIil(0x139,'S&ZM')+lIIill['awardType']+']');})['join']('\x0a'):'空气';console[l1i1I1(0x14e,'jO0b')]('抽奖获得:\x0a'+II11ii);}else II1ll1=IlI1Ii[l1i1I1(0x84,'19U5')](i11I1I[l1i1I1(0x213,'OEjo')]()*IIliI1[l1i1I1(0x1ab,'19U5')](l1il1i[l1i1I1(0x169,'VCJp')],0x1)),ll1+=iI1llI[llliii];}else{if(IIliI1[l1i1I1(0x151,'Je^R')](iii1ll['data'][l1i1I1(0x201,'FwBz')],l1i1I1(0xd5,'XjTu')))console[l1i1I1(0x109,'eq#s')](l1i1I1(0x1f6,'drxt'));else{if(IIliI1['NNgHl'](l1i1I1(0xfc,'O9E7'),l1i1I1(0xd2,'$7UJ'))){if(II1lii[l1i1I1(0x224,'qbE9')]===0x3)return(IliI1l[l1i1I1(0x1e9,'O9E7')]||'')+'\x20'+(lliiil[lliiii[l1i1I1(0x112,'$7UJ')]]||'[awardType='+IliI1i[l1i1I1(0x224,'qbE9')]+']');else return lliil1['awardType']===0x7?(ll1ii[l1i1I1(0x188,'OEjo')]||'')+'\x20'+(IIli11[l1i1I1(0x21f,'zuZ^')]||'')+'\x20'+(IllIII[ii1li[l1i1I1(0x1a4,'XjTu')]]||l1i1I1(0x172,'BQ96')+IIll1['awardType']+']'):(ll1il[l1i1I1(0x14a,'drxt')]||'')+'\x20'+(IiiIiI[lilii[l1i1I1(0x9d,'1&BJ')]]||l1i1I1(0x17f,'W1gD')+l1iiI[l1i1I1(0xda,'OEjo')]+']');}else console[l1i1I1(0x12f,'9fp]')]('抽奖失败'),console['log'](JSON[l1i1I1(0x225,'C14x')](iii1ll));}}}}else console[l1i1I1(0x215,'VCJp')](JSON[l1i1I1(0xa3,'b)DW')](iii1ll));break;default:console[l1i1I1(0x194,'xWTs')](JSON[l1i1I1(0x17e,'#VfH')](iii1ll));}}function getRequest(lI1l1I){const llIIii=lliiIl,lill11={'Origin':'https://prodev.m.jd.com','Cookie':$[llIIii(0x19b,'qLEx')],'Connection':'keep-alive','Accept':llIIii(0x21d,'X@A1'),'Referer':llIIii(0x150,'XjTu'),'Host':'api.m.jd.com','User-Agent':UA,'Accept-Language':'zh-cn','Accept-Encoding':'gzip,\x20deflate,\x20br'};return{'url':lI1l1I,'headers':lill11,'body':''};}function randomWord(liI1i1,I11i11,I1llII){const Ii1I1i=lliiIl,Iil1il={'mbhbv':function(il1il,Il1i1i){return il1il===Il1i1i;},'kwfpE':Ii1I1i(0xc9,'$7UJ'),'NHguy':function(iIIili,Ii1iiI){return iIIili+Ii1iiI;},'oiKQI':function(Ilil1I,iliIiI){return Ilil1I-iliIiI;},'xPggc':'sfntx','rGBfX':function(II11iI,Il1i1l){return II11iI*Il1i1l;}};var I11i1i='',l1l1iI=I11i11,I1llI1=['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];liI1i1&&(Iil1il[Ii1I1i(0x7f,'[gja')]('VKjMA',Iil1il['kwfpE'])?lllii[Ii1I1i(0x187,'9fp]')]=iI11Ii[Ii1I1i(0x11d,'glW@')]:l1l1iI=Iil1il[Ii1I1i(0x1e6,'FwBz')](Math[Ii1I1i(0x14d,'e63l')](Math[Ii1I1i(0x8a,'P@I1')]()*Iil1il[Ii1I1i(0x1eb,'yDwY')](I1llII,I11i11)),I11i11));for(var I11i1l=0x0;I11i1l<l1l1iI;I11i1l++){Iil1il[Ii1I1i(0xc1,'#VfH')]!==Ii1I1i(0xf4,'xWTs')?lIIilI():(pos=Math[Ii1I1i(0x181,'FwBz')](Iil1il[Ii1I1i(0x184,'e63l')](Math[Ii1I1i(0x167,'[gja')](),I1llI1['length']-0x1)),I11i1i+=I1llI1[pos]);}return I11i1i;}function TotalBean(){const llIIlI=lliiIl,Ii1ii1={'GkaZI':llIIlI(0x11e,'1&BJ'),'QaQTf':'ZutiP','zWyzB':llIIlI(0x219,'GS]H'),'tVUih':'base','pNenx':llIIlI(0x177,'glW@'),'JspPn':function(Ilil11,i1ii1){return Ilil11!==i1ii1;},'DuKuy':llIIlI(0x136,'R689'),'EeHpE':llIIlI(0x7a,'FwBz'),'pjuOG':llIIlI(0xea,'FwBz'),'HeoTe':llIIlI(0x11c,'JE0V'),'PagjV':function(il1ii,llI111){return il1ii(llI111);},'QFKuy':'./USER_AGENTS','AACxP':llIIlI(0x1bc,'yDwY')};return new Promise(async i1iIiI=>{const Ii1I1l=llIIlI,IlllI1={'hIhHz':Ii1ii1[Ii1I1l(0x222,'BQ96')]};if('qMFwp'!==Ii1I1l(0xdb,'SGeh')){const I1il11={'url':'https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2','headers':{'Accept':Ii1I1l(0x13b,'fzc5'),'Content-Type':Ii1I1l(0x168,'(wmV'),'Accept-Encoding':Ii1ii1[Ii1I1l(0x200,'qbE9')],'Accept-Language':Ii1ii1[Ii1I1l(0x216,'XjTu')],'Connection':'keep-alive','Cookie':$[Ii1I1l(0x178,'O9E7')],'Referer':Ii1ii1[Ii1I1l(0x207,'OE&Q')],'User-Agent':$[Ii1I1l(0xb1,'FwBz')]()?process['env'][Ii1I1l(0x1b4,'qbE9')]?process[Ii1I1l(0x160,'EejT')][Ii1I1l(0x1ec,'19U5')]:Ii1ii1[Ii1I1l(0x129,'R689')](require,Ii1ii1[Ii1I1l(0x7e,'[gja')])[Ii1I1l(0x154,'W1gD')]:$['getdata'](Ii1I1l(0x1ed,'P@I1'))?$[Ii1I1l(0x19c,'(wmV')](Ii1ii1['AACxP']):Ii1I1l(0x1c7,'W1gD')}};$['post'](I1il11,(lI1l11,II11l,II11i)=>{const IIlIl=Ii1I1l;try{if(lI1l11)console[IIlIl(0x1ac,'s!X]')](''+JSON[IIlIl(0x1f5,'7L%B')](lI1l11)),console['log']($['name']+IIlIl(0x98,'EejT'));else{if(II11i){II11i=JSON['parse'](II11i);if(II11i[IIlIl(0x126,'gZ2(')]===0xd){if(Ii1ii1[IIlIl(0x87,'VCJp')]!==IIlIl(0x20f,'9fp]')){$['isLogin']=![];return;}else I1ilII[IIlIl(0xa2,'OFIo')]('还有任务未完成,无法抽奖!');}II11i[IIlIl(0x15d,'eRCb')]===0x0?Ii1ii1[IIlIl(0x1bb,'VCJp')]===Ii1ii1['zWyzB']?(l1l1I1[IIlIl(0x97,'SGeh')](I1iIll),I1lliI[IIlIl(0x77,'P@I1')](llIllI,I1ilI1)):$['nickName']=II11i[Ii1ii1[IIlIl(0x115,'t!(E')]]&&II11i[Ii1ii1['tVUih']]['nickname']||$[IIlIl(0x1f9,'1&BJ')]:IIlIl(0x14b,'JE0V')!==Ii1ii1['pNenx']?$[IIlIl(0x211,'1&BJ')]=$[IIlIl(0x147,'SGeh')]:iii1Il[IIlIl(0x21b,'e63l')]('','❌\x20'+lI1IiI[IIlIl(0x1aa,'$7UJ')]+',\x20失败!\x20原因:\x20'+i1lI+'!','');}else Ii1ii1['JspPn'](IIlIl(0x179,'pitd'),Ii1ii1[IIlIl(0xbb,'e63l')])?i1i1Il[IIlIl(0x7b,'yDwY')]=I1lIl1[IlllI1[IIlIl(0xc0,'FwBz')]]&&lil11i['base'][IIlIl(0xcb,'#VfH')]||IlIIl[IIlIl(0x230,'X@A1')]:console[IIlIl(0x23b,'C14x')](IIlIl(0x12a,'qbE9'));}}catch(il1iI){$[IIlIl(0x1f8,'s!X]')](il1iI,II11l);}finally{i1iIiI();}});}else return(ll1ll[Ii1I1l(0x16d,'19U5')]||'')+'\x20'+(Illl11[ii1lI[Ii1I1l(0x162,'JE0V')]]||Ii1I1l(0xee,'fzc5')+I1ilIl['awardType']+']');});}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) } |