mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-10 09:39:18 +08:00
17 lines
39 KiB
JavaScript
17 lines
39 KiB
JavaScript
/*
|
||
活动名称:特价-签到提现
|
||
环境变量:jd_tj_qdtx_threads // 控制并发线程数(正整数),默认1,最大3
|
||
jd_tj_qdtx_interval // 自定义运行间隔时长(整数,单位毫秒),默认1000
|
||
jd_tj_qdtx_notify // 是否推送通知(true/false),默认不推送
|
||
jd_tj_qdtx_pinFilter // 账号pin过滤,多个用@进行分割
|
||
jd_tj_qdtx_exchange_mode // 兑换模式,0 红包 1 现金 默认兑换现金
|
||
|
||
cron:1 1,17 * * *
|
||
|
||
*/
|
||
|
||
const $ = new Env('特价-签到提现')
|
||
const _0x1ac648=_0x6383;(function(_0x554902,_0x497109){const _0xbe3c07=_0x6383,_0x48c465=_0x554902();while(!![]){try{const _0x5b5111=-parseInt(_0xbe3c07(0x19a,'geQZ'))/0x1+-parseInt(_0xbe3c07(0x190,')K%Z'))/0x2+-parseInt(_0xbe3c07(0x210,'EH47'))/0x3+parseInt(_0xbe3c07(0x184,'DSX3'))/0x4*(-parseInt(_0xbe3c07(0x166,'DSX3'))/0x5)+parseInt(_0xbe3c07(0x229,'aA@4'))/0x6+parseInt(_0xbe3c07(0xf1,'mcbG'))/0x7+-parseInt(_0xbe3c07(0x1e8,'ZuRW'))/0x8*(-parseInt(_0xbe3c07(0x1a8,'tpPA'))/0x9);if(_0x5b5111===_0x497109)break;else _0x48c465['push'](_0x48c465['shift']());}catch(_0x1f61dd){_0x48c465['push'](_0x48c465['shift']());}}}(_0x3cfc,0x5f3c6));const jdCookie=require(_0x1ac648(0x20b,'rX7u')),notify=require(_0x1ac648(0x18e,'u1^B')),common=require(_0x1ac648(0xf8,'(9uq')),{H5st}=require(_0x1ac648(0x114,'CRxx'));let linkId=_0x1ac648(0x13a,'#GcJ'),taskThreads=process['env'][_0x1ac648(0x1f6,'ru^8')]||'1';function _0x3cfc(){const _0x5667c2=['W70WWQ1LACoItSo5DaK','WRaleW','W6KWWQTL','aLLElSohW6DQWQVdGfldQSoqdSkJWRC','W7CTu1e','nwRdOLjdjmopi08rw8o/W6NcJ8kVevhcOfu','wYmAySkoWPZdLr/dOmkAvW','W6qjE8oK','FSo+umkvW7/dK8kCWO3cRCoM','WRPstM/dH8oc','ixi2','dNjAgCkkWONdGG','W5FdKSk0','mmkOW4pdGCo6vetdJ8ogW6JdGW','iH1B','W59cWOFdVraNAt/cPKWOWPnSFwq','d35cjCoAWOG','aaOKvW','fmkBWQPNnCoKWO5xWOHiCIC','W5hcGM3cVNf3wCoCW7/dImkoeSk/W79ug8oVmmk1s8ofjvFcHa','Dd3cGW/cSmoeFa','562C5yU36ysL','WR0ffmoZ','5y+w6ywq5BYI5zoB54IK5OkHW6xdKCoKWRPzyCkGDXLb','W6CYrmkbWOz/W7XX','ELWl','562s5yId6ysr5lQ96lA45lMb5yEo5O+r772n5ysC6lE55lI35yQ65zkPFW','W6ZdGwTB','WPVcQ8koW5a','W6S4WRfTD8o5B8o8','W6RdKCoAW4q','eGu7','vatcTW','6zwW6k+477YI5P275y6g6yA35yQg5A6I5BI55QUW5BYbWQa','s1BcTmo4pSoxW6S','W6BdSae','emkBWQTTeCoJWQ9BWRba','bCkiWQTJdG','W60jDSoV','WR4bfmoFxuHFW7P1iG','562u5yUN5Awg6lE+772T','5Bws6k2n57+76lsZ6l2M6l2/6kgN5B+F5yUP6lwB5y+l','A8oNqCkCW7pdJSk/WONcJCo+fdK','W6m0WRPGvSo0z8o3DG3dI8kIcCkTkSkwW4TlcImQ','W6VdRZjcafCqmtaKW5xdJW','tICdWQG','B8kEWQ8SWOBcK8onWP94CaydW6aYWRxdVIGbWOPsWP46WOm','oCkOW5ldOmoAq0BdKSo9W77dP8k6jmo1WRtcQmknus5xqG','h8oBW5qoiaG','WPiMWOSXdrhdRt5fzq','FmkAWQGlWRtcImoDWP5VwtOfW6K','W7FdJ2u','44cY6lEH5yYd','fKSgWQhcR8okh8kmW7js','fmkBWQPNmmo5WOztWRb1Ad7cN1C','fSoWW4u7hI3cH8oiW4pdLrNcKtu','WO5RW67dKa','WPpcR8kuW5BcL8km','pSk5W5ldQCobqG','W5pcKKBcUMGsb8kxW6RdGmk4wCkQWRjwhSkVnmk/ECkhk0pcIa','WPtcHmogvYZdOSkgu8oBW70','beX5eSktW6zQ','dKus','W4G6WRFcLa','amooWQFcRmoPWRZdU8kvubGSemkPCYeuFuGtbmoH','566N5yMu6i+x5BYf','W4VdPmon','oSouW7ZdKSogW59jWOzxW6ZcI218lCo4Aa','WQ0fe8o5BejCW74','uXVdK8khkLhdQCorWOdcH8ootCokD8ke','WPRcLdddNSovWQldPJ8PWOhdR8ouW6RdGdpcJ2xcSmo1WQf+WORcIa','qmkuWP1PrLldM8oaW6VdSGJcNrNcPHO','WOFcOCklsmkXbSkYW5RdVW','Ae7cKmoEW4VdUNhdM1ip','fWvZruhdKuXXoX7dJCkpy8ksWQpcVfhdGCoIW6lcNh4Y','vsKn','W5DWW4bQC03cQZztC8k0FHG','W5e6WRpcHq','5yEV5O2q5OUd5yIdt+MgNEMIShFdPW','mmkOW4pdICoTvvJdNmoSW74','WQ17WQC','56Yo5yMq6yEw5lIe6lAt5lMa5yw45O2G772d5ysA6lw15lIa5yQN5zo0WQ0','gSozWRFcRq','cmocWQZcOCoiWRhdS8kE','W5pdKbtdU8oVaMXSheOYq8o4','WQ3cKwCDWR8','WRqxbW','WR5hsg4','n8ogW7pdH8owW7a','WR8ndSo7s1njW78','mgJdOLO','WRaqbCo/Cv8','jHpcLsG','W7uQv0ddGW','kCk+W58q','5P6I6k+55lQ15yQt5AEB6lwc77+I','gmooW4yraqj2ja','8lUBOXi','W7OSBvFdIIZdN1ZdTG4IWR1TiSoCW73cRfW','W4ZcH1VcVG','WPhcNIm','gbrZEvpcNWyTlIldJCovA8o9WRNcQcNdH8o/W7ZdMNaSBa','W7W8sG','omomW7NdHq','W4ZcH1VcVK9brCoD','jXlcSY/cJCodsSklW77dLXVcNwyPkmkLkq','B8kEWQ8LWPxcLCohWP5btWG','b8kFWQ1feSo8WOjuWQfIBJ3cJKhdTmoq','WOhcR8oQschdG8kjECot','lmocW7tdLa','napdUCkcWOxcRaJcGXTtWQpdGa','uXVdK8khkLhdOCokWPlcHa','WOZdHmoL','BCksiW','W4pcNmoXWQu','vLDr','s1BcRSoLsG','W6e+WRG','8kYlNCom','WR58r8krWPf5W75/D20','5AAQ6lAf77Yy','kSk6W585W5TsqW','tvdcTmozFConW6VdMIqND8k8D8oVDvVcRCogW7y','WObkcCo7','rLX1eXysfmoXp8ojkSkKiG','dmkvWR4','wq7cTWe','WRevWRNcIa','W5BdU8oNW7CsW4m','zSo/WOdcTmk+e0ddQCoKW5JdLCkb','W4lcOmo8WQFdJ8oMrCoeW4Sqwq','W7W7W6y','jmk4W5tdP8oTvvG','orZdIG','WPZcPCkuW5lcT8kfh2m','W74Tv0FdSHBdG1FdTbm+WQzQo8oqW7NcGuehhCkY','rfHoWRxdOKq+da','p8ocW6NdGq','uCk3WPHNxa','W7utCCoesCoZ','pSkRW4OfWPTs','WQzIsmohWRa','WR3cMmk1W6BcSmkHmW','W5BdSCoU','aLLjnCoQW7XZWPBdLxxdQmoPaSkAWRpdL18','cCooWRBcMmojWRBdRSkdDqKoc8kZAW','WPZcGrddS8ohWR3dHZ48WRRdH8oxW67dSYC','WPuZWOOZkHJdTZ1o','5lU55PEC5BEv5yAq5O+u6l+Q772F6k6E5PI95As85yAx5PYLka','vHHgW7RdKSkwxmkyW6TZgYxcHW','W7W2q8ksWQz+','W53ORiBMSiBLPQpOTPhdTUkCN2W','fuSCWR7cSSonaCkm','WQ0fe8o5FLjcW7jHlZmJ','ogBdSq','E8kpWROuWPlcLa','6l6w5yst6Aw66AcU5AEw6lA577YH','W7qtFmoIqSoKW5C','5yAz5O235OUb5yQ7WQhPHPNPOQpcR8kO','WO/cK8oK','wflcS8oBt8olW4VdMIWXwW','WRSld8o+xvPc','d0XJpCosW70','W61tuCkNdG0EW5zcaY8Qsa','WPnkfmoU','yCkvWRGmWPlcG8onWP8','jCkRW58bWP0BgexdNKddUbVdLmoZW4quW7ajWQfkqqldPLarFG','W6OGW7e','W5WPWRVcGsRcLW','W6q+WQW','jSouWQ4uWO7cI8oBW4nEwq0sW6KaWPRdPbONWPDmWPO6WOm','nSkGW5JdSCoMuG','x1za','W4qjCCo1qSo5W5bsW4xcRmk5WO0','WRXAvv/dM8oeW5NdHSksrSo5','WOhcLNBcR8kPwbjro2q','ESo+uCkFW4hdImk3WPVcJCoUedddUa','W64+WRTH','WQXEsg7dVCoFW5VdKq','ea45B0burmoVl8oNeCkDlWNdHCkLawSgW6NcPh7cVG','WPpcIu/cQW','lWvDW6OEobahW58wWQvuhmkWfxi','W4NcG0lcR3PC','W646W558fhRdNq','ymo+t8kr','WRGujmo9DfjbW7jMeZ8QB8kgtrmZ','c0rhnSorWRpdMb7dLCkYzSolbCkEW5q','ssCyWR3dRsTvWPdcLSo/','gCoWW7tdH8omW5foWR1lW4dcPhrWiCo+FW','WOpdM8owW7RcH3L5jmkwWOJdUCoLrg3cLrKW','aSoeWQu','W4tcKSoHWQe','W7KMuu/dLrFdI0S','W7m8sCkq','W4pINAdcOW','d1/dSfhcOmobxWpdOSkzWQW','W4BcMSo7WQNdKSohzCoPW4ez','5yY96ys954Mu5OcU57Im5PYqW6hcO8kTdNaLlLhcJ8op','hetdSSksmfBdNSkmWRpcLCoTx8ohDSk/WOm','bb8Sv1rt','n3O8u8khfmk8ydr+','W6WHWQXaA8ofA8oRAW','WRPCvxpdN8oFW4ldNCk6rSobW6BdGCoiW6pcTuuQzq','WRKBWQO','WPdcLCoKqqBdPmkKuSovW7y','Bmoms8ktW7ZdQCk2WQJcTG','5RgP5PYC6i2M5y+Y5yQ95lQZ5yQFW5ZdJa','WOhcK8kwtG','6lAz5y6S6lYz5RIezmosW54','W5dVVz3ORkJPH4NMLRtOJkBLJ5ZdM28hW6pcPam','oCk+W5GAWQDvuGFdUHZdUWm','44gl5O2Z56AN44kX6k2v5yEq6i6x5yYMCCoTWQPZEcO','wqRcSam','W6y5W4TVfxddOmoKp8kKW4K8nCkiWPq','f8kBWRb4','rmkYeSk/jqmgc8ohwI3dNmkAW5jQWP8gWQxcU1RcNG','oSoqW67dICofW7y','5yER5O+85AA46lA17728','dNjAhCoEWO7dKYJdMCkDz8oEdSk4W4hdHmodW5pcT8kajSo2kW','iHldHmkxWQlcRIhcGW','sSoLWOq','WONcNCkf','wa/dMmksm2xdNmohWPxcImoqu8ofCCkfWRNdHLlcQG','5lMm5lU657Qa5y+l','WPZcGttdVSoDWRxdOJG0WQldQmkpW7FcRdtcIetdUmoHWR1LWOJdI2PvWPrqzs1HW5WCW4K','fLRdV1XBbmovb1mGzCoJW6tcGmk4eG','WPDcgSo0kSo6WP/cOcvy','WOtcMCoIxq','quXjWOtdMeK','W6CYrmkb','W7e4qwFdJYFdJ0VdQq','W7K9tSkzWQDYW7rN','W5/cH0BcQW','aWO+shjitSoRd8ocdmkflW','W7GTu0FdHqhdNq','W6aHrmkpWRDaW7b4A20','zmkRW4vcrwpdSSoAW7xcOrdcKZpdTGJdKf8TF1n0WOS','uLPtWQJdGeqNafzMrta6pX9vWRaFWRS','afKCWQ3cImoTaSk5W7jpkdtcOCovpJRcKmk2','W5xdNHFdVCoQ','jmkKW5ddQSobsg3dKCoQW7W','W6NdVHjagW','W5HBWR3dTraKyYJcOL8','W4JcKLpcVM5B','WO4ZWOWQn0xcSxrwyCkphr1fWRSJbCo5r8otWRtcIftcSW','cgDDfCoqWQ7dLYJdHG','oSkSW48','fHSzqLjlzCo5l8okeCkf','6lEU5y+I54MN5OcL776xeW','WPFcH8kmASkXkW','WQCrWR3cHCk1W7NdPq','WOvBkCo7emo/WPJcVs1bWRqUB3nt','WOlcKCoSwIhdVG','fmkvWQ1TemorWOzvWRfpDq','bu8bWOldK8oxga','WPeMWPeU','WQTEu3VdHmofW7ldLCkRva','sLRcRSorz8oiW6y','W7RdKhjdWRtdKmoJf8kKymozfsmkWQ0ug8ktg8kfqMLGWQ3dOerhvCkrE8oYlCkY','5lM95y6p5yww5O2R','bWfUFxtdJerN','jgJdPfPypSo/k14d','ACklWOGuWOBcLCoCWRHTtWqJW6WEWQa','r8oPWPDYW65Nu1pcStqUWO7cICoqWR9mjmobEG','bSkpW4y','W6mOW6TV','WOeIWOWFnG3dSsL6ySkb','6lsk5y+e5PsG5PE4','qH7dTmko','kCowW7pdPComW7W','WR4bfmoAduHy','WORcK8oW','z+IVRoAWJowtV+w5VKC','f8kBWRb4kmo5WOzF','B8oVCCkaW7pdKSkSWRJcUmo0dWJdTcDb','A8kuWR8f','ySoWrq','tX7cQIFdV8od','W6XqbCo2dW','WO3cKdBdS8ozWQxdHY0PWQW','ASkrWQRcKmkuWQ1lWQrDW4hcTeW','vSkMWODLFgldHCoG','WQivWQtcNq','WP3cMCktW5BcJCkTaKagb8kW','hCocWQxcPSoYWRFdLCkvtXm','W544WQRcIsJcM8oXWRVcKwrKneBcR0/dHCoEWRzS','W47dH3lcP8kbW6FcSrGjWPFdG8oVW5W','EmkAWQKbWORcLmoSWO14xq','uCoRWOPV','6lse5yYW5Psu5Pwg','cvpdVftcP8kFvYBdMmkwWQfg','W6SMW7G','ACo6vSk8WQFdK8kS','WRWBWR4','o8kIW5a','WQSbbmocwvHhW75MaI4KySkZqGC9','5lMR5yUP5yIL6kgl5AAr6lww7760','WR4bfmoxsKLdW6LFnde','5ywS5OYj5QUL5B2TWQVcH2C','oHFcHs8','ucvChSoMWRtdGHW','j8k5W6JdTmoHsa','irNcIW','4P6PW5lMN4JOG5lMRRZNOkhLP5JNKPJcSa','W6SSW7fPeNm','5REy5yMu5yEM5y+mDCkQ5lMl5zAH54Uf5lMVFY5dW4tNRPxLI4pMJPVNJAy','jbJcJZFcKSo4xSkC','4PU1u+IfH+wTUEs6V+I8L+IGGoMuKUMBU+AxHoMwTEISKUE+PoMxVEIVOq','ph3dOKTgD8kuzuSsBCkHW6JdGmkXeXdcSvDDsCoyWPtcLW','WQXEsg4','ySkrW6/dR8o7W5zuWRC','WRnlvwRdMSkmWPNcM8k+rCo3WRJdGmkhW73cTWq7z8kMWRpcUSoyjq','W7hdHf1BWRFdRmoZb8k5D8oOsIaxWOqtw8ohcSks','bxHj','W6fAW7O','W7iBw0tdJJRdGh3dUHuvWQHRn8oC','5RkP5P+Y6i2S5y625yUx5lIC5yIjWQvi','lHNcGJ3cJSo7','d0zQ','56Yx5yIN5AsF6lw0776L','W6y6WQrqW6qKtCk6W5RdR8k3W5m8W5HSvNL4W77dH2ddPGlcUZ4rWRm','WOZcG0ZcQCkUwW','W6fmW7xdN8oIWQldQ8oEw8oCWPBcMG','n249wG','WOCKWOWZmHBdQJjsySk5qXWkWQuHrmoOrq','6yod556b5O+i6yktaHT3'];_0x3cfc=function(){return _0x5667c2;};return _0x3cfc();}const runInterval=process[_0x1ac648(0x207,'A39B')][_0x1ac648(0x12c,'CRxx')]||_0x1ac648(0x1cc,'EQII'),isNotify=(process[_0x1ac648(0x1e4,'u1^B')][_0x1ac648(0x1fd,'tpPA')]||process[_0x1ac648(0x1e4,'u1^B')]['jd_tj_qdtx_Notify'])===_0x1ac648(0x1e6,'PPj2'),pinFilter=(process[_0x1ac648(0x1b3,'EH47')][_0x1ac648(0x186,'0Ay9')]||'')[_0x1ac648(0x21e,'#GcJ')]('@'),Exchange_mode=process['env'][_0x1ac648(0x1a7,'2eET')]||'1',maxThreads=0x3;function _0x6383(_0x248596,_0x2f5210){const _0x3cfc98=_0x3cfc();return _0x6383=function(_0x638394,_0x1b2a43){_0x638394=_0x638394-0xf0;let _0x3c61e3=_0x3cfc98[_0x638394];if(_0x6383['JCqVXp']===undefined){var _0x2b768b=function(_0x241b92){const _0x37c6d7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bb7f5='',_0x594cf7='';for(let _0x171bb8=0x0,_0x2c74bb,_0x537dc6,_0x5342e6=0x0;_0x537dc6=_0x241b92['charAt'](_0x5342e6++);~_0x537dc6&&(_0x2c74bb=_0x171bb8%0x4?_0x2c74bb*0x40+_0x537dc6:_0x537dc6,_0x171bb8++%0x4)?_0x2bb7f5+=String['fromCharCode'](0xff&_0x2c74bb>>(-0x2*_0x171bb8&0x6)):0x0){_0x537dc6=_0x37c6d7['indexOf'](_0x537dc6);}for(let _0x1bc8f2=0x0,_0x36243b=_0x2bb7f5['length'];_0x1bc8f2<_0x36243b;_0x1bc8f2++){_0x594cf7+='%'+('00'+_0x2bb7f5['charCodeAt'](_0x1bc8f2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x594cf7);};const _0x4484a3=function(_0x5b4c0a,_0x400e7){let _0x257249=[],_0x2de07c=0x0,_0x22213f,_0xc9e119='';_0x5b4c0a=_0x2b768b(_0x5b4c0a);let _0x42fca;for(_0x42fca=0x0;_0x42fca<0x100;_0x42fca++){_0x257249[_0x42fca]=_0x42fca;}for(_0x42fca=0x0;_0x42fca<0x100;_0x42fca++){_0x2de07c=(_0x2de07c+_0x257249[_0x42fca]+_0x400e7['charCodeAt'](_0x42fca%_0x400e7['length']))%0x100,_0x22213f=_0x257249[_0x42fca],_0x257249[_0x42fca]=_0x257249[_0x2de07c],_0x257249[_0x2de07c]=_0x22213f;}_0x42fca=0x0,_0x2de07c=0x0;for(let _0xcc14d8=0x0;_0xcc14d8<_0x5b4c0a['length'];_0xcc14d8++){_0x42fca=(_0x42fca+0x1)%0x100,_0x2de07c=(_0x2de07c+_0x257249[_0x42fca])%0x100,_0x22213f=_0x257249[_0x42fca],_0x257249[_0x42fca]=_0x257249[_0x2de07c],_0x257249[_0x2de07c]=_0x22213f,_0xc9e119+=String['fromCharCode'](_0x5b4c0a['charCodeAt'](_0xcc14d8)^_0x257249[(_0x257249[_0x42fca]+_0x257249[_0x2de07c])%0x100]);}return _0xc9e119;};_0x6383['ORqVBC']=_0x4484a3,_0x248596=arguments,_0x6383['JCqVXp']=!![];}const _0x37ec31=_0x3cfc98[0x0],_0x5bbe8a=_0x638394+_0x37ec31,_0x183ead=_0x248596[_0x5bbe8a];return!_0x183ead?(_0x6383['QgDHsI']===undefined&&(_0x6383['QgDHsI']=!![]),_0x3c61e3=_0x6383['ORqVBC'](_0x3c61e3,_0x1b2a43),_0x248596[_0x5bbe8a]=_0x3c61e3):_0x3c61e3=_0x183ead,_0x3c61e3;},_0x6383(_0x248596,_0x2f5210);}let cookiesArr=Object[_0x1ac648(0x1f0,'tpPA')](jdCookie)['map'](_0x4484a3=>jdCookie[_0x4484a3])[_0x1ac648(0x1a4,'geQZ')](_0x241b92=>_0x241b92);!cookiesArr[0x0]&&($[_0x1ac648(0x1ea,'mcbG')]($['name'],_0x1ac648(0x121,'DSX3')),process[_0x1ac648(0x1eb,'DbJA')](0x1));!(async()=>{const _0x388a0f=_0x1ac648;notify[_0x388a0f(0x18b,'tpPA')]({'title':$[_0x388a0f(0x1e1,'EQII')]}),await Main(),isNotify&¬ify[_0x388a0f(0x1e3,'Dnmq')]()&&await notify['push']();})()[_0x1ac648(0x13f,'bOeu')](_0x37c6d7=>$['logErr'](_0x37c6d7))[_0x1ac648(0x14f,'dByL')](()=>$['done']());async function Main(){const _0x25b671=_0x1ac648;try{try{const _0x594cf7=parseInt(taskThreads);_0x594cf7>0x0&&_0x594cf7!==0x1&&(taskThreads=_0x594cf7);}catch{taskThreads=0x1;}taskThreads=Math[_0x25b671(0xf5,'ylnR')](taskThreads,maxThreads),$['waitTime']=null;if(runInterval)try{const _0x171bb8=parseInt(runInterval);_0x171bb8>=0x0&&($[_0x25b671(0x1fc,'2eET')]=_0x171bb8);}catch{console[_0x25b671(0x1c7,'0Ay9')](_0x25b671(0x181,'0EjY'));}console['log']('=========='+$['name']+_0x25b671(0x1ab,'*!5a')),console[_0x25b671(0x1b7,'bOeu')](_0x25b671(0x17f,'ab0i')),console[_0x25b671(0x174,'Dnmq')](_0x25b671(0x178,'X&WC')+(Exchange_mode==='1'?'现金':'红包')+']'),console[_0x25b671(0x22e,'(40F')]('代理开关:\x20['+common[_0x25b671(0x225,'PPj2')]()+']'),console[_0x25b671(0x10c,'PPj2')](_0x25b671(0x193,'mcbG')+(isNotify?'开启':'关闭')+']'),console['log'](_0x25b671(0x11e,'EQII')+pinFilter['join'](',\x20')+']'),console['log'](_0x25b671(0x1dd,'0EjY')+$[_0x25b671(0x106,'*!5a')]+_0x25b671(0x113,'#s%y')),console[_0x25b671(0x187,'geQZ')](''),$['needRemoveCookieIndex']=[],await common[_0x25b671(0x21a,']If)')](taskThreads,cookiesArr,taskFnc),$['hasPrintActInfo']=![],$[_0x25b671(0x163,'X&WC')]=![];$[_0x25b671(0x1d4,'PPj2')]['length']>0x0&&(cookiesArr=cookiesArr['filter']((_0x2c74bb,_0x537dc6)=>!$[_0x25b671(0x1bf,'v1vn')][_0x25b671(0xf3,'(9uq')](_0x537dc6+0x1)),$[_0x25b671(0x21b,'ru^8')]=[]);const _0x2bb7f5=notify[_0x25b671(0x1bb,'mcbG')]();_0x2bb7f5&&console[_0x25b671(0x209,'v1vn')]('\x0a📣\x20运行结果\x0a'+_0x2bb7f5[_0x25b671(0x148,')K%Z')](/:/g,_0x25b671(0x110,'ab0i')));}catch(_0x5342e6){console[_0x25b671(0xfa,'A39B')]('❌\x20脚本运行遇到了错误\x0a'+_0x5342e6);}}async function taskFnc(_0x1bc8f2,_0x36243b){const _0x15823c=_0x1ac648;if($[_0x15823c(0x15b,'DSX3')])return{'runEnd':!![]};const _0x5b4c0a=decodeURIComponent(common['getCookieValue'](_0x1bc8f2,_0x15823c(0x17b,'Dnmq')));function _0x400e7(_0x14ab74,_0x5642ee){const _0xfb6abc=_0x15823c;if(_0x14ab74[_0xfb6abc(0x214,'BSpR')]<=0x4)return _0x14ab74;else{const _0x5c4e42=_0x14ab74['slice'](0x0,0x2),_0x31e2e3=_0x14ab74['slice'](-0x2),_0x35091f=Math[_0xfb6abc(0x144,'Dnmq')](_0x5642ee-_0x5c4e42[_0xfb6abc(0x1cd,']If)')]-_0x31e2e3[_0xfb6abc(0x18f,'ZuRW')],0x0),_0x82cb18='*'[_0xfb6abc(0x104,'2eET')](_0x35091f);return _0x5c4e42+_0x82cb18+_0x31e2e3;}}const _0x257249=decodeURIComponent(_0x5b4c0a),_0x2de07c=_0x400e7(_0x257249,0x6),_0x22213f=_0x15823c(0x1c8,'#GcJ')+_0x36243b+'】'+_0x2de07c+':',_0xc9e119=notify[_0x15823c(0xf6,'EQII')](_0x36243b,_0x5b4c0a);if(pinFilter['length']>0x0&&(pinFilter[_0x15823c(0x180,'tpPA')](_0x5b4c0a)||pinFilter[_0x15823c(0x10e,'ru^8')](encodeURIComponent(_0x5b4c0a)))){_0xc9e119[_0x15823c(0x19e,'mxI!')](_0x15823c(0x1bd,'Faby')),console[_0x15823c(0x1a2,'Y&Bj')](_0xc9e119[_0x15823c(0x1ff,'P0g4')]()),$[_0x15823c(0x1c3,'Dnmq')]['push'](_0x36243b);return;}const _0x42fca=await common['getLoginStatus'](_0x1bc8f2);if(!_0x42fca&&typeof _0x42fca===_0x15823c(0x235,'mcbG')){console[_0x15823c(0x223,'BSpR')](_0x22213f+_0x15823c(0x159,'dByL')),_0xc9e119['fix'](_0x15823c(0x16f,'#GcJ')),$[_0x15823c(0x125,'Rj@B')][_0x15823c(0x191,'mxI!')](_0x36243b);return;}const _0xcc14d8=common[_0x15823c(0x208,'dByL')](_0x5b4c0a);let _0x3cca29=![],_0x1b5b3a=![],_0x15b03d,_0x132dcf,_0xd6af6c,_0x16e34d,_0x1f1f8b,_0xd1c0aa,_0x1ffbd9,_0x37bd39,_0xc33da2;_0x15b03d='',await _0x120f86('bSignInHome'),await $['wait'](parseInt($[_0x15823c(0x21c,'A39B')]*0x1+0x1f4,0xa));if($[_0x15823c(0x132,'A39B')]||_0x3cca29)return;if(_0x15b03d){let _0x14e4dd=_0x15b03d[_0x15823c(0x16a,'PPj2')],_0x45ec0f=_0x15b03d['bubbleText'],_0x173426=_0x15b03d[_0x15823c(0x13e,'Dnmq')],_0x34811c=_0x15b03d['userFlag'];if(_0x34811c!==0x2){console[_0x15823c(0x17c,'tpPA')](_0x22213f+'签到金:['+_0x14e4dd+_0x15823c(0x156,'DSX3')+(_0x45ec0f||_0x15823c(0x151,'uj9S'))+']现金或红包');_0x173426!==0x1&&await _0x120f86(_0x15823c(0x200,'ab0i'));await _0x120f86(_0x15823c(0x203,'CRxx'));if(_0x1f1f8b&&Array[_0x15823c(0x105,'ylnR')](_0x1f1f8b))for(let _0x5e8d0e=0x0;_0x5e8d0e<_0x1f1f8b[_0x15823c(0x1ec,'DSX3')];_0x5e8d0e++){_0x132dcf=_0x1f1f8b[_0x5e8d0e],_0xd6af6c=_0x132dcf[_0x15823c(0x1c6,'(9uq')];const _0x3c7d63=_0x132dcf[_0x15823c(0x22d,'mcbG')],_0x527652=_0x132dcf[_0x15823c(0x137,'EH47')],_0x2a4188=_0x132dcf[_0x15823c(0x1ca,'P0g4')],_0x389c17=_0x132dcf[_0x15823c(0x234,'dByL')],_0xc441ce=_0x132dcf['timeLimitPeriod'],_0x597192=_0x132dcf[_0x15823c(0x1d8,'mcbG')];if(!_0x3c7d63&&_0x597192[_0x15823c(0x135,'rX7u')](_0x15823c(0x222,']If)'))){if(!_0xc441ce){if(_0xd6af6c)for(let _0x3d515f=_0x389c17;_0x3d515f<_0x2a4188;_0x3d515f++){await _0x120f86(_0x15823c(0x134,'ru^8')),await $[_0x15823c(0x14d,'!4gC')](parseInt($[_0x15823c(0x152,'uj9S')]*0x1+0x5dc,0xa)),await _0x120f86(_0x15823c(0x226,'NjdQ')),await $[_0x15823c(0x179,'tpPA')](parseInt($['waitTime']*0x1+0x5dc,0xa));}else{_0x1b5b3a=![];while(!_0x1b5b3a&&!_0x3cca29){_0xd1c0aa='',await _0x120f86(_0x15823c(0x1c0,'bOeu')),_0x1b5b3a=_0xd1c0aa?.[_0x15823c(0x1c4,'o%Z#')]?.[_0x15823c(0x1ed,'mcbG')]||![];const _0xf8ca7b=_0xd1c0aa?.[_0x15823c(0x120,'0%(@')]||[],_0x2ac9cc=_0xd1c0aa?.[_0x15823c(0x141,'2eET')]?.[_0x15823c(0x112,'Faby')];for(let _0xda6732=0x0;_0xda6732<_0x2ac9cc;_0xda6732++){const _0x400471=_0xf8ca7b[_0xda6732];_0x400471?(_0xd6af6c=_0x400471[_0x15823c(0x1ce,'Dnmq')],_0x16e34d=_0x400471[_0x15823c(0x1c9,'aA@4')],await _0x120f86('apsDoTask'),await $[_0x15823c(0x16e,'5asy')](parseInt($['waitTime']*0x1+0x5dc,0xa)),await _0x120f86('apStartTaskTime'),await $[_0x15823c(0x1d3,'EQII')](parseInt($['waitTime']*0x1+0x5dc,0xa)),await _0x120f86(_0x15823c(0x123,'ylnR')),await $['wait'](parseInt($[_0x15823c(0x152,'uj9S')]*0x1+0x5dc,0xa))):console[_0x15823c(0x162,'*!5a')](''+_0x22213f+_0x527652+_0x15823c(0x11c,'u1^B'));}}}}else{if(_0xd6af6c)for(let _0x5f264e=_0x389c17;_0x5f264e<_0x2a4188;_0x5f264e++){await _0x120f86(_0x15823c(0x160,'*!5a')),await $[_0x15823c(0x133,'rX7u')](_0xc441ce*0x3e8+0x5dc,0xa),await _0x120f86(_0x15823c(0x224,'ft2i')),await $[_0x15823c(0x201,'DSX3')](parseInt($[_0x15823c(0x1ac,'rX7u')]*0x1+0x5dc,0xa)),await _0x120f86('apTaskDrawAward'),await $[_0x15823c(0x1af,'0Ay9')](parseInt($['waitTime']*0x1+0x5dc,0xa));}else{_0x1b5b3a=![];while(!_0x1b5b3a&&!_0x3cca29){_0xd1c0aa='',await _0x120f86(_0x15823c(0x202,'0EjY')),_0x1b5b3a=_0xd1c0aa?.[_0x15823c(0x22f,'(9uq')]?.[_0x15823c(0x1e7,'PPj2')]||![];const _0x3293ef=_0xd1c0aa?.[_0x15823c(0x1a6,'P0g4')]||[],_0x1d1e4f=_0xd1c0aa?.['status']?.[_0x15823c(0x140,'*w@L')];for(let _0x3f8f85=0x0;_0x3f8f85<_0x1d1e4f;_0x3f8f85++){const _0x1f76ec=_0x3293ef[_0x3f8f85];_0x1f76ec?(_0xd6af6c=_0x1f76ec[_0x15823c(0x1ef,'mcbG')],_0x16e34d=_0x1f76ec[_0x15823c(0x1c5,'!4gC')],await _0x120f86(_0x15823c(0x154,'(9uq')),await $[_0x15823c(0x183,'DbJA')](_0xc441ce*0x3e8+0x5dc,0xa),await _0x120f86('apDoLimitTimeTask'),await $[_0x15823c(0x1a5,'EH47')](parseInt($[_0x15823c(0x15f,'P0g4')]*0x1+0x5dc,0xa)),await _0x120f86(_0x15823c(0x1d9,'CRxx')),await $[_0x15823c(0x1c1,'Bcq*')](parseInt($['waitTime']*0x1+0x5dc,0xa))):console[_0x15823c(0x219,'0EjY')](''+_0x22213f+_0x527652+_0x15823c(0x18a,'(9uq'));}}}}}if(_0x3cca29)break;}_0x1ffbd9='',await _0x120f86('BSignInMyBalance'),await $[_0x15823c(0x168,')K%Z')](parseInt($[_0x15823c(0x22c,'aA@4')]*0x1+0x5dc,0xa));if(_0x1ffbd9){let _0x590cff=_0x1ffbd9[_0x15823c(0x14b,'P0g4')],_0x57a136=_0x1ffbd9[_0x15823c(0x1d0,'ab0i')]||[],_0x48ce19=_0x1ffbd9[_0x15823c(0x175,'mcbG')]||[],_0x4f8dcb=_0x1ffbd9['exchangeStatus'],_0x53ad4c=0x0,_0x3134db=0x0,_0x5a4bf6,_0x56dd42;if(_0x4f8dcb!==0x0){console[_0x15823c(0x12a,'5asy')](_0x22213f+_0x15823c(0x228,'A39B'));return;}switch(Exchange_mode){case'0':for(let _0x4f98a8=0x0;_0x4f98a8<_0x48ce19[_0x15823c(0xf0,'ft2i')];_0x4f98a8++){let _0x5eaf16=_0x48ce19[_0x4f98a8][_0x15823c(0xf9,'Dnmq')];_0x5eaf16<=_0x590cff&&_0x5eaf16>_0x53ad4c&&(_0x53ad4c=_0x5eaf16,_0x3134db=_0x48ce19[_0x4f98a8][_0x15823c(0x198,'ru^8')],_0x5a4bf6=_0x48ce19[_0x4f98a8]['exchangeType'],_0x56dd42=_0x48ce19[_0x4f98a8][_0x15823c(0x220,'0%(@')]);}_0x53ad4c>0x0?(_0x37bd39=0x2,_0xc33da2=_0x3134db,await _0x120f86(_0x15823c(0x189,'ru^8')),await $['wait'](parseInt($[_0x15823c(0x100,'DbJA')]*0x1+0x5dc,0xa))):console[_0x15823c(0x12b,'#s%y')](_0x22213f+_0x15823c(0x1ae,'dByL'));break;case'1':for(let _0x7aa6f4=0x0;_0x7aa6f4<_0x57a136[_0x15823c(0x17e,'ylnR')];_0x7aa6f4++){let _0xa4fd7e=_0x57a136[_0x7aa6f4][_0x15823c(0x19d,'DbJA')];_0xa4fd7e<=_0x590cff&&_0xa4fd7e>_0x53ad4c&&(_0x53ad4c=_0xa4fd7e,_0x3134db=_0x57a136[_0x7aa6f4][_0x15823c(0x131,'ab0i')],_0x5a4bf6=_0x57a136[_0x7aa6f4][_0x15823c(0x1be,'*!5a')],_0x56dd42=_0x57a136[_0x7aa6f4][_0x15823c(0x115,'EH47')]);}_0x53ad4c>0x0?(_0x37bd39=0x4,_0xc33da2=_0x3134db,await _0x120f86(_0x15823c(0x1db,'#GcJ')),await $[_0x15823c(0xf2,'G[!h')](parseInt($[_0x15823c(0x129,'0EjY')]*0x1+0x5dc,0xa))):console['log'](_0x22213f+_0x15823c(0x1e5,'uj9S'));break;default:console['log'](''+_0x22213f+Exchange_mode+_0x15823c(0x1b5,'geQZ'));}}}else console[_0x15823c(0x233,'ab0i')](_0x22213f+_0x15823c(0x146,'u1^B')+_0x34811c+_0x15823c(0x11f,'v1vn'));}if($[_0x15823c(0x21f,'s3i4')])return{'runEnd':!![]};await $[_0x15823c(0x124,'P0g4')](parseInt($['waitTime']*0x1+0x1f4,0xa));async function _0xa1b638(_0x2ce333,_0x10b3b0){const _0x3c267f=_0x15823c;try{switch(_0x2ce333){case _0x3c267f(0x169,']If)'):_0x10b3b0[_0x3c267f(0xff,'v1vn')]==0x0?_0x10b3b0[_0x3c267f(0x218,'Dnmq')]?_0x15b03d=_0x10b3b0['data']:(msg=common['getErrorMsg'](_0x10b3b0[_0x3c267f(0x1aa,'mcbG')]),console[_0x3c267f(0x211,'P0g4')](_0x22213f+'进入首页失败:'+msg)):(msg=common[_0x3c267f(0x1fe,'(9uq')](_0x10b3b0),console[_0x3c267f(0x119,')K%Z')](_0x22213f+_0x3c267f(0x230,'tpPA')+msg));break;case _0x3c267f(0x11b,'*!5a'):if(_0x10b3b0[_0x3c267f(0x10f,'rX7u')]==0x0){let _0x17db10=_0x22213f+_0x3c267f(0x1d5,'mcbG');_0x10b3b0['data'][_0x3c267f(0x11a,'ab0i')]>0x0&&(_0x17db10+=','+_0x10b3b0[_0x3c267f(0x213,')K%Z')][_0x3c267f(0x130,'G[!h')]+_0x3c267f(0x1a9,'#GcJ')),_0x10b3b0[_0x3c267f(0x21d,'DSX3')]['bsignInPrizeDrawVO']&&_0x10b3b0[_0x3c267f(0x1b0,']If)')]['bsignInPrizeDrawVO']['prizeValue']>0x0&&(_0x17db10+=','+_0x10b3b0[_0x3c267f(0x20f,'G[!h')][_0x3c267f(0x13c,'aA@4')][_0x3c267f(0x139,'rX7u')]+_0x3c267f(0x12d,'ZuRW')),console[_0x3c267f(0x22e,'(40F')](_0x17db10);}else msg=common[_0x3c267f(0x177,'mcbG')](_0x10b3b0),console[_0x3c267f(0x1df,'Bcq*')](_0x22213f+_0x3c267f(0x1bc,'Rj@B')+msg);break;case _0x3c267f(0x12f,'(40F'):_0x10b3b0['code']==0x0?_0x1ffbd9=_0x10b3b0[_0x3c267f(0x136,'2eET')]:(msg=common[_0x3c267f(0x1a1,'Dnmq')](_0x10b3b0),console[_0x3c267f(0x1f8,'NjdQ')](_0x22213f+_0x3c267f(0x18d,'geQZ')+msg));break;case'bSignInExchange':_0x10b3b0[_0x3c267f(0x161,'(9uq')]==0x0?(console['log'](_0x22213f+_0x3c267f(0x232,'u1^B')+(_0x10b3b0[_0x3c267f(0x1aa,'mcbG')]['amount']||'')+'--'+(_0x10b3b0[_0x3c267f(0x10d,'Faby')]['desc']||'')),_0xc9e119['insert'](_0x3c267f(0x1e2,'*w@L')+(_0x10b3b0[_0x3c267f(0x122,'X&WC')][_0x3c267f(0x14a,'ab0i')]||'')+'--'+(_0x10b3b0[_0x3c267f(0x1aa,'mcbG')][_0x3c267f(0x212,'X&WC')]||''))):(msg=common[_0x3c267f(0xfc,'DbJA')](_0x10b3b0),console[_0x3c267f(0x22e,'(40F')](_0x22213f+_0x3c267f(0x127,'BSpR')+msg));break;case _0x3c267f(0x1a3,'*w@L'):if(_0x10b3b0[_0x3c267f(0x1fb,'DSX3')]==0x0){let _0x5aa939=[];for(let _0x57f848 of _0x10b3b0[_0x3c267f(0x1ee,'(40F')]||[]){_0x57f848&&_0x57f848[_0x3c267f(0x103,'Y&Bj')]&&_0x5aa939[_0x3c267f(0x15a,'CRxx')](_0x57f848[_0x3c267f(0x1d7,'DSX3')]+'签到金');}_0x5aa939[_0x3c267f(0x22a,'rX7u')]&&console[_0x3c267f(0x1fa,'rX7u')](_0x22213f+'['+_0x132dcf['taskShowTitle']+']任务完成:\x20'+_0x5aa939[_0x3c267f(0x1ba,'s3i4')](',\x20'));}else msg=common['getErrorMsg'](_0x10b3b0),console[_0x3c267f(0x219,'0EjY')](_0x22213f+'领取失败:'+msg);break;case _0x3c267f(0xfd,'ZuRW'):_0x10b3b0[_0x3c267f(0x19b,'s3i4')]==0x0?_0x1f1f8b=_0x10b3b0?.['data']:(msg=common[_0x3c267f(0x158,'!4gC')](_0x10b3b0),console[_0x3c267f(0x1a2,'Y&Bj')](_0x22213f+_0x3c267f(0x176,'ru^8')+msg));break;case'apTaskDetail':_0x10b3b0[_0x3c267f(0x206,'Faby')]==0x0?_0xd1c0aa=_0x10b3b0?.[_0x3c267f(0x196,'v1vn')]:(msg=common['getErrorMsg'](_0x10b3b0),['登陆','登录'][_0x3c267f(0x102,'ZuRW')](_0x75817a=>msg['includes'](_0x75817a))?(console[_0x3c267f(0xfa,'A39B')](_0x22213f+_0x3c267f(0x1f3,'mxI!')+msg),_0x3cca29=!![]):console[_0x3c267f(0x1d2,'aA@4')](_0x22213f+'查询任务失败:'+msg));break;case _0x3c267f(0x117,'v1vn'):case _0x3c267f(0x107,'mcbG'):_0x10b3b0['code']==0x0?(_0x1b5b3a=_0x10b3b0['data'][_0x3c267f(0x1b1,'v1vn')]||![],console[_0x3c267f(0x18c,'ft2i')](''+_0x22213f+_0x132dcf['taskShowTitle']+'完成')):(msg=common['getErrorMsg'](_0x10b3b0),console['log'](''+_0x22213f+_0x132dcf[_0x3c267f(0xfe,'*!5a')]+_0x3c267f(0x20c,'0Ay9')+msg));break;case'apStartTaskTime':break;}}catch(_0x190f6e){console[_0x3c267f(0x171,'ylnR')](_0x3c267f(0x17d,'#s%y')+_0x2ce333+_0x3c267f(0x15e,'mxI!')+(_0x190f6e['message']||_0x190f6e));}}async function _0x120f86(_0x35b0cc){const _0x18c5f2=_0x15823c;if($[_0x18c5f2(0x147,'#s%y')])return;let _0x1d3ab1='',_0xcd6886=null,_0x48eae3=null,_0xf48c0b=_0x18c5f2(0x1b2,'BSpR'),_0x1a566e={},_0xf788de={};switch(_0x35b0cc){case _0x18c5f2(0x216,'Faby'):_0xf788de={'appId':'76674','functionId':_0x35b0cc,'appid':'activities_platform','clientVersion':common['getLatestLiteAppVersion'](),'client':'ios','body':{'linkId':linkId},'version':_0x18c5f2(0x188,')K%Z'),'ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st[_0x18c5f2(0x1d1,'ft2i')](_0xf788de),_0x1d3ab1='https://api.m.jd.com/api',_0xcd6886=_0x1a566e[_0x18c5f2(0x16d,'(9uq')];break;case _0x18c5f2(0x1dc,'#s%y'):_0xf788de={'appId':_0x18c5f2(0x1e9,'0Ay9'),'functionId':_0x35b0cc,'appid':_0x18c5f2(0x155,'5asy'),'clientVersion':common[_0x18c5f2(0x101,'EH47')](),'client':_0x18c5f2(0x173,')K%Z'),'body':{'linkId':linkId},'version':_0x18c5f2(0x217,'u1^B'),'ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st[_0x18c5f2(0x15c,'mcbG')](_0xf788de),_0x1d3ab1=_0x18c5f2(0x1cf,'2eET'),_0xcd6886=_0x1a566e[_0x18c5f2(0x19c,'*!5a')];break;case _0x18c5f2(0x10a,'DSX3'):_0xf788de={'appId':'61e2b','functionId':_0x35b0cc,'appid':_0x18c5f2(0x16b,'EQII'),'clientVersion':common[_0x18c5f2(0x1c2,'(9uq')](),'client':'ios','body':{'linkId':linkId},'version':'4.7','ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st['getH5st'](_0xf788de),_0x1d3ab1='https://api.m.jd.com/api',_0xcd6886=_0x1a566e[_0x18c5f2(0x165,'NjdQ')];break;case _0x18c5f2(0x108,'geQZ'):_0xf788de={'appId':_0x18c5f2(0x221,'rX7u'),'functionId':_0x35b0cc,'appid':_0x18c5f2(0x13b,'A39B'),'clientVersion':common['getLatestLiteAppVersion'](),'client':_0x18c5f2(0x1b4,'X&WC'),'body':{'awardType':_0x37bd39,'gear':_0xc33da2,'linkId':linkId},'version':_0x18c5f2(0x1a0,'ab0i'),'ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st[_0x18c5f2(0x19f,'geQZ')](_0xf788de),_0x1d3ab1=_0x18c5f2(0x182,'(40F'),_0xcd6886=_0x1a566e[_0x18c5f2(0x14e,'DbJA')];break;case'apTaskList':_0xf48c0b=_0x18c5f2(0x205,'Rj@B'),_0x1d3ab1='https://api.m.jd.com/api',_0x48eae3={'functionId':_0x35b0cc,'body':JSON[_0x18c5f2(0x227,'!4gC')]({'linkId':linkId}),'t':Date[_0x18c5f2(0x204,'lIfM')](),'appid':_0x18c5f2(0x20e,'dByL'),'client':_0x18c5f2(0x195,'mcbG'),'clientVersion':common[_0x18c5f2(0x128,'geQZ')]()};break;case _0x18c5f2(0x145,'EH47'):_0xf788de={'appId':_0x18c5f2(0x1f1,'ru^8'),'functionId':_0x35b0cc,'appid':_0x18c5f2(0x118,'DbJA'),'clientVersion':common['getLatestAppVersion'](),'client':_0x18c5f2(0x15d,'ab0i'),'body':{'taskType':_0x132dcf[_0x18c5f2(0x1f4,'o%Z#')],'taskId':_0x132dcf['id'],'channel':0x4,'checkVersion':!![],'linkId':linkId},'version':_0x18c5f2(0x1ad,'Y&Bj'),'ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st[_0x18c5f2(0x172,'*!5a')](_0xf788de),_0x1d3ab1='https://api.m.jd.com/api',_0xcd6886=_0x1a566e[_0x18c5f2(0x109,'Bcq*')];break;case _0x18c5f2(0x143,'geQZ'):_0xf788de={'appId':'54ed7','functionId':_0x35b0cc,'appid':_0x18c5f2(0x199,'(40F'),'clientVersion':common['getLatestLiteAppVersion'](),'client':_0x18c5f2(0xf7,'v1vn'),'body':{'taskType':_0x132dcf[_0x18c5f2(0x167,'#GcJ')],'taskId':_0x132dcf['id'],'channel':0x4,'checkVersion':!![],'linkId':linkId,'itemId':_0xd6af6c,'taskInsert':_0x16e34d},'version':_0x18c5f2(0x1d6,']If)'),'ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st[_0x18c5f2(0x14c,'aA@4')](_0xf788de),_0x1d3ab1='https://api.m.jd.com/api',_0xcd6886=_0x1a566e[_0x18c5f2(0x194,'v1vn')];break;case _0x18c5f2(0x197,'ft2i'):_0xf788de={'appId':_0x18c5f2(0x164,'mcbG'),'functionId':_0x35b0cc,'appid':_0x18c5f2(0x192,'!4gC'),'clientVersion':common[_0x18c5f2(0x1da,'NjdQ')](),'client':'ios','body':{'taskId':_0x132dcf['id'],'channel':0x4,'linkId':linkId,'itemId':_0xd6af6c},'version':'4.7','ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st[_0x18c5f2(0x1b6,'dByL')](_0xf788de),_0x1d3ab1=_0x18c5f2(0x1f9,'uj9S'),_0xcd6886=_0x1a566e[_0x18c5f2(0x1b8,'P0g4')];break;case _0x18c5f2(0x10b,'lIfM'):_0xf788de={'appId':'ebecc','functionId':_0x35b0cc,'appid':'activities_platform','clientVersion':common['getLatestLiteAppVersion'](),'client':'ios','body':{'linkId':linkId},'version':'4.7','ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st[_0x18c5f2(0x20d,'0%(@')](_0xf788de),_0x1d3ab1=_0x18c5f2(0x142,'!4gC'),_0xcd6886=_0x1a566e[_0x18c5f2(0x116,'mxI!')];break;case _0x18c5f2(0x149,'G[!h'):_0xf788de={'appId':'6f2b6','functionId':_0x35b0cc,'appid':'activities_platform','clientVersion':common[_0x18c5f2(0x1de,'uj9S')](),'client':'ios','body':{'taskType':_0x132dcf['taskType'],'taskId':_0x132dcf['id'],'channel':0x4,'checkVersion':!![],'cityId':'133','provinceId':'4','countyId':_0x18c5f2(0x13d,'ZuRW'),'linkId':linkId},'version':'4.7','ua':_0xcc14d8,'t':!![]},_0x1a566e=await H5st['getH5st'](_0xf788de),_0x1d3ab1=_0x18c5f2(0x185,'DbJA'),_0xcd6886=_0x1a566e[_0x18c5f2(0x153,'(40F')];break;default:console['log']('❌\x20未知请求\x20'+_0x35b0cc);return;}const _0x429486={};_0xcd6886&&Object[_0x18c5f2(0x126,'DSX3')](_0xcd6886,_0x429486);_0x48eae3&&Object['assign'](_0x48eae3,_0x429486);const _0x1b648b={'url':_0x1d3ab1,'method':_0xf48c0b,'headers':{'origin':'https://h5platform.jd.com/','Referer':_0x18c5f2(0xf4,'0%(@'),'User-Agent':_0xcc14d8,'Cookie':_0x1bc8f2,'content-type':_0x18c5f2(0x12e,'NjdQ'),'accept':_0x18c5f2(0x150,'0Ay9')},'params':_0x48eae3,'data':_0xcd6886,'timeout':0x7530};_0xf48c0b==='GET'&&(delete _0x1b648b[_0x18c5f2(0x1f2,'0%(@')],delete _0x1b648b[_0x18c5f2(0x138,'ru^8')][_0x18c5f2(0xfb,'s3i4')]);const _0x5acb6f=0x1;let _0x7fa895=0x0,_0x329969=null;while(_0x7fa895<_0x5acb6f){_0x7fa895>0x0&&await $[_0x18c5f2(0x1f7,'2eET')](0x3e8);const _0x169133=await common['request'](_0x1b648b);if(!_0x169133[_0x18c5f2(0x231,'s3i4')]){_0x329969=_0x18c5f2(0x1f5,'ru^8')+_0x35b0cc+_0x18c5f2(0x22b,'NjdQ')+_0x169133[_0x18c5f2(0x1b9,'P0g4')],_0x7fa895++;continue;}if(!_0x169133[_0x18c5f2(0x11d,'#s%y')]){_0x329969=_0x18c5f2(0x20a,'tpPA')+_0x35b0cc+'\x20请求失败\x20➜\x20无响应数据',_0x7fa895++;continue;}await _0xa1b638(_0x35b0cc,_0x169133[_0x18c5f2(0x157,'ylnR')]);break;}_0x7fa895>=_0x5acb6f&&console['log'](_0x329969);}}
|
||
// 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) }
|