1 Star 0 Fork 0

冷心/Thread

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_txzj_cart_item.js 43.20 KB
一键复制 编辑 原始数据 按行查看 历史
gys619 提交于 2022-10-13 17:40 . up
/**
收藏大师-加购有礼
必须条件:配置文件或者环境变量中添加变量:
//export jd_cart_item_activityUrl="活动链接"
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#收藏大师-加购有礼
1 1 1 1 * jd_txzj_cart_item.js, tag=收藏大师-加购有礼, enabled=true
*/
const $ = new Env("收藏大师-加购有礼");
var OO0$='jsjiami.com.v6',OO0$_=['‮OO0$'],O00O=[OO0$,'w7QZMMKqwoM=','w7ILNsOmHg==','w5nCisOfBUY=','w6cEFcOdwpkW','w5w2GiMN','wpfCj28hNUA=','w7fChVYNJg==','w4gaawfCsQ==','w540VsOXw4c=','wql2w7kiLQ==','worDvFUnwrQQ','SAjDjsOARMKr','KMKyKTom','EcOuw5vClcO/','w5TDlAg4BsO/','OcK3BkBR','DWBLwrE=','w4gaCnjDkA==','fsKSGirCgio=','w4fDq8K+BUY=','bsKBw7/DoMKJ','H8KPFwRk','w5nCisK+BSc=','TsOgw7XDvsO1SQ==','w6pMRFUeRVsEL8OZ','w5XCq3LDmQ0HDg==','woYtHgMLWcOkwqZ3w4rDthrDr8K7MOitleaylOWkt+i2jO+8q+ivjOahuuafoee9rOi2o+mEpeitiw==','LcOUwojCucOLw585','fhsbw5HDigTDnsK5','CiopEA==','5bea5Y2v5Yij','5bWI6aGL5Y2j','5p6M5b2O5aa0','OMOQa8O8','TMKxecOpGlrCng==','w6zCgSPDsic=','w5ovwq1jw5k=','wrd2wphdLQ==','w6LCriTDp8OF','wrd2wpg8Mw==','wqfDmcOvJmPDlm/Cj8Kxw5bDscOYHU7CtzvDlMOqG8O6w67DvU7CuA==','w58cwpDDr0k=','B2I1DmU=','OcKpZz8u','w4ohGA==','w5XCosKXEm0=','LcOVwpnCs8OAw4sjGmo=','wqHDvQ4=','RsOMw641','w5nDq8K+ZEY=','JsOQa8O8wrQ=','w5M7C8OaSw==','w7TDoE7CoA0=','w75MRCgPQ04K','w70qLyk=','w6nDuilsOA==','w5MldMOaKg==','w5bCjwM=','S8KqcMOTB3vCnA==','w7HCvjRREw==','w4M2FgU=','w6fCjjjClQ==','VcOkwocAwr3CsgE=','w78QFcOw','RMOfw4Y=','w7TDiltEGRHDisOl','d8KTCw==','IcOewpIiw7ojUMKS','w6/DgVVPEw==','TsKrcw==','wrDCvsK/w4o=','dQIQ','8Je0le+4m8KW5L2n5oOU5Y6N','PlvDuRjDm8O2woDCtHLClVg=','w4fDq8OfG0Y=','wrjCsMKs','wrVbUcKAXA==','8J2coMKB','RcOQw4TDjg==','w47DvG16OQzDtsOMQlg=','w6p4MMOVwoM=','w5h9w4PCrSs=','wqYjw7k=','8JetjTTnpZnlibk=','L0rDpAvDiMOAwp3Co1HClA==','wqvDlVDCssOWwo3DgsOnw4p2fw==','wpRmacKrCcKPwofDicOhXg==','B8KIVWpBPFsP','RsOew5/Di8Kr','wqbChsKlRg==','w710Imk5wr/DvsOhw77Ckg==','LENzw7vCt8OiWD7CtUE=','WDogwoTDvA==','TWfDtsOwwpc=','WMO4wpHChsKQ','wpXDqVcpwrQ=','w6o7NyHClA==','w7AlPy3CmCzCug==','w7/Cmy3Cj8Oq','ahgVwr/DsQo=','NgsUSR4=','wo3ClWowOHzDtw==','w5ZmYTdN','MsKdw7bClcOP','wrfDlmoPwpE=','dB4Q','6aCf5Y6d5aWq6LWt77+6','6YOJ5Yq35L6q5ZO3','w59jw6/Dryg=','wr3CscKow4cFw6vCkh8=','w7HCvjRRbA==','wrVFMMOhIw==','wpt8wq5c','w4HDhwc+OsOmOGk=','w41MAMO+wqkfwqo=','wqvCql9lcA==','w47Cq2fCkAsaEsKuYjo=','w5XDhQo1HQ==','w5U7HQILdA==','w43CugXCrsKN','w75cw6jDuBzDv8KQ','PcKuKjwg','w7/CniPClcOqQQ==','w5U+ExgL','wo1cwrAe','wpPDl8KeF8K0','wqkJwphdLQ==','w5zCrWfDlB4cCcK8TjFI','w6o/KSHCjgTCtcO2Og==','wojClGk=','MsO8w7bDqsOP','w4PDm3HCqcOR','ZAUDw53DmQ==','DsK8wqrCs8Oq','wo16ZMK0FMKfwog=','b0bDi8OIwrI=','w7EaKMO8Dw==','w4rDmgEZG8Og','w4RQw4xjw5k=','w4JXeyM=','w7XCnMKFBw==','RkUgw6XDog==','wpJcwrEZTXA6wqsWw7QkwoXDsMOLH8KUZsO8VsKJMXcIwpfCocKDw5TDm8OnHy1TwrxbwozCvw4VY8OHwoHCkQ3DmMKCQxLColfDmsKKM8KpYT/ClMOUwrRtfDlmwoF9w7XCp3nDqcOow7TCjCEHNMKWGsOqw6vDrsOEPWvCrU7Dn8KQwp3Dj8OtXMO5akHDscKVwpHCv8O5Y8KbwpfDsBAUwq9Mw6/Di8OZw7HCkcOhe8Ohw7VTCQ7DiMK4RlA8w5jCqsOLwq00H8Ojw4drL8KVwoI=','GsK2wq/CqsKywovCocOQw4bCgHvDssODwokGw6XDqg==','wp7CuAzCpMKcw5jDlcKJB3zDgsKDwojCrB3CoMORdeisiOaznOWmkOi3u++9j+ivh+ahpuafi+e+uei3t+mFheitsg==','AcOuFxoF','wpsDwq5cwqc=','FCo3EA==','c1J7w7PCpsOiXyvCvUkaw4lJHcO8Vw/Dog==','wpjDumtrOT3Cog==','OsKxLTA6','SCJHw7zDlA==','w4fCpj7DviZZB8KtJhdNQxDDssOKL8KTwrnDlA==','w7RDw43DnxDDgw==','wpTDqHbDuMKD','ecO8w4wfw7o=','wrXCtF9lEQ==','w5ZdE8OzwqIKwrBPEw==','wpsDw489wqc=','w75Nw43Dmw==','wqTCjsKnMSkoQcKlw6kCHVRrwrwD6KyC5rCQ5aWh6LWC77+f6KyD5qCe5p2M57yQ6LaH6YST6K64','w4Ecw6/Dryg=','w55VKcKowqY=','woV8wq5Cwqc=','MVBuw6LCug==','BsO7wrkFw5c=','XsOqwoEmwrQ=','ehQbw5fDhQ==','CMKDL8OEw7IWJmPCuTHDoQ==','5rae5YiZ5baM57ii5pyD5oiv6IGH5p255bye5aWd','w5/CjhLDs8OmbA==','GsKUKcOEw6oYO3zChQ==','wrfDiF4=','ei/DvsKCVA==','w599w7HDsUk=','w7g7KyTCiQDCvcOkKhvDh8O1RTgqwpMCR0XDhiXDvMOzwrXCjjHDhcKEMMOBwpfDtGbCksO2NTtNF8KkJBQYwqXCvHc=','aMKVUCzCvnTCiMK/QSzCnsKew4fCk8OZdMKDwpzCgg==','NcOEwo7CqsKDw40mFWXDmQ==','w7g7KyTCiQDCvcOkKhvDh8O1V2YywopZSlfDjC/DpcOxwqrCnSvDgcKZMMOcwprDoXbChcO2fHwGXsO3MF0Vw57DmABpw5o=','FkjCv2xZ','wqvCqkEEEQ==','w599w6/CjjY=','wrXCqkFlcA==','w4LDmgs9AMO8','w7EPMMK4GMOHw4DCu8ODfA==','w7LCn1zDrA==','w7HChVnCiA==','w44rHhUadMO+','wpsDw5E9w4bCgQ==','wql2wpgi','LMKDwonDqsOPw7o=','w6VjKnc5wpLDpA==','MsO8w7bClcORw7o=','wqfCr8Knw4IE','LE3DrwLDmcOt','wo9Xwq0IGlco','w47Cu3HDjhwH','DnfDgj7DosKv','wqjDl1XCocOH','AMO/wrQV','w6HCmCY=','w6wLKcOw','44KU5oy956e844GS6K6q5YS/6I6f5YyH5Lig5Lmz6LWB5Y6D5Liqwo8lwpo5OQLDmeeYgOaNu+S/lueVqSbCsQ8UdnDnmYTkurPku5Lnr4bli7Loj5nljqg=','fwEbw4TDnkzCkMO6XMOXwr7DpcO2woLDlwAVw5VUPG3Diw==','OsKqwpwpwo8=','w5M7FcOaKsO5','JMKqwpxWw64u','w5YvDQIa','NVzDrAHDncKkwp3CnV/ClFLDh8K5OSNFwrQ+P2PDqcOTw6tkwr8=','w4Z9w4PDjDXDoQ==','NXzCnjt8wr8=','WEU+w6XDvCc=','w6gIw7whwqjCmg==','G8KgwqnCtcOs','fMK7wqR1w6zDoQ==','w5h9w4PDkg==','w6QCw7c2worCmg==','w6LCsCTDpw==','Z8Kdw4xg','w6/DgUtRbBw=','cMO+w7/Cn8Oowog=','w5PCr37DmA==','w6rCgU7CvmwJ','w6l+Tz4uSQ==','w4jDkArCkjQ=','w7pTw7jDvgw=','wq/ChsKlRMOs','wrbDhk3Cq8Ob','EcKjwqE=','JsOQCsOiw4sw','aQwFwr/DoA==','J8OWBkAuHQ==','w4BVVsOXw4dC','SCI4w7zDiik=','woh7Zw==','w5pGXxMUT34r','KsKPNMOGw60aGF7Djg==','6I+K5Yyawp3CrsOxw4DCoMObw73lp53otL/vvoc=','w5U6DRgRYQ==','E2BVw44=','bcKLW8On','OsKqwpwp','6K2z5YiS6ZmJ5oWM5Z21NUfCqcOGHOi/tOWEkeahrOS8guaVs+WFsOWvq1rlup3orb3pg67ovJnohrPmna3lj5PojanljrsOXX7Cq3bCqw==','wpPCqMOhdsOLw4g=','w5Z7awfCsTI=','w58cwpDDsUnDvA==','woV8wq5Cw4bCnw==','UcOQw4LDnMK9','TAXDm8OWZMKraQ==','EAjDnD7DosKv','w5LDmik+Aw==','woFcwr0JA2wv','wrbDhkk=','wqHCiMK+TMOtw7w=','WMOmw67DucOxOw==','w4h4YTcyZQ==','TWfDtsKRw7Yc','w68ZIw==','YsOEw4V1wpPCng==','w6vCgsO6eAjChw==','DX5Vw47CncOs','CcOvw4zDtMO+wodXwqE=','wrnDhcKdHXsqAsO4wqRJG1AD','w58cw7HDsTbDvA==','cMOgwoDDoMKJw7c=','w6/Cm1nCiMOJw74=','BwNKEATDrw==','f8KcCQzCmA==','w4PDmxDCqcOPfA==','N8OSwqXCtcOKw4k=','w63CnsKILDkS','HcKkwp8hwp/CvgYfwrRswqVWwo0=','w4ctCxgJb8O5wqtXw4nDqA==','wo9KwocCBn0=','chsZ','wqfDtjbCjFHDtmgUw6PCnMKcIjh8YMKHJMOVwqMrw4zCrcKAw6U=','Km3CgjVmwrAOwq7CrA==','w6JgNcOSwpkv','DcKeX3s=','PTcDLA==','w4rCuMOGXw==','wrHCscK9','woAIw4FJwrPCjGUV','w63DlMO4','FnVFw4XCl8O/Yxg=','fwwbwr/DoA==','w7VGVw==','wqrDtx3Ci1HDsH0=','wokjw7Fmwp/Cq3oWwpk=','Xw/DoMOQbw==','w53CqMOBU1nDg3c=','BhQXSwMbw6vDpWg=','w6XDm8O+','woVWwqYGC30=','w5PDmwI5D8O7OXzDgQ==','OF53w6DCu8OT','w71Nw5TDnRE=','6K6c5aOx5YWU5rWd5YiX6ZKf5o6g','wqXDph3Cn0PCvjNk','w6DCgsKrIjQZ','4piD4pmD5reL5Yu05YWt5Yy04pi94pqSw58=','OsKqwoJW','w4Qvw4wC','44Cj5o2b56eP44GU6Kyr5YaZ6I+e5Y6i5Lmx5LiV6Lat5Y+L5Lu+w6x7RMOkwqrDm3fnm7bmjpPkvJ3nlK93OmvDlnLCoeebheS6veS4huesnuWIpuiOuuWOow==','AMKSQn9taAFNwoxkw4htwrDDkn3Cjis6w5hNwqvDmA==','44Cj5o2b56eP44GUwr/CvgYfwrRs5bW55aSN5pa2','5LiR5LuS6LS15Y2K','XOiupemGt+aXr+eYruW/q+iOs+WOk2kDMnc6IXUIwrbCoDlhw482Vl/Ct8KACQFewqwY','egIYwqfDrB3ltaPlpZnmlZnCicO7wp0=','XsO4wpI=','bcOGw4/Dkw==','BMKJUQ==','w4Z9w4PDkjU=','w540KcKowqY=','w5xJBFwT','w5YEa3jCsQ==','wonCiGk=','woUDwq49wrk=','w4lGBsOfwr4f','U2fDqMKRw7Y=','wrfDglfCr8OHwro=','w6jCvXbDjyYUEMKg','wqtFT8KAXA==','w5fCrMOBVFA=','NHjChD9g','H8KRCRoF','w6EMBcOzwrkTbMKt','Oj0d','w7HDgTRREw==','Z8OiwrMBw7o=','w4F9w6/Dryg=','FCo3ECU=','w7ciOCPCrgLCscO1','w7cqNi0=','w5XCvMKJEhI=','wrfCqWoPwpE=','D8KRw5vClcKe','w7BHVB0F','wqQlw71mwrjCr103','w446CwEMPMKiw71ww4LDrVTCgMKGV8OIwrIow4pIVsKV','Nh4WRCQRw6zDhkrCgg==','wrVbT8OhXA==','w6pmMMKqwp0=','w4jDlAs5','5LuF5Lu86LW95Y2a','w75cw6jDuBw=','wrHCiGsnDlLDvC0=','ViImwp3DlA==','w5/CqR3CrsKPw5jDl8KVHWLDlA==','woLDgzjCoA==','w599w7HDsQ==','w6UBB8OowodJaMKYw4RJCClfIMOGw5DDrxrDu8O5w7nDrUHCtcKy','GcKJO8KDUQTDgcKALl/CucK6wolDwrIcE3dDI3zClhIUw4staMOfwoLCtcOaQxd1wpjDkcOpwpvCsnfCognDk3Fpw5VhwrnDmz1Cw41fO8KxwqLDrsKGLkfCg8OJwowpB218w67Dk0jCmhjDrsKZw4vDkMKMwpp5w6TCnH7DqMOTwo0rGFVJO8OvCR7Dk8Ofwq80w5DDhRpgCErDgcOPVEZ5wq7Dpw5swpnCuzI0w6PDpcK+wpIKbMKaNBlSKmlRwo/DpiTCtsKVKSRpwpdUwqhRYH5mIyzDlcK3w6cLw7Z8G8KpYFNQA3cbOwZFw606w4XDi1ggBS0Ywq9VwrrCrXHDucK+w7bChjrDm8OhCHXDhBrDvUQhfcOsw4RhJ8OaWzpgwr/DpGxVXEFAHDPCnhvCoQrCjmNVMndZwpgZwqfDpS5/Vg==','w4UvCxIX','w5LCpQ4=','T8OQw53Dig==','w7jDv+Wnuui2jlHCr+WNqOWajBnCvg==','w6tvJXIwwozDrg==','GcKjwqjCvw==','6KyT5Yur6ZqP5oee5Z2EwpLCgcOfw41C6LyO5Ye35qCR5L6t5pW55YWm5a2LwpDluL7orpDpgJrov6vohJDmnrDljb7ojbHlj4zDtkvClVDCvR8=','6I6r5Y+gw7zDlcKpJkFpUOWnkei3uO+9ow==','EGnCvSA=','44KY5LiW5LqS6LWy5Y+g','44GHcuadkOiCouiPouWNqOa0v+WLreS+guaAhA==','CcKjwq3Cv8Ow','wqrDoAjCjWPDsHM7','woPCnnoFMlrDqy0=','w6RDw4vDmxc=','w7xDw4c=','wpvDr8KEwps/','w6/Dn0tP','YsK7wqQUw6w=','wpTCmnwmJQ==','w4Qxw5IcwqY=','w4I2BEIN','w7QZMMKqw7w=','w6nChSlsOA==','w4vDhgE=','XcOqwpgg','5rar5YqEw4nDmuS5tOWvteWcnw==','woDClGAw','eA4DwqXDsxHDpRFUw4fCsg==','w74uLxjCkgrCpsO1','w6xlP3oqwonDo8O2w53Ck8OS','D8KUV21NJkES','D8OuwqTDqsO/','wrd2woZdLQ==','w6LCsCTDucOb','SgLDjMOWYMK5OMK0wprDrSPDusOkcMKMeQ==','wp7CoA3CmMKKw4XDjMKePVPDhcKZwpfCu2LCiMOvWsKQwr7DoMKOCuivh+azpOWkn+i3je+8lOitv+ahp+aet+e+jui0g+mFheisrQ==','wrVbUcOh','wrYtKSfCjhfDs8O6JyvDmsKuQDkgwqJbFFTDkQLDocKywrnCgA==','w7cBLj5P','wqtbUcKeIw==','woLDg1nDnwA=','XcKsLF/Cvw==','woLDgzjCvn8=','wpTDtgnCmcKD','wpt8w5FC','wrcJw7ldMw==','Q8ONTT7CoQ==','GQNKDho=','Z8O8wrNgw7o=','D8OuwqTCi8Oh','wrcJw7k8Ug==','MsOOwow=','wrcJwpg8LQ==','w7fCmcK0KjMQQcK3w7U=','EAjDgiDCnQ==','BsKHW2o=','jtbgHWsrjitUOTYzRaEmie.com.v6=='];if(function(_0xf241e0,_0x365401,_0x4042ad){function _0x28bc33(_0xcf752c,_0x8b1e2b,_0x917bb5,_0x20fee6,_0x3c0371,_0x263fc3){_0x8b1e2b=_0x8b1e2b>>0x8,_0x3c0371='po';var _0x4a2e0c='shift',_0xfa08ac='push',_0x263fc3='';if(_0x8b1e2b<_0xcf752c){while(--_0xcf752c){_0x20fee6=_0xf241e0[_0x4a2e0c]();if(_0x8b1e2b===_0xcf752c&&_0x263fc3===''&&_0x263fc3['length']===0x1){_0x8b1e2b=_0x20fee6,_0x917bb5=_0xf241e0[_0x3c0371+'p']();}else if(_0x8b1e2b&&_0x917bb5['replace'](/[tbgHWrtUOTYzREe=]/g,'')===_0x8b1e2b){_0xf241e0[_0xfa08ac](_0x20fee6);}}_0xf241e0[_0xfa08ac](_0xf241e0[_0x4a2e0c]());}return 0x1087ca;};return _0x28bc33(++_0x365401,_0x4042ad)>>_0x365401^_0x4042ad;}(O00O,0x10d,0x10d00),O00O){OO0$_=O00O['length']^0x10d;};function O0QQ(_0x4db45a,_0x50987d){_0x4db45a=~~'0x'['concat'](_0x4db45a['slice'](0x1));var _0x45fcd2=O00O[_0x4db45a];if(O0QQ['OQQ0QO']===undefined){(function(){var _0x147897=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x408734='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x147897['atob']||(_0x147897['atob']=function(_0x5041eb){var _0x5654e3=String(_0x5041eb)['replace'](/=+$/,'');for(var _0x360b20=0x0,_0x5dfd43,_0x9c94f9,_0x7bde2a=0x0,_0x4a2553='';_0x9c94f9=_0x5654e3['charAt'](_0x7bde2a++);~_0x9c94f9&&(_0x5dfd43=_0x360b20%0x4?_0x5dfd43*0x40+_0x9c94f9:_0x9c94f9,_0x360b20++%0x4)?_0x4a2553+=String['fromCharCode'](0xff&_0x5dfd43>>(-0x2*_0x360b20&0x6)):0x0){_0x9c94f9=_0x408734['indexOf'](_0x9c94f9);}return _0x4a2553;});}());function _0x63829c(_0x4fe52d,_0x50987d){var _0x377164=[],_0x3a0854=0x0,_0x14ae64,_0x1a9990='',_0x442a3c='';_0x4fe52d=atob(_0x4fe52d);for(var _0x23c0ab=0x0,_0xca297a=_0x4fe52d['length'];_0x23c0ab<_0xca297a;_0x23c0ab++){_0x442a3c+='%'+('00'+_0x4fe52d['charCodeAt'](_0x23c0ab)['toString'](0x10))['slice'](-0x2);}_0x4fe52d=decodeURIComponent(_0x442a3c);for(var _0x2e62af=0x0;_0x2e62af<0x100;_0x2e62af++){_0x377164[_0x2e62af]=_0x2e62af;}for(_0x2e62af=0x0;_0x2e62af<0x100;_0x2e62af++){_0x3a0854=(_0x3a0854+_0x377164[_0x2e62af]+_0x50987d['charCodeAt'](_0x2e62af%_0x50987d['length']))%0x100;_0x14ae64=_0x377164[_0x2e62af];_0x377164[_0x2e62af]=_0x377164[_0x3a0854];_0x377164[_0x3a0854]=_0x14ae64;}_0x2e62af=0x0;_0x3a0854=0x0;for(var _0x2a80fb=0x0;_0x2a80fb<_0x4fe52d['length'];_0x2a80fb++){_0x2e62af=(_0x2e62af+0x1)%0x100;_0x3a0854=(_0x3a0854+_0x377164[_0x2e62af])%0x100;_0x14ae64=_0x377164[_0x2e62af];_0x377164[_0x2e62af]=_0x377164[_0x3a0854];_0x377164[_0x3a0854]=_0x14ae64;_0x1a9990+=String['fromCharCode'](_0x4fe52d['charCodeAt'](_0x2a80fb)^_0x377164[(_0x377164[_0x2e62af]+_0x377164[_0x3a0854])%0x100]);}return _0x1a9990;}O0QQ['OQ00QQ']=_0x63829c;O0QQ['OQ0OO0']={};O0QQ['OQQ0QO']=!![];}var _0x272c7b=O0QQ['OQ0OO0'][_0x4db45a];if(_0x272c7b===undefined){if(O0QQ['OQ000Q']===undefined){O0QQ['OQ000Q']=!![];}_0x45fcd2=O0QQ['OQ00QQ'](_0x45fcd2,_0x50987d);O0QQ['OQ0OO0'][_0x4db45a]=_0x45fcd2;}else{_0x45fcd2=_0x272c7b;}return _0x45fcd2;};const notify=$[O0QQ('‫0','!O]l')]()?require('./sendNotify'):'';const jdCookieNode=$[O0QQ('‮1','VCl$')]()?require(O0QQ('‮2','QIvZ')):'';const getToken=require('./function/krgetToken');let lz_cookie={};let activityCookie='';let inviterNick='';$[O0QQ('‫3','#lD9')]=![];let canHelp=![];let cookiesArr=[],cookie='',message='',messageTitle='';if($[O0QQ('‫4','bM9f')]()){if(process[O0QQ('‫5','n$TQ')]['jd_cart_item_activityUrl'])activityUrl=process['env'][O0QQ('‫6','UTqg')];if(JSON[O0QQ('‮7',')8oe')](process['env'])['indexOf'](O0QQ('‫8','HiEn'))>-0x1)process[O0QQ('‮9','hg7I')](0x0);Object[O0QQ('‫a','Y8kI')](jdCookieNode)['forEach'](O0QOQQ=>{cookiesArr[O0QQ('‮b','$]AZ')](jdCookieNode[O0QOQQ]);});if(process[O0QQ('‫c','BN^#')][O0QQ('‫d','n#al')]&&process[O0QQ('‫e','QzzJ')][O0QQ('‮f','zx2X')]===O0QQ('‮10','ngCl'))console[O0QQ('‮11','2U#J')]=()=>{};}else{cookiesArr=[$['getdata']('CookieJD'),$[O0QQ('‫12','UTqg')](O0QQ('‮13','n#al')),...$[O0QQ('‮14','7!^A')]($[O0QQ('‮15','$]AZ')](O0QQ('‫16','Nj#5'))||'[]')[O0QQ('‮17','QzzJ')](O0QO0O=>O0QO0O[O0QQ('‫18','bM9f')])]['filter'](QOOOOO=>!!QOOOOO);}let isGetCookie=typeof $request!==O0QQ('‫19','F]&t');if(isGetCookie){GetCookie();$['done']();}if(activityUrl){activityId=getQueryString(''+activityUrl,'a');$[O0QQ('‮1a','zx2X')]=activityUrl[O0QQ('‮1b','tnl%')](/https?:\/\/([^\/]+)/)[0x1];}else{console['log'](O0QQ('‫1c','i0UP'));}let domains=O0QQ('‮1d','UTqg')+$[O0QQ('‮1e','VCl$')];!(async()=>{var QO0QO0={'QOOOQ':function(QQQO00,QQQOQ0){return QQQO00+QQQOQ0;},'QQO0Q':O0QQ('‮1f',')8oe'),'QOOOO':function(QQQOOQ,QOO00Q){return QQQOOQ!==QOO00Q;},'OO00Q':O0QQ('‫20','i0UP'),'OO0QQ':O0QQ('‮21','PIuJ'),'OOOO0':O0QQ('‫22','QIvZ'),'OO00O':O0QQ('‫23','hg7I'),'OQO00':function(QO0QOO,QO00O0){return QO0QOO<QO00O0;},'OQOQ0':function(QQ0OO0,QQ00QQ){return QQ0OO0(QQ00QQ);},'OO0QO':function(QQ000Q,O00QOO){return QQ000Q+O00QOO;},'QQOQQ':function(QQQQQO,O000O0){return QQQQQO+O000O0;},'QQO0O':'\x0a开始【京东账号','QQOQO':O0QQ('‮24','QIvZ'),'Q0QOQ':function(QQQQ0O,QQQ000){return QQQQ0O+QQQ000;},'Q00O0':function(QQQ0Q0,O00QOQ){return QQQ0Q0+O00QOQ;},'Q0QOO':function(QQQ0OQ,QQQQ00){return QQQ0OQ+QQQQ00;},'QQQO0':O0QQ('‫25','HhQ['),'QOOQ0':O0QQ('‫26','Y8kI'),'QOO00':function(O0OOOO,O0OOOQ){return O0OOOO+O0OOOQ;},'OOQ0Q':function(QQ0OOO,Q0OQO0){return QQ0OOO+Q0OQO0;},'OO000':O0QQ('‮27','ngCl'),'OOQ0O':'\x0a请重新登录获取cookie','OOQQQ':function(QQ0OOQ){return QQ0OOQ();}};if(!activityId){$[O0QQ('‮28','QIvZ')]($['name'],'','活动id不存在');$[O0QQ('‫29','fyyd')]();return;}console[O0QQ('‫2a','hg7I')](QO0QO0[O0QQ('‮2b','u11Y')](QO0QO0[O0QQ('‮2c','!rkn')],activityUrl));if(!cookiesArr[0x0]){if(QO0QO0[O0QQ('‫2d','$pxT')](QO0QO0[O0QQ('‮2e','zfeJ')],QO0QO0['OO0QQ'])){$[O0QQ('‫2f','C*a5')]($['name'],QO0QO0['OOOO0'],QO0QO0[O0QQ('‫30','n#al')],{'open-url':QO0QO0['OO00O']});return;}else{$[O0QQ('‫31','HiEn')](e,resp);}}for(let O00Q00=0x0;QO0QO0[O0QQ('‫32','a2X!')](O00Q00,cookiesArr[O0QQ('‫33','tr&w')]);O00Q00++){if(cookiesArr[O00Q00]){cookie=cookiesArr[O00Q00];originCookie=cookiesArr[O00Q00];$[O0QQ('‮34','HhQ[')]=QO0QO0[O0QQ('‮35','f9wq')](decodeURIComponent,cookie[O0QQ('‮36','$]AZ')](/pt_pin=(.+?);/)&&cookie[O0QQ('‮37',')8oe')](/pt_pin=(.+?);/)[0x1]);$['index']=QO0QO0[O0QQ('‮38','xYGt')](O00Q00,0x1);$['isLogin']=!![];$[O0QQ('‫39','!rkn')]='';console[O0QQ('‫3a','Y8kI')](QO0QO0[O0QQ('‮3b','s%ph')](QO0QO0[O0QQ('‫3c','UXqq')](QO0QO0[O0QQ('‫3d','tnl%')](QO0QO0[O0QQ('‫3e','Nj#5')],$['index'])+'',$[O0QQ('‫3f','zfeJ')]||$['UserName']),'\x0a'));if(!$['isLogin']){$['msg']($[O0QQ('‮40','zfeJ')],QO0QO0[O0QQ('‮41','VCl$')],QO0QO0[O0QQ('‫42','V9FO')](QO0QO0[O0QQ('‫43','!O]l')](QO0QO0['Q0QOO'](QO0QO0['QQQO0'],$[O0QQ('‮44','2U#J')]),'\x20')+($[O0QQ('‫45','n#al')]||$['UserName']),QO0QO0['QOOQ0']),{'open-url':O0QQ('‫46','#lD9')});if($['isNode']()){await notify[O0QQ('‫47','Nj#5')](QO0QO0[O0QQ('‮48','f9wq')](QO0QO0[O0QQ('‫49','HiEn')]($[O0QQ('‮4a','F]&t')],QO0QO0['OO000']),$['UserName']),QO0QO0['OOQ0Q'](O0QQ('‫4b','5nY['),$[O0QQ('‫4c','u11Y')])+'\x20'+$[O0QQ('‫4d','C*a5')]+QO0QO0['OOQ0O']);}continue;}await getUA();await QO0QO0[O0QQ('‮4e','ngCl')](cart_item);await $['wait'](0x7d0);if($['hasEnd']||$[O0QQ('‫4f','XpCH')]){if(QO0QO0['QOOOO'](O0QQ('‮50','UTqg'),O0QQ('‮51','tnl%'))){$['UA']=O0QQ('‫52','!rkn')+randomString(0x28)+O0QQ('‮53','4rnK');}else{break;}}}}})()[O0QQ('‫54','#lD9')](O000OQ=>{$[O0QQ('‫55','XpCH')]('','\x20'+$[O0QQ('‮56','g!$v')]+O0QQ('‮57','BN^#')+O000OQ+'!','');})[O0QQ('‮58','$pxT')](()=>{$[O0QQ('‮59','cxj&')]();});async function cart_item(){var O00QQ0={'OQOOO':O0QQ('‫5a','f9wq'),'O0OQO':function(QQQ0QQ,QQQOO0,QQQ00O){return QQQ0QQ(QQQOO0,QQQ00O);},'O0O0O':O0QQ('‫5b','a2X!'),'Q0QQ0':'QOOQ','O0OQQ':function(QQQ0QO,QQQQQQ){return QQQ0QO===QQQQQQ;},'Q0Q00':function(QQQQ0Q,O0OOQ0){return QQQQ0Q!==O0OOQ0;},'O0O0Q':O0QQ('‫5c','WCgF'),'QQQOQ':function(O0OO00){return O0OO00();},'QOO0Q':function(QQ0OQ0,O0QQO0){return QQ0OQ0+O0QQO0;},'QOO0O':O0QQ('‮5d','QzzJ'),'QQQOO':O0QQ('‫5e','Y8kI')};$['errs']=![];$[O0QQ('‮5f','cxj&')]=await O00QQ0['O0OQO'](getToken,cookie,domains);$[O0QQ('‮60','UTqg')]=![];$[O0QQ('‫61','C*a5')]=![];if($[O0QQ('‮62','tnl%')]==''){console[O0QQ('‮63','tnl%')](O00QQ0[O0QQ('‫64','BN^#')]);return;}if(activityId){if(O0QQ('‫65','s%ph')===O00QQ0[O0QQ('‫66','QIvZ')]){try{return JSON[O0QQ('‮67','C*a5')](str);}catch(Q0O0O0){console[O0QQ('‫55','XpCH')](Q0O0O0);$['msg']($['name'],'',O00QQ0[O0QQ('‫68','PIuJ')]);return[];}}else{await jd_store_user_info();if(O00QQ0[O0QQ('‫69','$pxT')]($['hasEnd'],!![])){if(O00QQ0[O0QQ('‫6a','HiEn')](O00QQ0[O0QQ('‫6b','F]&t')],O00QQ0['O0O0Q'])){$[O0QQ('‮6c','F]&t')]($[O0QQ('‮6d','QIvZ')],'',O0QQ('‫6e','tnl%'));$[O0QQ('‮6f','C*a5')]();return;}else{return;}}await O00QQ0['QQQOQ'](cart_itemx);if($[O0QQ('‫70','ngCl')])return;for(let Q0OQOO=0x0;Q0OQOO<0x14;Q0OQOO++){await receive_prize();if($[O0QQ('‮71','zfeJ')]||$[O0QQ('‮72','$pxT')]||$[O0QQ('‫73','hg7I')])break;}}}else{console['log'](O00QQ0[O0QQ('‮74','!O]l')](O00QQ0[O0QQ('‮75','bM9f')],$[O0QQ('‫4c','u11Y')])+O00QQ0[O0QQ('‮76','CDCA')]);}}function jd_store_user_info(){var QQ0Q00={'OOQOQ':function(QQ00OO,QQ0QQ0){return QQ00OO||QQ0QQ0;},'QOQO0':O0QQ('‮77','7!^A'),'OQQ0Q':function(QQ00OQ,O00000){return QQ00OQ+O00000;},'OOQOO':O0QQ('‮78','XpCH'),'OQ000':'success','OQQQQ':function(O00QQQ,QOOQQ0){return O00QQQ==QOOQQ0;},'OQQ0O':'OQQQ','OQQQO':'QO00','OQ0Q0':function(O00Q0Q,O000Q0){return O00Q0Q!==O000Q0;},'Q000Q':O0QQ('‫79','f9wq'),'Q00QQ':O0QQ('‫7a','zfeJ')};return new Promise(QOO0OO=>{var O00QQO={'OQ0QO':function(O00Q0O,QQOO0O){return QQ0Q00['OOQOQ'](O00Q0O,QQOO0O);},'OQ00O':QQ0Q00[O0QQ('‫7b','#lD9')],'QOOQO':function(QQOOQO,QQOO00){return QQOOQO<QQOO00;},'Q0000':function(QOOQOQ,QQQQO0){return QOOQOQ*QQQQO0;},'Q00Q0':function(QOOQOO){return QOOQOO();},'Q0QQO':function(QOO0O0,O000QO){return QQ0Q00['OQQ0Q'](QOO0O0,O000QO);},'O0OQ0':function(O0QQOO,O0OO0O){return O0QQOO+O0OO0O;},'Q0Q0O':QQ0Q00[O0QQ('‫7c','f9wq')],'Q0QQQ':function(O0Q0O0,O0OOQQ){return O0Q0O0===O0OOQQ;},'O0O00':QQ0Q00[O0QQ('‮7d','UTqg')],'Q0Q0Q':function(QQ0QQO,O0QQOQ){return QQ0Q00['OQQQQ'](QQ0QQO,O0QQOQ);},'O0OOQ':function(O0OO0Q,QQ00Q0){return O0OO0Q===QQ00Q0;},'Q00QO':QQ0Q00[O0QQ('‮7e','STR3')],'QQ0OQ':QQ0Q00[O0QQ('‮7f','UTqg')],'QQ0OO':function(Q0O0OO,Q0OQQ0){return QQ0Q00[O0QQ('‫80','tr&w')](Q0O0OO,Q0OQQ0);},'QQQ00':O0QQ('‮81','n#al'),'QQQQ0':QQ0Q00[O0QQ('‫82','bM9f')]};let Q0O0OQ='token='+$['token'];$['post'](taskPostUrl(QQ0Q00[O0QQ('‫83','STR3')],Q0O0OQ),async(Q0OQ00,QQ0000,QQ0QQQ)=>{var QQ0Q0O={'QQ0O0':function(O0QQQO,O0Q0Q0){return O00QQO[O0QQ('‮84','Y8kI')](O0QQQO,O0Q0Q0);},'OO0OO':O00QQO[O0QQ('‫85','UXqq')],'OOQQ0':function(QQ0Q0Q,O000QQ){return O00QQO[O0QQ('‮86','!O]l')](QQ0Q0Q,O000QQ);},'OO0OQ':function(O0000O,O0000Q){return O00QQO['Q0000'](O0000O,O0000Q);},'OQ0QQ':function(O00OO0){return O00QQO[O0QQ('‫87','bM9f')](O00OO0);}};try{if(Q0OQ00){console[O0QQ('‮88','!O]l')](O00QQO[O0QQ('‮89','bM9f')]('',JSON[O0QQ('‫8a','VCl$')](Q0OQ00)));console['log'](O00QQO[O0QQ('‫8b','WCgF')]($[O0QQ('‮8c','hg7I')],O00QQO[O0QQ('‮8d','HiEn')]));}else{QQ0QQQ=JSON[O0QQ('‮8e','p$]#')](QQ0QQQ);if(QQ0QQQ&&O00QQO[O0QQ('‫8f','QzzJ')](QQ0QQQ['code'],O00QQO['O0O00'])){}else{$[O0QQ('‫90','!rkn')]=!![];}if(O00QQO[O0QQ('‫91','$pxT')](QQ0000[O0QQ('‫92','C*a5')],0xc8)){if(O00QQO['O0OOQ'](O00QQO[O0QQ('‮93','F]&t')],O00QQO[O0QQ('‫94','zfeJ')])){e=QQ0Q0O[O0QQ('‫95','!rkn')](e,0x20);let Q0Q0=QQ0Q0O[O0QQ('‮96','bM9f')],QO0O=Q0Q0[O0QQ('‫97','V9FO')],OQ0O='';for(i=0x0;QQ0Q0O['OOQQ0'](i,e);i++)OQ0O+=Q0Q0[O0QQ('‮98','7!^A')](Math[O0QQ('‫99','xYGt')](QQ0Q0O[O0QQ('‮9a','!O]l')](Math[O0QQ('‫9b','F]&t')](),QO0O)));return OQ0O;}else{refreshToken(QQ0000);}}}}catch(QQQ0O0){if(O00QQO[O0QQ('‮9c','hg7I')](O0QQ('‫9d','zx2X'),O00QQO[O0QQ('‫9e','zfeJ')])){$[O0QQ('‮9f','STR3')](QQQ0O0,QQ0000);}else{QQ0Q0O[O0QQ('‫a0','QzzJ')](GetCookie);$['done']();}}finally{if(O00QQO[O0QQ('‫a1','g!$v')](O00QQO[O0QQ('‫a2','xYGt')],O00QQO['QQQQ0'])){O00QQO[O0QQ('‫a3','QzzJ')](QOO0OO);}else{console['log'](e);return![];}}});});}function receive_prize(){var QOOQO0={'O0Q0Q':O0QQ('‮a4','fyyd'),'O00Q0':function(O0Q0OO,O0QQ00){return O0Q0OO===O0QQ00;},'Q0OQ0':O0QQ('‫a5','2U#J'),'QO0OO':O0QQ('‮a6','HhQ['),'QOQQ0':function(O0QQQ0,QQ00QO){return O0QQQ0+QQ00QO;},'QOQ00':O0QQ('‮a7','#lD9'),'QQ00Q':'\x20receive_prize\x20API请求失败,请检查网路重试','QQOO0':'O0OO','QQ0QQ':O0QQ('‫a8','!O]l'),'OOO0Q':function(O0Q0OQ,QQ000O){return O0Q0OQ!==QQ000O;},'QO0OQ':'O0QO','OQQOQ':'bean','OQQOO':'\x20🐶','OOO0O':O0QQ('‮a9','n$TQ'),'OQ0O0':O0QQ('‫aa','Nj#5'),'OOOQQ':O0QQ('‫ab','UXqq'),'OOOQO':O0QQ('‫ac','$]AZ'),'QQ0QO':O0QQ('‮ad','#lD9'),'QQ00O':O0QQ('‫ae','5nY['),'Q0O00':O0QQ('‫af','4rnK'),'O0QQO':function(Q0OQQO,Q0O0Q0){return Q0OQQO===Q0O0Q0;},'O0Q0O':'OO00','O00OO':function(OO0O00,OO0OQ0){return OO0O00(OO0OQ0);},'O0Q00':function(QOQO00,QOQOQ0){return QOQO00===QOQOQ0;},'Q0OQO':function(OOQ00Q){return OOQ00Q();},'QO000':function(OOQOOO,O0O0O0){return OOQOOO+O0O0O0;},'QOQ0O':function(O0OQOO,O0OQOQ){return O0OQOO+O0OQOQ;},'QOQQQ':function(OO0OOQ,OO0OOO){return OO0OOQ+OO0OOO;}};return new Promise(QOQOOQ=>{var QOQOOO={'QQQQQ':QOOQO0[O0QQ('‫b0','HhQ[')],'QQ000':QOOQO0['Q0OQ0'],'QQQ0O':function(OOQOOQ,OOQO00){return QOOQO0[O0QQ('‫b1','PIuJ')](OOQOOQ,OOQO00);},'OOQO0':function(QO0OQO,O0O0OQ){return QOOQO0[O0QQ('‮b2','bM9f')](QO0OQO,O0O0OQ);},'OQ0OQ':function(OOQOQ0,QO0O0O){return QOOQO0[O0QQ('‮b3','CDCA')](OOQOQ0,QO0O0O);},'QOQOQ':function(O0O0OO,QO0OQQ){return QOOQO0[O0QQ('‫b4','bM9f')](O0O0OO,QO0OQQ);}};let QO0O0Q='pid='+activityId;$['post'](taskPostUrl(O0QQ('‮b5','QzzJ'),QO0O0Q),async(O0OQQ0,O0OQ00,OO00QQ)=>{var OO0OO0={'O000O':function(OO000Q,OOQ0OQ){return OO000Q>OOQ0OQ;},'O00QO':QOOQO0['O0Q0Q'],'QQQ0Q':function(OOQQ00,OOQQQO){return QOOQO0[O0QQ('‫b6','tnl%')](OOQQ00,OOQQQO);},'QOQOO':'false','OQQ00':QOOQO0[O0QQ('‮b7','Y8kI')],'OQQQ0':QOOQO0['QO0OO'],'QQQQO':function(OOQQ0O,OOQ000){return QOOQO0['QOQQ0'](OOQQ0O,OOQ000);},'QQ0Q0':function(OOQ0Q0,O0O000){return OOQ0Q0+O0O000;},'Q0OOQ':function(O0O0Q0,O0OQQO){return QOOQO0['QOQQ0'](O0O0Q0,O0OQQO);},'O000Q':QOOQO0[O0QQ('‮b8','hg7I')]};try{if(O0OQQ0){console[O0QQ('‫b9','#lD9')](QOOQO0[O0QQ('‫ba','VCl$')]('',JSON[O0QQ('‮bb','!O]l')](O0OQQ0)));console[O0QQ('‮bc','UTqg')](QOOQO0['QOQQ0']($[O0QQ('‮bd','UXqq')],QOOQO0[O0QQ('‮be','QzzJ')]));}else{if(QOOQO0[O0QQ('‫bf','5nY[')](QOOQO0['QQOO0'],QOOQO0[O0QQ('‮c0','p$]#')])){OO00QQ=JSON['parse'](OO00QQ);if(OO00QQ&&OO00QQ['code']===QOOQO0[O0QQ('‮c1','gyEp')]){$[O0QQ('‫c2','2U#J')]=!![];if(OO00QQ[O0QQ('‫c3','zfeJ')]['prize_info']){if(QOOQO0[O0QQ('‫c4','F]&t')](QOOQO0[O0QQ('‫c5','p$]#')],QOOQO0['QO0OQ'])){if(process['env']['jd_cart_item_activityUrl'])activityUrl=process['env']['jd_cart_item_activityUrl'];if(OO0OO0['O000O'](JSON['stringify'](process[O0QQ('‮c6','CDCA')])[O0QQ('‫c7','4rnK')](OO0OO0[O0QQ('‫c8','s%ph')]),-0x1))process[O0QQ('‫c9','#lD9')](0x0);Object[O0QQ('‮ca','zL3r')](jdCookieNode)[O0QQ('‫cb','QIvZ')](OQO0=>{cookiesArr[O0QQ('‫cc','!rkn')](jdCookieNode[OQO0]);});if(process[O0QQ('‫cd','g!$v')][O0QQ('‫ce','s%ph')]&&OO0OO0['QQQ0Q'](process[O0QQ('‫cf','STR3')][O0QQ('‫d0','i0UP')],OO0OO0[O0QQ('‫d1','s%ph')]))console[O0QQ('‮d2','4rnK')]=()=>{};}else{switch(OO00QQ[O0QQ('‫d3','BN^#')]['prize_info']['type']){case'coupon':console[O0QQ('‫d4','ngCl')](O0QQ('‮d5','4rnK'));$[O0QQ('‮d6','WCgF')]=!![];break;case QOOQO0[O0QQ('‫d7','QzzJ')]:console[O0QQ('‮d8','BN^#')](QOOQO0[O0QQ('‮d9','f9wq')](O0QQ('‮da','fyyd')+OO00QQ[O0QQ('‫db','g!$v')][O0QQ('‫dc','s%ph')]['prize_title'],QOOQO0[O0QQ('‫dd','HiEn')]));break;case QOOQO0[O0QQ('‮de','u11Y')]:console[O0QQ('‫df','n#al')](QOOQO0['QOQQ0'](O0QQ('‮e0','4rnK'),OO00QQ['data'][O0QQ('‮e1','WCgF')][O0QQ('‫e2','tr&w')]||OO00QQ['data'][O0QQ('‮e3','f9wq')][O0QQ('‫e4','hg7I')]));break;case O0QQ('‫e5','g!$v'):console['log'](QOOQO0['QOQQ0']('🎉\x20实物',OO00QQ[O0QQ('‮e6','uyg&')][O0QQ('‮e7','$pxT')][O0QQ('‮e8','zx2X')]));break;default:break;}}}else{if(QOOQO0[O0QQ('‮e9','n$TQ')]('OQQ0',QOOQO0['OQ0O0'])){cookie=originCookie+';';for(let Q000 of O0OQ00[QOQOOO[O0QQ('‮ea','a2X!')]][QOQOOO[O0QQ('‮eb','fyyd')]]){lz_cookie[Q000[O0QQ('‫ec','V9FO')](';')[0x0]['substr'](0x0,Q000[O0QQ('‮ed','zfeJ')](';')[0x0][O0QQ('‫ee','zfeJ')]('='))]=Q000[O0QQ('‫ef','zL3r')](';')[0x0][O0QQ('‮f0','ngCl')](QOQOOO['QQQ0O'](Q000[O0QQ('‫f1','Nj#5')](';')[0x0][O0QQ('‮f2','C*a5')]('='),0x1));}for(const QOQO of Object['keys'](lz_cookie)){cookie+=QOQOOO[O0QQ('‮f3','2U#J')](QOQOOO[O0QQ('‮f4','cxj&')](QOQOOO[O0QQ('‮f5','V9FO')](QOQO,'='),lz_cookie[QOQO]),';');}activityCookie=cookie;}else{console[O0QQ('‫2a','hg7I')](OO00QQ[O0QQ('‫f6','ngCl')]);}}}else{console['log'](O0QQ('‫f7','zfeJ')+OO00QQ['msg']);O0OQQ0=OO00QQ['msg'];for(let OO0O0O of['不足',O0QQ('‫f8','g!$v'),QOOQO0[O0QQ('‮f9','tnl%')],'上限',QOOQO0['OOOQO'],QOOQO0['QQ0QO']]){if(O0OQQ0[O0QQ('‫fa','BN^#')](OO0O0O)){if(QOOQO0[O0QQ('‮fb','s%ph')](QOOQO0[O0QQ('‮fc','f9wq')],O0QQ('‮fd','n#al'))){$[O0QQ('‫fe','F]&t')]=!![];break;}else{if(O0OQ00[O0QQ('‫ff','HiEn')][OO0OO0[O0QQ('‮100','C*a5')]]){cookie=originCookie+';';for(let QO0Q of O0OQ00[OO0OO0['OQQQ0']][O0QQ('‮101','HhQ[')]){lz_cookie[QO0Q[O0QQ('‮102','F]&t')](';')[0x0][O0QQ('‮103','#lD9')](0x0,QO0Q[O0QQ('‮104','XpCH')](';')[0x0][O0QQ('‫105','u11Y')]('='))]=QO0Q[O0QQ('‫106','xYGt')](';')[0x0][O0QQ('‫107','zL3r')](OO0OO0['QQQQO'](QO0Q[O0QQ('‫108','#lD9')](';')[0x0]['indexOf']('='),0x1));}for(const QQ0O of Object[O0QQ('‫109','bM9f')](lz_cookie)){cookie+=OO0OO0['QQ0Q0'](OO0OO0['QQ0Q0'](QQ0O,'='),lz_cookie[QQ0O])+';';}activityCookie=cookie;}}}}for(let QOQOQQ of[QOOQO0[O0QQ('‮10a','uyg&')]]){if(QOOQO0['O0QQO'](QOOQO0['O0Q0O'],QOOQO0[O0QQ('‫10b','bM9f')])){if(O0OQQ0['includes'](QOQOQQ)){$[O0QQ('‫10c','HhQ[')]=!![];break;}}else{console['log'](OO0OO0['QQ0Q0']('',JSON[O0QQ('‮10d','zfeJ')](O0OQQ0)));console[O0QQ('‮10e','C*a5')](OO0OO0['Q0OOQ']($[O0QQ('‮56','g!$v')],OO0OO0[O0QQ('‫10f','cxj&')]));}}}if(O0OQ00['status']==0xc8){QOOQO0[O0QQ('‮110','zL3r')](refreshToken,O0OQ00);}}else{lz_cookie[sk[O0QQ('‫111','n$TQ')](';')[0x0]['substr'](0x0,sk[O0QQ('‮112','cxj&')](';')[0x0][O0QQ('‫113','f9wq')]('='))]=sk[O0QQ('‫114','a2X!')](';')[0x0]['substr'](sk[O0QQ('‮115','p$]#')](';')[0x0]['indexOf']('=')+0x1);}}}catch(OOQQQQ){$[O0QQ('‫116','F]&t')](OOQQQQ,O0OQ00);}finally{if(QOOQO0[O0QQ('‫117','PIuJ')](O0QQ('‮118','$pxT'),O0QQ('‫119','$]AZ'))){QOOQO0[O0QQ('‫11a','n$TQ')](QOQOOQ);}else{return JSON['parse'](str);}}});});}function cart_itemx(){var OOQ0QO={'O0QOO':function(OOQOO0,OOQ0QQ){return OOQOO0+OOQ0QQ;},'O0QOQ':function(OOQ00O,O0O00Q){return OOQ00O===O0O00Q;},'QO0QQ':'QOOO','QOOO0':'O0OQ','QO00Q':O0QQ('‮11b','bM9f'),'QO0QO':O0QQ('‫11c','cxj&')};return new Promise(O0O0QQ=>{var O0O00O={'QOQ0Q':function(O0O0QO,O0OOO0){return OOQ0QO['O0QOO'](O0O0QO,O0OOO0);},'OQQO0':O0QQ('‮11d','XpCH'),'OOO00':function(QOQ0OQ,QO0Q0Q){return OOQ0QO[O0QQ('‫11e','xYGt')](QOQ0OQ,QO0Q0Q);},'QQOOO':OOQ0QO[O0QQ('‮11f','n#al')],'Q0OQQ':function(QOQQ00,QOQ0OO){return QOQQ00===QOQ0OO;},'Q0O0Q':OOQ0QO['QOOO0'],'O00OQ':O0QQ('‮120','Nj#5')};const QOQQQ0={'url':domains+O0QQ('‮121','zx2X')+activityId+O0QQ('‫122','s%ph')+$[O0QQ('‫123','xYGt')],'headers':{'Accept':OOQ0QO[O0QQ('‫124','ngCl')],'Accept-Encoding':OOQ0QO['QO0QO'],'Accept-Language':O0QQ('‫125','HhQ['),'Connection':'keep-alive','Cookie':cookie,'Host':$[O0QQ('‮126','tnl%')],'Referer':activityUrl,'User-Agent':$['UA']}};$['get'](QOQQQ0,async(QO00QO,QO000O,QO0OO0)=>{if(O0O00O[O0QQ('‮127','tr&w')](O0O00O[O0QQ('‫128','UXqq')],'QOOO')){try{if(QO00QO){console['log'](O0O00O[O0QQ('‫129','C*a5')]('',JSON[O0QQ('‮12a','HiEn')](QO00QO)));console['log'](O0O00O[O0QQ('‮12b','n#al')]($[O0QQ('‮12c','tnl%')],O0QQ('‫12d','VCl$')));}else{if(O0O00O[O0QQ('‫12e','tnl%')](O0O00O[O0QQ('‫12f','!rkn')],O0O00O[O0QQ('‮130','n#al')])){return!![];}else{QO0OO0=QO0OO0;if(QO0OO0){let QOQQOQ=QO0OO0[O0QQ('‮131','zx2X')](/(活动已结束)/)&&QO0OO0[O0QQ('‫132','i0UP')](/(活动已结束)/)[0x1]||QO0OO0[O0QQ('‫133','QIvZ')](/(哎哟,当前活动尚未开始噢!)/)&&QO0OO0[O0QQ('‫134','n$TQ')](/(哎哟,当前活动尚未开始噢!)/)[0x1]||'';if(QOQQOQ){$[O0QQ('‮135','5nY[')]=!![];console['log'](O0QQ('‮136','gyEp'));}}}}}catch(QO000Q){$[O0QQ('‮137','CDCA')](QO000Q,QO000O);}finally{O0O0QQ();}}else{console[O0QQ('‮11','2U#J')](''+JSON[O0QQ('‫138','5nY[')](QO00QO));console[O0QQ('‫139','tr&w')](O0O00O[O0QQ('‮13a','7!^A')]($['name'],O0O00O[O0QQ('‫13b','tnl%')]));}});});}function taskPostUrl(QO00OQ,QOQ0O0){var QOOO0Q={'OOOOO':function(QOQQOO,QOOOQO){return QOQQOO+QOOOQO;},'OQO0Q':O0QQ('‫13c','zfeJ'),'OQOQQ':'gzip,\x20deflate,\x20br','OQO0O':O0QQ('‫13d','STR3'),'QQO00':O0QQ('‫13e','!O]l'),'OQOQO':O0QQ('‮13f','zfeJ')};return{'url':QOOO0Q['OOOOO']('',domains)+QO00OQ,'body':QOQ0O0,'headers':{'Accept':QOOO0Q[O0QQ('‫140',')8oe')],'Accept-Encoding':QOOO0Q[O0QQ('‫141','C*a5')],'Accept-Language':QOOO0Q[O0QQ('‫142','tnl%')],'Connection':QOOO0Q[O0QQ('‮143','C*a5')],'Content-Type':QOOO0Q['OQOQO'],'Cookie':cookie,'Host':$[O0QQ('‮144','F]&t')],'Origin':domains,'Referer':activityUrl,'User-Agent':$['UA']}};}function refreshToken(QOOO0O){var QO0QQO={'Q0QO0':'https://bean.m.jd.com/','O0Q0QO':function(QO00Q0,QO0Q0O){return QO00Q0==QO0Q0O;},'O00OOQ':O0QQ('‫145','p$]#'),'QOO00O':function(QO0000,QO0QQQ){return QO0000!==QO0QQQ;},'QOO0QQ':O0QQ('‮146','HhQ['),'QOOOO0':function(QOQ00Q,QOQOO0){return QOQ00Q+QOQOO0;},'O00OOO':O0QQ('‫147','XpCH'),'QOO0QO':function(QOQ0QQ,QOQ00O){return QOQ0QQ+QOQ00O;},'QQQO0Q':function(QOQ0QO,OOQOQQ){return QOQ0QO+OOQOQQ;},'QQQOQQ':function(OOQO0Q,OOQOQO){return OOQO0Q+OOQOQO;}};if(QOOO0O){if(QOOO0O[O0QQ('‮148','#lD9')][QO0QQO['O00OOQ']]){if(QO0QQO[O0QQ('‮149','n#al')](O0QQ('‮14a','bM9f'),QO0QQO[O0QQ('‫14b','cxj&')])){cookie=originCookie+';';for(let OOQO0O of QOOO0O[O0QQ('‫14c','$pxT')][QO0QQO[O0QQ('‮14d','cxj&')]]){lz_cookie[OOQO0O[O0QQ('‫14e','BN^#')](';')[0x0][O0QQ('‮14f','WCgF')](0x0,OOQO0O['split'](';')[0x0][O0QQ('‮150','bM9f')]('='))]=OOQO0O[O0QQ('‫114','a2X!')](';')[0x0][O0QQ('‮151','HhQ[')](QO0QQO[O0QQ('‮152','WCgF')](OOQO0O[O0QQ('‮153','tr&w')](';')[0x0]['indexOf']('='),0x1));}for(const QO0OQ0 of Object[O0QQ('‮154','i0UP')](lz_cookie)){if(QO0QQO['O00OOO']!==QO0QQO['O00OOO']){$[O0QQ('‮155','zL3r')]($[O0QQ('‮156','p$]#')],O0QQ('‫157','VCl$'),O0QQ('‮158','n$TQ'),{'open-url':QO0QQO[O0QQ('‫159','i0UP')]});return;}else{cookie+=QO0QQO['QOO0QO'](QO0QQO['QQQO0Q'](QO0QQO[O0QQ('‮15a','p$]#')](QO0OQ0,'='),lz_cookie[QO0OQ0]),';');}}activityCookie=cookie;}else{if(QO0QQO[O0QQ('‮15b','i0UP')](typeof JSON[O0QQ('‮15c','#lD9')](data),'object')){return!![];}}}}}function getUA(){var QOQQQQ={'QQQOQO':function(QOQQ0O,QOQ000){return QOQQ0O(QOQ000);}};$['UA']=O0QQ('‫15d','WCgF')+QOQQQQ['QQQOQO'](randomString,0x28)+';M/5.0;network/wifi;ADID/;model/iPhone12,1;addressid/4199175193;appBuild/167863;jdSupportDarkMode/0;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1;';}function randomString(QOQQQO){var QOQ0Q0={'QOOQQQ':function(QO0OOO,QO0OOQ){return QO0OOO||QO0OOQ;},'QOOQ0Q':'abcdef0123456789','O0QQQQ':function(O0OQO0,OQ0OQO){return O0OQO0<OQ0OQO;},'O0Q000':function(OQQOOQ,OQQOOO){return OQQOOQ*OQQOOO;}};QOQQQO=QOQ0Q0[O0QQ('‫15e','u11Y')](QOQQQO,0x20);let Q00O0Q=QOQ0Q0['QOOQ0Q'],OOOQQ0=Q00O0Q[O0QQ('‮15f',')8oe')],OOO0OO='';for(i=0x0;QOQ0Q0[O0QQ('‮160','n$TQ')](i,QOQQQO);i++)OOO0OO+=Q00O0Q[O0QQ('‫161','PIuJ')](Math[O0QQ('‫162','cxj&')](QOQ0Q0[O0QQ('‫163','QIvZ')](Math['random'](),OOOQQ0)));return OOO0OO;}function safeGet(Q00OQQ){var Q00O0O={'O0QOOO':'活动已结束或者未开始','QOOQ0O':function(OOOQ00,OOO0OQ){return OOOQ00===OOO0OQ;},'QOO000':O0QQ('‮164','u11Y'),'O00O00':function(Q00OQO,OQQOQ0){return Q00OQO!==OQQOQ0;},'O00OQO':'QQ0Q','O00O0O':O0QQ('‫165','PIuJ'),'QOOQ00':O0QQ('‫166','CDCA'),'QOO0OQ':O0QQ('‫167','UXqq')};if(!Q00OQQ){if(Q00O0O[O0QQ('‫168','s%ph')](Q00O0O['QOO000'],Q00O0O[O0QQ('‮169','g!$v')])){console['log']('京东服务器返回数据为空');return![];}else{$['log']('','\x20'+$[O0QQ('‫16a','HhQ[')]+',\x20失败!\x20原因:\x20'+e+'!','');}}try{if(Q00O0O[O0QQ('‫16b','gyEp')](Q00O0O['O00OQO'],Q00O0O[O0QQ('‫16c','#lD9')])){Q00OQQ=Q00OQQ;if(Q00OQQ){let QQQO=Q00OQQ[O0QQ('‮16d','gyEp')](/(活动已结束)/)&&Q00OQQ[O0QQ('‮16e','u11Y')](/(活动已结束)/)[0x1]||Q00OQQ[O0QQ('‫16f','uyg&')](/(哎哟,当前活动尚未开始噢!)/)&&Q00OQQ[O0QQ('‮170','tr&w')](/(哎哟,当前活动尚未开始噢!)/)[0x1]||'';if(QQQO){$['activityEnd']=!![];console[O0QQ('‮171','cxj&')](Q00O0O[O0QQ('‫172','5nY[')]);}}}else{if(typeof JSON[O0QQ('‮173','ngCl')](Q00OQQ)==Q00O0O[O0QQ('‮174','hg7I')]){if(Q00O0O[O0QQ('‫175','!rkn')](Q00O0O['QOOQ00'],Q00O0O[O0QQ('‮176','ngCl')])){return!![];}else{resolve();}}}}catch(OQQ0QQ){console[O0QQ('‮177','f9wq')](OQQ0QQ);return![];}}function jsonParse(OQQ00O){var OQQOO0={'O0Q00Q':O0QQ('‫178','2U#J'),'O0QOO0':O0QQ('‫179','5nY['),'O0QO00':'CookiesJD','QOOO00':O0QQ('‫17a','cxj&'),'QO0QOQ':function(OQQ00Q,OOO0Q0){return OQQ00Q==OOO0Q0;},'O00OQQ':O0QQ('‮17b','#lD9'),'O00O0Q':O0QQ('‮17c','zx2X'),'QOOOQ0':function(OOOQ0O,Q00O00){return OOOQ0O!==Q00O00;},'QQQOOO':O0QQ('‫17d','4rnK'),'QQQ00Q':O0QQ('‮17e','i0UP'),'QO00OO':O0QQ('‮17f','VCl$')};if(OQQOO0[O0QQ('‫180','uyg&')](typeof OQQ00O,OQQOO0[O0QQ('‮181','zfeJ')])){try{if(OQQOO0[O0QQ('‮182','tnl%')]===OQQOO0[O0QQ('‫183','n#al')]){return JSON[O0QQ('‫184','g!$v')](OQQ00O);}else{cookiesArr=[$['getdata'](OQQOO0['O0Q00Q']),$[O0QQ('‫185','7!^A')](OQQOO0[O0QQ('‮186','WCgF')]),...$[O0QQ('‫187','F]&t')]($[O0QQ('‮188','bM9f')](OQQOO0['O0QO00'])||'[]')[O0QQ('‫189','tr&w')](O00Q=>O00Q[O0QQ('‮18a','uyg&')])]['filter'](QQ00=>!!QQ00);}}catch(Q00OQ0){if(OQQOO0[O0QQ('‮18b','fyyd')](OQQOO0[O0QQ('‫18c','2U#J')],OQQOO0[O0QQ('‮18d','a2X!')])){console['log'](Q00OQ0);$[O0QQ('‮18e','p$]#')]($['name'],'',OQQOO0[O0QQ('‫18f','QIvZ')]);return[];}else{console[O0QQ('‮d8','BN^#')](OQQOO0[O0QQ('‮190','$]AZ')]);return;}}}}function random(Q00OOQ,OOO0QO){var Q0QOQO={'QOOOOQ':function(OQ0O0Q,OQ0OQQ){return OQ0O0Q+OQ0OQQ;}};return Q0QOQO[O0QQ('‮191','zx2X')](Math['floor'](Math['random']()*(OOO0QO-Q00OOQ)),Q00OOQ);}function getQueryString(OQ0O0O,Q0QO0Q){var Q0QO0O={'O0QOOQ':function(Q0QOQQ,OQQ000){return Q0QOQQ+OQQ000;},'QQ0OQO':function(OQQQQQ,OQQ0Q0){return OQQQQQ+OQQ0Q0;},'QQ0O0O':O0QQ('‮192','g!$v'),'QQ0OQQ':O0QQ('‮193','VCl$'),'O0QOQO':function(OQQQ0Q,OQQQQO){return OQQQ0Q!=OQQQQO;},'QQ0O0Q':function(OQQQ0O,Q00OOO){return OQQQ0O(Q00OOO);}};let OOOQO0=new RegExp(Q0QO0O[O0QQ('‫194','tnl%')](Q0QO0O[O0QQ('‫195','g!$v')](Q0QO0O[O0QQ('‫196','XpCH')],Q0QO0Q),Q0QO0O[O0QQ('‮197','Y8kI')]));let Q0000Q=OQ0O0O[O0QQ('‮198','STR3')](OOOQO0);if(Q0QO0O[O0QQ('‮199','zL3r')](Q0000Q,null)){return Q0QO0O['QQ0O0Q'](unescape,Q0000Q[0x2]);}return'';};OO0$='jsjiami.com.v6';
// 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)}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lengxin/Thread.git
git@gitee.com:lengxin/Thread.git
lengxin
Thread
Thread
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385