mirror of https://github.com/KingRan/KR.git
19 lines
42 KiB
JavaScript
19 lines
42 KiB
JavaScript
/**
|
||
收藏大师-关注有礼
|
||
|
||
必须条件:配置文件或者环境变量中添加变量:
|
||
//export jd_collect_item_activityUrl="活动链接"
|
||
|
||
|
||
cron:1 1 1 1 *
|
||
============Quantumultx===============
|
||
[task_local]
|
||
#收藏大师-关注有礼
|
||
1 1 1 1 * jd_txzj_collect_item.js, tag=收藏大师-关注有礼, enabled=true
|
||
*/
|
||
|
||
const $ = new Env("收藏大师-关注有礼");
|
||
var OO0$='jsjiami.com.v6',OO0$_=['OO0$'],O00O=[OO0$,'wpvDnlxTVQ==','w6fDksKfw6XDlcKjw5fDvQ==','VmXCksKiXxorw7c=','wrbDqMO0IcONwpRi','eWN6','w6o+wr7DuA==','LMOxdcO1fA==','FVTDkmB2','TQ8Zw7E/','w5BKNhwW','5Luw5Lq06La25Y2x','LQrDp1Q+','PDLCuMO0wpfCk8KSwr8=','w4XDl8KmwqhC','wosoVzJSwpsUXsKNeg==','EMKIwrdTMA==','w6fDmsKRw6s=','LHANw7bDkQE6Tg==','ScKRw4zDkcKk','eBcowqPDmQ==','5Lit5Lmm6LWB5Y66','w6gUAyhe','cQJEUsOLBcOxw6c=','wowgw5dhw58=','UlnCuMOgXg==','fCLCtVsNcw==','dSDCsncVfsKiPEMJw54=','w4bCr8Oew70N','SB5GZcO3Fg==','w6XCr13CtsOe','P2ZV','w7PCu+Wmiei1q8KLw53ljpPlmrzCunc=','Ig3DrVAqwrFy','w6LCoUfCsA==','44O35LuB5Lmk6LW55Y2V','44GwU+ado+iDhuiOguWNm+a2iOWJtOS9suaAvg==','bsOaCHfDicOVwqBKw7RsL3RsKEjCnlLDnuitt+awiuWmvui1ie++oOiujOaguOafvue/lOi1iemEteissQ==','6K6O5Yu86Zun5oaL5Z63IjhTelzov6TlhZrmoankvr7mlIflhp/lrrw65bi+6K+a6YOS6LyJ6Ia15pyz5Y6a6I6n5Y6AOxnCvsKCwoAH','wrYiNw4=','6I265Y2Tw7kPFE7DmsK4wrLlpqvotaLvvpA=','P8O9w4fClg==','FSvCswE=','w6fDpsOUJQ==','H8KMUHlx','DsOnw6TDosKQwqEfNA==','OMOdwowzE8OBYiE=','MsKpVVY5','csOmIcOMbQ==','NjMnw5XCrw==','wqzCrDDDqsOi','w4l3IA==','az5wccK1','W19Mw4XDrw==','w4x2Ixg0','LiJ5amQ=','D8KuXQ==','w7/Dm8OdF2bDkQ==','JMOTdFNO','wpPDk0xfW8O1XcOLe8KJHQ==','AjkCVQQ=','Z2RvwpzCsTzDrzQy','w6gwwrQ=','aMOoJ8OM','w5jCr8OAw71y','w63DvcKDw4hhwoIRDQ==','wqzDpsOWEg1Mw4vCr8Kqw7Qj','NHtTZhjCqsO3GA==','AlgCSxo=','RWVFB8O+','NcOGw7TDo8K9','44GoI+adguiBueiMqOWOtua1rOWKg+S/keaBgA==','MsKpKkg=','wowgw4lh','DCbDuHrDqMK9JH5oMsKxcBJQXsKYBsOBwqQ8w5p3woPorbHms7Dlprvotb7vv5borY7moY3mnZHnvaHotpjphqnor4A=','wqXCiiNV','ScOuwrPDkQ==','E8O5wqDCtg==','w5A1NgJ3','w5jCr8OewoJy','LMOINFY5','w4bDq8KeAzg=','Y3zDjWo=','JsKlwrXCsMOz','LMOxa8O1Yg==','w6bCosO/Zlo=','KDMnw5XCrw==','RMKYFmLDsUg=','wonDswrCv8OD','W2VFZsKB','LMOIVVY5','dUEREMOU','w7QcwrQ9wr4=','w4bCisOhHTg=','w4nDvmbCmsO5','wrvCiiNVVA==','w5jDtcKeHTg=','wpIgwqgewr4=','HEZjSxo=','DcO5w4HCtsKU','w4hNw7APwoc=','wooMDDzDig==','w7rDm8OaMWA=','VSkB','w4jDl8ONwrE4','LMOJw6LDtcKg','Y8K4w4g3','UcKYw70dw5I=','Z0B1Q8K7QQ==','RV8twrrDrw==','KDNYwrTDjg==','OMOEw5TDkcKS','w60VAAhUw4A=','MsOINDdG','LkMGdA==','ScOuw5LCrsOF','PcOMBHjDgMODwrA=','AkZ9Sw==','f1A9w5BgOA==','w6DDlcKIw6vDvMKww5vDtA==','YcOOw6zChcKG','6YCV5Yqa5L275ZKC','w4sQw6PDkg==','HRTCisOQ','WxLCiU8=','V8OYG8O4','wpQYGzzDh1UO','wrZdN2/Dsw==','w6fDlcOdJg==','w5PDm8KWB8K9','FSvDjH52','wrLCrDDCi8Oi','w43CpMO3ZsKj','w6oodzID','YcOHMjfDkA==','IjrCqcOswrw=','V8OYesKZUg==','KFInw4vCrw==','wqAaw7cTZw==','wrEAw78=','ScK5esOmTA==','EMOtF25nwp4Iwpwu','RQzCl08y','CWIaw7fDug==','WikCYg==','wq/DqcORNMOPwqJ4NcO0O00=','wrXCncOZTRU=','cCLCsn8=','VANIWsOgO8Oow6tywpDCqA==','YDrCtns=','wp0kwqA=','8K6Wte+6jBHkvZ7mgL3ljbw=','RRJVScOzDcOow7tDwpLCqQ==','PsONw7HDqA==','w4bDtcO/Ykc=','MDwYC3o=','8JK+rkc=','w7PDm8OaMw==','bE0hw5pqCTvDvsOHw7zDsQ==','I3tbfi7CgcOsAQElwqY=','NPCSkKI=','RV9Mw4XCjg==','wosCHw==','FSvDkgEJ','8Ku+gBLnp6vliY0=','DcO0w7HDoQ==','NBbDqksjwoJ/w7TDocOiAA==','w7QtwrrDpxbDicK8LMKybMO3','dsO7I8OTZi7Dk8KgQ8OLw4k=','w4bDvMKsUjXDhyfCpg==','P8O9w4fCiMOQ','w5fCgXjDpcO5','8LaepcKk5a+y54qG','NjrCr8O+','QMKFFH3DuirDtcKAw5rCgQ==','DAAu','w60VAA==','6aOV5Y+f5aSD6LSh772R','a8OSw6Q=','E8Onw5/Dl8O1','5bW75Y255Ymc','5bab6aCT5Y2T','5p6z5b2j5aSY','LQrDoF0zwrluw64=','wo7Cq8O3H8Ol','w7QoCCwd','wrXDosKmTXQ=','CncJw7DDqhM=','wrvCiiNLVA==','TCbCpsKBIQ==','wr3CgGkGYg==','Nkwnw5XDjg==','w78PwrzDmXY=','w5d5KRkjHg==','w5UOw6PDjDw=','w5jCi8Kzw5/DlA==','ScKRw5LCrsK6','MMOHw7c=','wpDDrwY=','McOZwpUG','6K6U5Ymm6Zuq5oSI5ZyhwrsOwoIdF+i/p+WHoeajv+S8jOaVoOWGj+Wvn8Oy5bm46K2v6YOS6L6f6IWl5p2r5Y6N6I+Q5Y6OW8OMG29gwoM=','S8OHGVwvw4Y8w5M=','c8KRPEXCg8Otw6kXwoMjJzUo','wr57wohy','BBJOTMOpAcO/w7ZZwpXCucK+wrvDkAfCg8OBX+itgOawieWlgui3oO+/tuisgOagmuaejee8oOi3mumFn+iuiA==','wqPDoQhn','wpI+w5ce','V8K5G8Om','wpMIACvCjU4JwrnCssKow5bDp8OMwp/CtcOlwqxwdwUnwovCssOFNMKHd8OkwpA7wpjDmsKCWcOuB8KlaMOZc8Orw6jCiWTDj8OpCQgRR8KHwq3CgcK+w5bDmMOuw6xnDcKMw6B7wqLCkD3CpMKpcGbDpl3Dj8KTw6XDmj/Cr03DhmjCqAR4w6swDsO3YlfDlMKTeMOuw4TDucKPwrMKwofClcKgw4kaIMK4I8KEGsO0CMK5HVMxw70xDMKNw5zChTJ4w4TCtmfCpHbCk8KYDcKPw4vCnGs=','wo/Ct8KMbAjDoVBYRcOy','d3nCnMK1fw==','w7jDncKAZlrDuA==','w7DDgMOHIiTClVZnUsOSR8OcVcOMM8K5Bw==','Y3zDjXTDisKY','HWvCisKvw6nDgg==','w7QoFjJ8','wpJfwqgewr4=','EMKIwqlTMMOn','wplGw79rYcK9','EMKIw4gsLsO5','SB5G','OMOaw4rCsMOzwpo=','woHDhEpfQ8O7QMOURw==','wokMFTo=','aAkpSMKHwqo=','V8OuwrPDkcK6','BsKCT393','w6bDncKAeCU=','w5PDm8OpZsK9Xg==','5rS75Ym/5bWe57qB5p+C5oij6IOn5p6v5b+f5aem','H8OoNlTDtMOh','wpk5woB1','YsOmJ8OIah8=','w7vCkcOow7cww5c=','RWVFeMO+fQ==','dSBwb8OUKw==','wo7Cq8OpAQ==','ViTCsWbDlcOlMWQgJcKlbQQZcMOMWMKJw7I=','wp/Dn3Z0KMKPwrvDjcKiwpg=','Z8ORw7PCjcKcRm/Dq8KIBG59ZcKTQGPDk8KDwqIGwpPCu2towo5bQAQiw7h0w44Jwo/ChzYga8OZZHVOw5wgS3PCi8Ks','wqvDosK4U2rDjw==','WDYWa8Khw7kcwr5Two7CglnDhcOew5pLwo0yXg7DrCkvY8KsJcKUFMO0PMOfYH3DgMOmIsO8wrpnw6RQScOuK3HDpg==','wpYxwq4yGsKyw51sVBnDpnYgKMKtwrbDtw==','AxTClMOOwojCvQ==','H8O2KErClcO/','5ras5YiS5bWc57qB5p2X5oqj6IC35pyo5by05aW1','w6jDmcKfw6rDvsKkworCqUB3wovCkV/CosKww4g=','NMONw7HDosKgwr7Dpg==','EhY9FlbDosOcwrfDujQ=','w4bCscOAwoI=','V8K5G8O4','JMOTalNQEQ==','wrvDtUI0','f8K4LDc=','wpzDvxXCs8ObwqUIGsKYw6/DqQ==','w4lDw6M=','WyAtwrrCjhQ=','P8Kcw4fCiMOQw58=','dcO5JsOAdw==','WcKZGWLDpzrDvQ==','wqUDwq1XWsKe','woc5woBrHsOc','Z2BxwpzCqw==','w6DDlcKYw6vDo8KNw5w=','G8OJw6/CtA==','w5bDicONw5Amw4g=','w6XDnsKSw6nDr8Kq','MsOWKjdGwqg=','MGFTdgrCqg==','DcKPVHNt','w6ocw5Vcwr7DpA==','ExInX1rDoA==','w5UQwpzDkkPCpg==','w6zCqkjCpcOGwq3CusKwEXLDpSrCmnfDrAl/wrDCu8OVFlfCrE7Cuw==','IcOjw5nCiMKxw58=','V8OuwrPDkcK6ag==','w6bDvcKZw79nwoM=','V8OGesO4UkE=','CMKLWm5eVQ==','w7HDlsOBPXo=','ZiLCqHoMeg==','acOrIMOMYAU=','asOOw6Q=','5Lq45Lmf5p+L5Yq/5ZiL6L+D5ZiI5pS15o2o5Lmd56uA','woEqwrUxUw==','w4bDq8KeHTjDug==','DcO5wqDDicKUwp0=','RWUkeMKfYw==','w7rCjcOo','RRLDtlFTRg==','WlQA','bXfCmsK1','6K+b5Yqz6ZiT5oSq5Z6zwoskdEce6L2X5YWm5qCx5L+M5pS45YW05a+Rwq3luLHorrLpgoHov6Doh5DmnqrljInojL3ljo3CucOWw6LDn1kS','w5jCisO/HTjDug==','w74owrN/CMOTw78V','w4/CmGNoC8OBA8KbFsOBBcKXBA==','w5vDl8K4w5dC','wo7DisOpAcOlwqw=','V8Ouw4zDkcOFdA==','UcKYwpwDw5J6','w5A1V31pwoI=','wrvCikJLNQ==','w5bDl8Ksw44mw4g=','MCJ5C2TDnA==','wpPDvQzCvw==','w5Rt5aSI6LWzPcOU5Y+/5ZuXw5Ej','EHAmw6vDuwU=','wqnCqcOvw6QHwpzDsRbDjMKFDcOx','amXCucK/dR4=','fHTCscO7wprCncKQwrFXw4vColDDmA==','wpvDg3ZZScO5','DsKNTQ==','bMOtFcOKbB3Di8KsVMOTw7NPwrcuw6HCnS7CsVBIw5QpRX0HesKy','A8Oxw5rDo8KswrkcIQ9kwrjCjcO2wrzDqsOfGHDDiMO+wrZXR0Ibw5/DrA==','w6fDusOQ','acK5w4g3w6V6woQ=','wr8EbR5JwrY=','RynDpVY=','NDTCqcOawrjCkcKX','I3xBbA==','w4DDnMKow5xWwqk+Lw==','Si3DsFbDvg==','w7UMwrQ=','w47Dt8K7UwvDnTM=','OmwHw6/DtgUdbw==','eikJbMKhw783wo4I','dMK4w6Mww7c=','wpYuwrMmV8Omw5g=','w4rDlMKTw6XDssKnw4nDkjY=','I8OYFw==','wpIkwqgpX8O3','wpciwqs2U8Og','wofDnlxTS8O1R8OXWg==','w6UVCSg=','wpbDn1VXRMOy','w6rCoU4=','wr4CwrtUXcOWwo0T','w4F3KhwlHQ==','wrjDocORPsKGw51oOcOmO0nDtcKfU8KmwrsE','fMOhZ8OqTV3DncKhGsOvw41IwrBww73Dv3/DvB0=','w6nDscODJsOBcMKUwrtlNA==','JRTDs10vwr5qw6nDvMOhC8KcwoQUHhRVw6lqwqbDqMOIRRfDsH9Vwql7woXCvcKCYsOmw5XDum0wwoLDihcbw55FYFIkUA==','DsKIwrdT','w43Dm8O3Bw==','44GP5o2o56eC44Gy6K6W5Yeg6I6v5Y6S5Lij5LmX6LSZ5Yy+5Liywr7Coh/CscOGwr7CieeYr+aNseS/neeXgG5wGcOjw6HCsOeakuS7meS4mueuguWIseiMgOWOvg==','CQc9S0bCt8Kcw7PDsTQLC8OswpMjwpHDhsKswqXDmMOUwpY=','wpknw791','44KW5oye56ST44OEw5XDucK8wosQeOW1ueWlvuaXqQ==','M+iusemGq+aWt+eas+W/j+iPiuWMnFnCjsKDHcOGw4g=','dhc3SA==','RXPCiS4=','BMOmw6I=','HsONw7vCog==','OMOHw77Dow==','QMKWD3TDug==','b8K1w4Y3w75B','TQ8Zw69A','LjwYag==','SQJG','wpYsVDM=','wrLDkzDDqsO8','w4nCgWbCmsKG','wrvDtSM0Sg==','w5UOwpzDjCI=','w6bDu8OLN8KFfw==','EMO3wqlTLg==','LMKOa8KUYg==','wpDDlMOpH8O7','a8OAw7fCgsKd','MsOZwowACQ==','amXCu8K/dhIo','DcOwBmxHwpgMwp8=','RQQkeMKf','gnjsjiawmib.XcoJmG.UvxW6KBxDN=='];if(function(_0x384be9,_0x1d4e99,_0x28db53){function _0x34f3c3(_0x5328aa,_0x10efd9,_0x1ab51c,_0x78fd63,_0x260eab,_0x45b8f9){_0x10efd9=_0x10efd9>>0x8,_0x260eab='po';var _0x332aaa='shift',_0x5b2900='push',_0x45b8f9='';if(_0x10efd9<_0x5328aa){while(--_0x5328aa){_0x78fd63=_0x384be9[_0x332aaa]();if(_0x10efd9===_0x5328aa&&_0x45b8f9===''&&_0x45b8f9['length']===0x1){_0x10efd9=_0x78fd63,_0x1ab51c=_0x384be9[_0x260eab+'p']();}else if(_0x10efd9&&_0x1ab51c['replace'](/[gnwbXJGUxWKBxDN=]/g,'')===_0x10efd9){_0x384be9[_0x5b2900](_0x78fd63);}}_0x384be9[_0x5b2900](_0x384be9[_0x332aaa]());}return 0x1087dc;};return _0x34f3c3(++_0x1d4e99,_0x28db53)>>_0x1d4e99^_0x28db53;}(O00O,0x131,0x13100),O00O){OO0$_=O00O['length']^0x131;};function O0QQ(_0x2f663d,_0x4c18b1){_0x2f663d=~~'0x'['concat'](_0x2f663d['slice'](0x1));var _0x48b429=O00O[_0x2f663d];if(O0QQ['Q000Q0']===undefined){(function(){var _0x475c60=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x52a119='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x475c60['atob']||(_0x475c60['atob']=function(_0x388038){var _0xe99e2f=String(_0x388038)['replace'](/=+$/,'');for(var _0x2b6c1d=0x0,_0x5217d5,_0x2888d3,_0x5f51bd=0x0,_0x3ae6e6='';_0x2888d3=_0xe99e2f['charAt'](_0x5f51bd++);~_0x2888d3&&(_0x5217d5=_0x2b6c1d%0x4?_0x5217d5*0x40+_0x2888d3:_0x2888d3,_0x2b6c1d++%0x4)?_0x3ae6e6+=String['fromCharCode'](0xff&_0x5217d5>>(-0x2*_0x2b6c1d&0x6)):0x0){_0x2888d3=_0x52a119['indexOf'](_0x2888d3);}return _0x3ae6e6;});}());function _0x41c098(_0x125072,_0x4c18b1){var _0x418c87=[],_0x3b3efd=0x0,_0x208070,_0x4263e='',_0x33e813='';_0x125072=atob(_0x125072);for(var _0x3dc763=0x0,_0xf20c6a=_0x125072['length'];_0x3dc763<_0xf20c6a;_0x3dc763++){_0x33e813+='%'+('00'+_0x125072['charCodeAt'](_0x3dc763)['toString'](0x10))['slice'](-0x2);}_0x125072=decodeURIComponent(_0x33e813);for(var _0x20a50c=0x0;_0x20a50c<0x100;_0x20a50c++){_0x418c87[_0x20a50c]=_0x20a50c;}for(_0x20a50c=0x0;_0x20a50c<0x100;_0x20a50c++){_0x3b3efd=(_0x3b3efd+_0x418c87[_0x20a50c]+_0x4c18b1['charCodeAt'](_0x20a50c%_0x4c18b1['length']))%0x100;_0x208070=_0x418c87[_0x20a50c];_0x418c87[_0x20a50c]=_0x418c87[_0x3b3efd];_0x418c87[_0x3b3efd]=_0x208070;}_0x20a50c=0x0;_0x3b3efd=0x0;for(var _0xdc6616=0x0;_0xdc6616<_0x125072['length'];_0xdc6616++){_0x20a50c=(_0x20a50c+0x1)%0x100;_0x3b3efd=(_0x3b3efd+_0x418c87[_0x20a50c])%0x100;_0x208070=_0x418c87[_0x20a50c];_0x418c87[_0x20a50c]=_0x418c87[_0x3b3efd];_0x418c87[_0x3b3efd]=_0x208070;_0x4263e+=String['fromCharCode'](_0x125072['charCodeAt'](_0xdc6616)^_0x418c87[(_0x418c87[_0x20a50c]+_0x418c87[_0x3b3efd])%0x100]);}return _0x4263e;}O0QQ['OOQQO0']=_0x41c098;O0QQ['OOOO0O']={};O0QQ['Q000Q0']=!![];}var _0x40bc5b=O0QQ['OOOO0O'][_0x2f663d];if(_0x40bc5b===undefined){if(O0QQ['Q000OQ']===undefined){O0QQ['Q000OQ']=!![];}_0x48b429=O0QQ['OOQQO0'](_0x48b429,_0x4c18b1);O0QQ['OOOO0O'][_0x2f663d]=_0x48b429;}else{_0x48b429=_0x40bc5b;}return _0x48b429;};const notify=$[O0QQ('0','5aiV')]()?require(O0QQ('1','r]$[')):'';const jdCookieNode=$[O0QQ('2','71YS')]()?require(O0QQ('3','@bps')):'';const getToken=require('./function/krgetToken');let lz_cookie={};let activityCookie='';let inviterNick='';$['activityEnd']=![];let canHelp=![];let cookiesArr=[],cookie='',message='',messageTitle='';if($[O0QQ('4','S7ii')]()){if(process[O0QQ('5','dN@u')][O0QQ('6','u9eu')])activityUrl=process[O0QQ('5','dN@u')][O0QQ('7','uoW&')];if(JSON['stringify'](process[O0QQ('8','Pum5')])[O0QQ('9','wYFB')](O0QQ('a','iVrL'))>-0x1)process['exit'](0x0);Object[O0QQ('b','#ZYa')](jdCookieNode)[O0QQ('c','@bps')](QQ000Q=>{cookiesArr[O0QQ('d','18v)')](jdCookieNode[QQ000Q]);});if(process['env']['JD_DEBUG']&&process['env'][O0QQ('e','88rd')]===O0QQ('f','#ZYa'))console[O0QQ('10','Xv8V')]=()=>{};}else{cookiesArr=[$[O0QQ('11','4xFC')](O0QQ('12','5aiV')),$['getdata'](O0QQ('13','fhz1')),...$[O0QQ('14','wYFB')]($[O0QQ('15','R^#&')](O0QQ('16','O8*J'))||'[]')[O0QQ('17','Kghp')](O00QOO=>O00QOO[O0QQ('18','R^#&')])][O0QQ('19','R^#&')](QQQQQO=>!!QQQQQO);}let isGetCookie=typeof $request!==O0QQ('1a','S7ii');if(isGetCookie){GetCookie();$[O0QQ('1b','Uj2^')]();}if(activityUrl){activityId=getQueryString(''+activityUrl,'a');$[O0QQ('1c','S7ii')]=activityUrl['match'](/https?:\/\/([^\/]+)/)[0x1];}else{console[O0QQ('1d','SXO2')]('请填写活动链接');}let domains=O0QQ('1e','@ctU')+$[O0QQ('1f','NYGZ')];!(async()=>{var O000O0={'OOOO0':function(QQQQ0O,QQQ000){return QQQQ0O+QQQ000;},'OO00O':'application/json,\x20text/javascript,\x20*/*;\x20q=0.01','OQO00':O0QQ('20','3Xx('),'OQOQ0':O0QQ('21','u9eu'),'OO0QO':O0QQ('22','Pum5'),'QQOQQ':O0QQ('23','FLEc'),'Q00O0':O0QQ('24','^dd*'),'Q0QOO':'♚♚活动入口♚♚\x0a','QQQO0':function(QQQ0Q0,O00QOQ){return QQQ0Q0===O00QOQ;},'QOOQ0':O0QQ('25','Pum5'),'QOO00':O0QQ('26','^dd*'),'OOQ0Q':O0QQ('27','t4nw'),'OO000':function(QQQ0OQ,QQQQ00){return QQQ0OQ<QQQQ00;},'OOQ0O':function(O0OOOO,O0OOOQ){return O0OOOO!==O0OOOQ;},'OOQQQ':O0QQ('28','@ctU'),'OQOOQ':function(QQ0OOO,Q0OQO0){return QQ0OOO(Q0OQO0);},'OOQQO':function(QQ0OOQ,O0OOQO){return QQ0OOQ+O0OOQO;},'OO0Q0':function(O00Q00,O000OO){return O00Q00+O000OO;},'OQOOO':function(O000OQ,O00QQ0){return O000OQ+O00QQ0;},'Q00OQ':function(QQQ0QQ,QQQOO0){return QQQ0QQ+QQQOO0;},'Q00OO':'\x0a开始【京东账号','O0OQO':O0QQ('29','SXO2'),'O0O0O':function(QQQ00O,QQQ0QO){return QQQ00O+QQQ0QO;},'Q0QQ0':function(QQQQQQ,QQQQ0Q){return QQQQQQ+QQQQ0Q;},'O0OQQ':'\x0a请重新登录获取\x0ahttps://bean.m.jd.com/','Q0Q00':function(O0OOQ0,O0OO00){return O0OOQ0+O0OO00;},'O0O0Q':function(QQ0OQ0,O0QQO0){return QQ0OQ0+O0QQO0;},'QQQOQ':'cookie已失效\x20-\x20','QOO0Q':O0QQ('2a','fhz1'),'QOO0O':function(QQ0O00){return QQ0O00();},'QQQOO':O0QQ('2b','fhz1')};if(!activityId){if(O000O0['Q00O0']===O0QQ('2c','e8*[')){$[O0QQ('2d','uoW&')]($[O0QQ('2e','uOrq')],'','活动id不存在');$[O0QQ('2f','diPj')]();return;}else{if(typeof JSON[O0QQ('30','Hq!$')](data)==O0QQ('31','wYFB')){return!![];}}}console[O0QQ('1d','SXO2')](O000O0['OOOO0'](O000O0[O0QQ('32','yw(m')],activityUrl));if(!cookiesArr[0x0]){if(O000O0['QQQO0'](O0QQ('33','t4nw'),O000O0['QOOQ0'])){$[O0QQ('34','lTNe')]($[O0QQ('35','iVrL')],O000O0['QOO00'],O000O0[O0QQ('36','&Ihx')],{'open-url':'https://bean.m.jd.com/'});return;}else{return{'url':O000O0['OOOO0'](O000O0[O0QQ('37','SXO2')]('',domains),url),'body':body,'headers':{'Accept':O000O0[O0QQ('38','j(9k')],'Accept-Encoding':O000O0['OQO00'],'Accept-Language':O000O0['OQOQ0'],'Connection':O000O0['OO0QO'],'Content-Type':O000O0[O0QQ('39','R6mO')],'Cookie':cookie,'Host':$[O0QQ('3a','Pum5')],'Origin':domains,'Referer':activityUrl,'User-Agent':$['UA']}};}}for(let Q0OQOO=0x0;O000O0['OO000'](Q0OQOO,cookiesArr['length']);Q0OQOO++){if(cookiesArr[Q0OQOO]){if(O000O0[O0QQ('3b','^dd*')](O000O0[O0QQ('3c','ApJA')],O000O0[O0QQ('3d','3Xx(')])){return!![];}else{cookie=cookiesArr[Q0OQOO];originCookie=cookiesArr[Q0OQOO];$['UserName']=O000O0['OQOOQ'](decodeURIComponent,cookie[O0QQ('3e','JUh4')](/pt_pin=(.+?);/)&&cookie[O0QQ('3f','^dd*')](/pt_pin=(.+?);/)[0x1]);$['index']=O000O0['OOQQO'](Q0OQOO,0x1);$[O0QQ('40','71YS')]=!![];$[O0QQ('41','nhS6')]='';console['log'](O000O0['OO0Q0'](O000O0['OQOOO'](O000O0[O0QQ('42','GjGa')](O000O0['Q00OO'],$[O0QQ('43','S7ii')])+'】',$[O0QQ('44','O8*J')]||$[O0QQ('45','71YS')]),'\x0a'));if(!$[O0QQ('46','3Xx(')]){$[O0QQ('47','[jln')]($[O0QQ('48','R6mO')],O000O0['O0OQO'],O000O0[O0QQ('49','ApJA')](O000O0[O0QQ('4a','FLEc')](O000O0[O0QQ('4b','yw(m')](O000O0[O0QQ('4c','Uj2^')](O0QQ('4d','diPj'),$[O0QQ('4e','FLEc')]),'\x20'),$[O0QQ('4f','@bps')]||$['UserName']),O000O0['O0OQQ']),{'open-url':O000O0[O0QQ('50','88rd')]});if($['isNode']()){await notify[O0QQ('51','iVrL')](O000O0['Q0Q00'](O000O0[O0QQ('52','^dd*')]($[O0QQ('53','O8*J')],O000O0['QQQOQ']),$[O0QQ('54','5aiV')]),O000O0[O0QQ('55','JUh4')](O000O0[O0QQ('56','t0NN')](O0QQ('57','Uj2^')+$[O0QQ('58','Uj2^')],'\x20'),$[O0QQ('59','lTNe')])+O000O0[O0QQ('5a','oP23')]);}continue;}await O000O0[O0QQ('5b','71YS')](getUA);await collect_item();await $['wait'](0x7d0);if($[O0QQ('5c','e8*[')]||$[O0QQ('5d','e8*[')]){if(O000O0[O0QQ('5e','x$hP')]===O000O0['QQQOO']){break;}else{$[O0QQ('5f','lTNe')](e,resp);}}}}}})()[O0QQ('60','SXO2')](QQ0QQ0=>{$[O0QQ('61','18v)')]('','\x20'+$['name']+O0QQ('62','3Xx(')+QQ0QQ0+'!','');})[O0QQ('63','FLEc')](()=>{$[O0QQ('64','SXO2')]();});async function collect_item(){var QQ00OQ={'OOQQ0':function(O00000,O00QQQ){return O00000+O00QQQ;},'OO0OQ':function(QOOQQ0,O00Q0Q){return QOOQQ0+O00Q0Q;},'OOQ00':O0QQ('65','mS^I'),'OQ0QQ':O0QQ('66','t4nw'),'OQOO0':O0QQ('67','Kghp'),'OQ00O':O0QQ('68','5aiV'),'Q0000':function(O000Q0,QOO0OO,O00QQO){return O000Q0(QOO0OO,O00QQO);},'Q00Q0':function(O00Q0O,QQOO0O){return O00Q0O==QQOO0O;},'Q0QQO':function(QQOOQO,QQOO00){return QQOOQO===QQOO00;},'O0OQ0':'QQOO','Q0Q0O':O0QQ('69','mS^I'),'Q0QQQ':O0QQ('6a','syxY'),'O0O00':function(QOOQOQ){return QOOQOQ();},'Q0Q0Q':function(QQQQO0,QOOQOO){return QQQQO0===QOOQOO;},'O0OOQ':function(QOO0O0){return QOO0O0();},'Q00QO':O0QQ('6b','uOrq'),'QQ0OQ':function(O000QO,O0QQOO){return O000QO!==O0QQOO;},'QQ0OO':O0QQ('6c','FLEc'),'QQQ00':'QQQ0'};$[O0QQ('6d','Pum5')]=![];$[O0QQ('6e','dN@u')]=await QQ00OQ['Q0000'](getToken,cookie,domains);$[O0QQ('6f','uoW&')]=![];$[O0QQ('70','^dd*')]=![];if(QQ00OQ[O0QQ('71','nhS6')]($[O0QQ('72','u9eu')],'')){if(QQ00OQ['Q0QQO'](QQ00OQ[O0QQ('73','5aiV')],QQ00OQ[O0QQ('74','&Ihx')])){console[O0QQ('75','NYGZ')](QQ00OQ[O0QQ('76','lTNe')](QQ00OQ['OO0OQ'](QQ00OQ[O0QQ('77','[jln')],$[O0QQ('78','NYGZ')]),QQ00OQ[O0QQ('79','t4nw')]));}else{console[O0QQ('7a','ApJA')](QQ00OQ['Q0QQQ']);return;}}if(activityId){await QQ00OQ['O0O00'](jd_store_user_info);if(QQ00OQ['Q0Q0Q']($[O0QQ('7b','5T%A')],!![])){return;}await QQ00OQ[O0QQ('7c','dN@u')](collect_itemx);if($[O0QQ('7d','S7ii')])return;for(let O0Q0O0=0x0;O0Q0O0<0x14;O0Q0O0++){if(QQ00OQ['Q00QO']!==QQ00OQ[O0QQ('7e','18v)')]){console['log'](''+JSON[O0QQ('7f','[jln')](err));console[O0QQ('80','R6mO')]($[O0QQ('81','u9eu')]+QQ00OQ[O0QQ('82','x$hP')]);}else{await receive_prize();if($[O0QQ('83','88rd')]||$[O0QQ('84','syxY')]||$[O0QQ('85','18v)')])break;}}}else{if(QQ00OQ[O0QQ('86','18v)')](QQ00OQ['QQ0OO'],QQ00OQ[O0QQ('87','GjGa')])){console['log'](QQ00OQ['OO0OQ'](QQ00OQ['OO0OQ'](QQ00OQ['OOQ00'],$[O0QQ('88','diPj')]),O0QQ('89','5aiV')));}else{console[O0QQ('61','18v)')](e);$['msg']($['name'],'',QQ00OQ['OQ00O']);return[];}}}function jd_store_user_info(){var O0QQOQ={'QOQOQ':function(O0OO0Q,QQ00Q0){return O0OO0Q+QQ00Q0;},'OQ0OO':function(Q0O0OO,Q0OQQ0){return Q0O0OO+Q0OQQ0;},'OQQ00':function(Q0O0OQ,Q0OQ00){return Q0O0OQ!==Q0OQ00;},'OQQQ0':O0QQ('8a','nhS6'),'QQQQO':O0QQ('8b','oP23'),'QQ0Q0':function(QQ0000,QQ0QQQ){return QQ0000+QQ0QQQ;},'Q0OOO':function(QQ0Q0O,O0QQQO){return QQ0Q0O+O0QQQO;},'Q0OOQ':O0QQ('8c','#ZYa'),'O000Q':function(O0Q0Q0,QQ0Q0Q){return O0Q0Q0===QQ0Q0Q;},'O0OO0':'OQQ0','O0000':function(O000QQ,O0000O){return O000QQ(O0000O);},'O0QQQ':O0QQ('8d','j(9k'),'O0Q0Q':O0QQ('8e','JUh4'),'O00Q0':function(O0000Q,O00OO0){return O0000Q!==O00OO0;},'Q0OQ0':O0QQ('8f','diPj'),'QO0OO':function(QQQQQ0,QQQ0OO,QQOO0Q){return QQQQQ0(QQQ0OO,QQOO0Q);}};return new Promise(QQOOQQ=>{var QQQ0O0={'OO0O0':function(QQQQOO,QQQQOQ){return O0QQOQ[O0QQ('90','Uj2^')](QQQQOO,QQQQOQ);},'OOQOQ':function(QOOQO0,O0Q0OO){return O0QQOQ['OQ0OO'](QOOQO0,O0Q0OO);},'OQQQO':'活动已结束或者未开始','OQ0Q0':function(O0QQ00){return O0QQ00();},'Q000Q':function(O0QQQ0,QQ00QO){return O0QQOQ[O0QQ('91','x$hP')](O0QQQ0,QQ00QO);},'Q00QQ':O0QQOQ[O0QQ('92','nhS6')],'Q000O':O0QQOQ['QQQQO'],'Q0OO0':function(O0Q0OQ,QQ000O){return O0QQOQ[O0QQ('93','5T%A')](O0Q0OQ,QQ000O);},'O0OOO':function(Q0OQQO,Q0O0Q0){return O0QQOQ['Q0OOO'](Q0OQQO,Q0O0Q0);},'O00QQ':O0QQOQ['Q0OOQ'],'O000O':function(OO0O00,OO0OQ0){return O0QQOQ['O000Q'](OO0O00,OO0OQ0);},'O00QO':O0QQ('94','#ZYa'),'QQQ0Q':O0QQOQ['O0OO0'],'QOQOO':'success','QO0O0':function(QOQO00,QOQOQ0){return O0QQOQ[O0QQ('95','uoW&')](QOQO00,QOQOQ0);},'QQQQQ':O0QQOQ['O0QQQ'],'QQ000':O0QQOQ[O0QQ('96','ApJA')],'QQQ0O':function(OOQ00Q,OOQOOO){return O0QQOQ[O0QQ('97','4xFC')](OOQ00Q,OOQOOO);},'OOQO0':O0QQOQ[O0QQ('98','5aiV')]};let O0O0O0=O0QQ('99','Hq!$')+$[O0QQ('9a','&Ihx')];$['post'](O0QQOQ['QO0OO'](taskPostUrl,'/front/jd_store_user_info',O0O0O0),async(O0OQOO,O0OQOQ,OO0OOQ)=>{var OO0OOO={'OQQ0Q':QQQ0O0[O0QQ('9b','GjGa')],'OQQQQ':function(QOQOOQ){return QQQ0O0[O0QQ('9c','nhS6')](QOQOOQ);}};try{if(O0OQOO){if(QQQ0O0[O0QQ('9d','lTNe')](QQQ0O0[O0QQ('9e','Zwu$')],QQQ0O0['Q000O'])){console['log'](QQQ0O0[O0QQ('9f','5T%A')]('',JSON['stringify'](O0OQOO)));console['log'](QQQ0O0[O0QQ('a0','SXO2')]($['name'],QQQ0O0[O0QQ('a1','j(9k')]));}else{cookie+=QQQ0O0[O0QQ('a2','5T%A')](QQQ0O0[O0QQ('a3','oP23')](QQQ0O0[O0QQ('a4','18v)')](vo,'='),lz_cookie[vo]),';');}}else{if(QQQ0O0['O000O'](QQQ0O0['O00QO'],QQQ0O0[O0QQ('a5','diPj')])){OO0OOQ=OO0OOQ;if(OO0OOQ){let QQQO=OO0OOQ[O0QQ('a6','Zwu$')](/(活动已结束)/)&&OO0OOQ[O0QQ('a7','mS^I')](/(活动已结束)/)[0x1]||OO0OOQ[O0QQ('a8','5T%A')](/(哎哟,当前活动尚未开始噢!)/)&&OO0OOQ['match'](/(哎哟,当前活动尚未开始噢!)/)[0x1]||'';if(QQQO){$['activityEnd']=!![];console[O0QQ('a9','fhz1')](OO0OOO[O0QQ('aa','r]$[')]);}}}else{OO0OOQ=JSON[O0QQ('ab','diPj')](OO0OOQ);if(OO0OOQ&&OO0OOQ[O0QQ('ac','wYFB')]===QQQ0O0[O0QQ('ad','wYFB')]){}else{$['hasEnd']=!![];}if(O0OQOQ[O0QQ('ae','GjGa')]==0xc8){QQQ0O0[O0QQ('af','[jln')](refreshToken,O0OQOQ);}}}}catch(QO0OQO){if(QQQ0O0[O0QQ('b0','5aiV')](QQQ0O0[O0QQ('b1','uoW&')],QQQ0O0['QQ000'])){$[O0QQ('b2','Uj2^')](QO0OQO,O0OQOQ);}else{$['logErr'](QO0OQO,O0OQOQ);}}finally{if(QQQ0O0[O0QQ('b3','nhS6')](O0QQ('b4','t4nw'),QQQ0O0[O0QQ('b5','JUh4')])){QQOOQQ();}else{OO0OOO['OQQQQ'](QQOOQQ);}}});});}function receive_prize(){var QO0O0O={'O0QQO':function(O0O0OO){return O0O0OO();},'O0Q0O':function(QO0OQQ,QO0O0Q){return QO0OQQ(QO0O0Q);},'O00OO':function(O0OQQ0,O0OQ00){return O0OQQ0+O0OQ00;},'O0Q00':function(OO00QQ,OO0OO0){return OO00QQ*OO0OO0;},'Q0OQO':function(OO000Q,OOQ0OQ){return OO000Q===OOQ0OQ;},'Q0O0O':'O0OQ','QO000':'QQO0','QOQ0O':function(OOQQ00,OOQQQO){return OOQQ00+OOQQQO;},'QOQQQ':'\x20receive_prize\x20API请求失败,请检查网路重试','QQOOQ':O0QQ('b6','Kghp'),'QO0Q0':O0QQ('b7','18v)'),'QOQQO':O0QQ('b8','yw(m'),'QOQ0Q':O0QQ('b9','O8*J'),'OQQO0':O0QQ('ba','JUh4'),'OOOQ0':O0QQ('bb','&Ihx'),'OOO00':O0QQ('bc','R6mO'),'QQOOO':'num_end','Q0OQQ':O0QQ('bd','@bps'),'Q0O0Q':function(OOQQ0O,OOQ000){return OOQQ0O==OOQ000;},'O00OQ':function(OOQ0Q0,O0O000){return OOQ0Q0!==O0O000;},'O0QQ0':O0QQ('be','e8*['),'O0QOO':O0QQ('bf','u9eu'),'QO0QQ':function(O0O0Q0,O0OQQO,O0OQ0O){return O0O0Q0(O0OQQO,O0OQ0O);},'QOOO0':'/collect_item/receive_prize'};return new Promise(O0OQQQ=>{var O0OQ0Q={'QQ00Q':function(OO0O0Q,OO0OQQ){return OO0O0Q===OO0OQQ;},'QQOO0':O0QQ('c0','mS^I'),'QQ0QQ':function(OO0O0O,OO0OQO){return QO0O0O[O0QQ('c1','mS^I')](OO0O0O,OO0OQO);}};let O00QO0='pid='+activityId;$[O0QQ('c2','5T%A')](QO0O0O[O0QQ('c3','Pum5')](taskPostUrl,QO0O0O[O0QQ('c4','FLEc')],O00QO0),async(QOQO0Q,QOQOQQ,QOQO0O)=>{var QOQOQO={'QO0OQ':function(OOQQQQ){return QO0O0O[O0QQ('c5','&Ihx')](OOQQQQ);},'OQQOO':function(OOQQ0Q,OOQ0QO){return QO0O0O[O0QQ('c6','Pum5')](OOQQ0Q,OOQ0QO);},'OOOQQ':function(OOQOO0,OOQ0QQ){return QO0O0O[O0QQ('c7','NYGZ')](OOQOO0,OOQ0QQ);},'OOOQO':function(OOQ00O,O0O00Q){return QO0O0O['O0Q00'](OOQ00O,O0O00Q);},'QQ0QO':function(O0O0QQ,O0O00O){return O0O0QQ-O0O00O;}};try{if(QOQO0Q){if(QO0O0O['Q0OQO'](QO0O0O[O0QQ('c8','Hq!$')],QO0O0O['QO000'])){QOQO0O=JSON[O0QQ('c9','@bps')](QOQO0O);if(QOQO0O&&O0OQ0Q[O0QQ('ca','u9eu')](QOQO0O['code'],O0OQ0Q[O0QQ('cb','5aiV')])){}else{$['hasEnd']=!![];}if(O0OQ0Q[O0QQ('cc','R^#&')](QOQOQQ['status'],0xc8)){refreshToken(QOQOQQ);}}else{console[O0QQ('cd','oP23')](QO0O0O[O0QQ('ce','u9eu')]('',JSON[O0QQ('cf','nhS6')](QOQO0Q)));console[O0QQ('75','NYGZ')](QO0O0O['QOQ0O']($['name'],QO0O0O[O0QQ('d0','e8*[')]));}}else{QOQO0O=JSON[O0QQ('d1','5aiV')](QOQO0O);if(QOQO0O&&QO0O0O['Q0OQO'](QOQO0O[O0QQ('d2','fhz1')],QO0O0O['QQOOQ'])){$['getPrize']=!![];if(QOQO0O['data'][O0QQ('d3','3Xx(')]){if(QO0O0O[O0QQ('d4','8%[s')]===QO0O0O['QO0Q0']){switch(QOQO0O[O0QQ('d5','e8*[')][O0QQ('d6','lTNe')][O0QQ('d7','e8*[')]){case QO0O0O['QOQQO']:console[O0QQ('d8','R^#&')](O0QQ('d9','FLEc'));$[O0QQ('da','lTNe')]=!![];break;case O0QQ('db','diPj'):console['log'](QO0O0O[O0QQ('dc','5T%A')](QO0O0O[O0QQ('dd','t4nw')](O0QQ('de','t0NN'),QOQO0O[O0QQ('df','5T%A')][O0QQ('e0','yw(m')][O0QQ('e1','18v)')]),O0QQ('e2','GjGa')));break;case QO0O0O[O0QQ('e3','[jln')]:console[O0QQ('e4','mS^I')](QO0O0O[O0QQ('e5','FLEc')](O0QQ('e6','18v)'),QOQO0O[O0QQ('e7','uoW&')][O0QQ('e8','FLEc')][O0QQ('e9','R6mO')]||QOQO0O['data'][O0QQ('ea','u9eu')][O0QQ('eb','4xFC')]));break;case QO0O0O[O0QQ('ec','uOrq')]:console['log'](QO0O0O[O0QQ('ed','SXO2')](O0QQ('ee','Zwu$'),QOQO0O[O0QQ('ef','@bps')]['prize_title'][O0QQ('f0','Hq!$')]));break;default:break;}}else{QOQOQO['QO0OQ'](O0OQQQ);}}else{console['log'](QOQO0O[O0QQ('f1','t4nw')]);}}else{console[O0QQ('f2','Uj2^')](O0QQ('f3','18v)')+QOQO0O[O0QQ('f4','JUh4')]);QOQO0Q=QOQO0O['msg'];for(let QOQ0OQ of['不足',QO0O0O[O0QQ('f5','diPj')],O0QQ('f6','O8*J'),'上限',O0QQ('f7','uoW&'),O0QQ('f8','Xv8V')]){if(QOQO0Q['includes'](QOQ0OQ)){if(QO0O0O['OOO00']!=='OO0O'){QOQOQO['OQQOO'](refreshToken,QOQOQQ);}else{$['grabStop']=!![];break;}}}for(let QOQQ00 of[QO0O0O['QQOOO']]){if(QOQO0Q[O0QQ('f9','FLEc')](QOQQ00)){if(QO0O0O[O0QQ('fa','3Xx(')](QO0O0O[O0QQ('fb','NYGZ')],QO0O0O[O0QQ('fc','8%[s')])){$['activityEnd']=!![];break;}else{$['hasEnd']=!![];}}}}if(QO0O0O['Q0O0Q'](QOQOQQ[O0QQ('fd','5aiV')],0xc8)){if(QO0O0O[O0QQ('fe','j(9k')](QO0O0O[O0QQ('ff','71YS')],'OOOO')){QO0O0O[O0QQ('100','S7ii')](refreshToken,QOQOQQ);}else{return QOQOQO[O0QQ('101','5aiV')](Math[O0QQ('102','Xv8V')](QOQOQO['OOOQO'](Math[O0QQ('103','NYGZ')](),QOQOQO[O0QQ('104','R6mO')](max,min))),min);}}}}catch(QO00QO){if(QO0O0O[O0QQ('105','O8*J')]('QQQQ',QO0O0O[O0QQ('106','JUh4')])){$['logErr'](QO00QO,QOQOQQ);}else{try{return JSON['parse'](str);}catch(QO0OO0){console[O0QQ('107','diPj')](QO0OO0);$[O0QQ('108','&Ihx')]($[O0QQ('109','^dd*')],'',O0QQ('10a','nhS6'));return[];}}}finally{O0OQQQ();}});});}function collect_itemx(){var QO00QQ={'Q0QO0':O0QQ('10b','nhS6'),'O00O0':O0QQ('10c','Kghp'),'O0Q0QO':function(QOQQOQ,QO000Q){return QOQQOQ(QO000Q);},'O0Q00O':function(QOOOQQ,QO00OQ){return QOOOQQ===QO00OQ;},'O00OOQ':O0QQ('10d','R^#&'),'QOO00O':function(QOQ0O0,QOOO0Q){return QOQ0O0+QOOO0Q;},'QOO0QQ':function(QOQQOO,QOOOQO){return QOQQOO+QOOOQO;},'QOOOO0':O0QQ('10e','lTNe'),'O00OOO':function(QOOO0O,QO0QQO){return QOOO0O!==QO0QQO;},'QOO0QO':O0QQ('10f','S7ii'),'QQQO0Q':O0QQ('110','oP23'),'QQQOQQ':function(QO00Q0,QO0Q0O){return QO00Q0!==QO0Q0O;},'QQQO0O':function(QO0000,QO0QQQ){return QO0000===QO0QQQ;},'QQQOQO':O0QQ('111','u9eu'),'O00OQ0':function(QOQ00Q){return QOQ00Q();},'QOOQ0Q':O0QQ('112','mS^I'),'O0QQQQ':'zh-CN,zh-Hans;q=0.9','O0Q000':O0QQ('113','8%[s')};return new Promise(QOQOO0=>{const QOQ0QQ={'url':domains+'/collect_item/home?a='+activityId+'&token='+$[O0QQ('114','71YS')],'headers':{'Accept':QO00QQ[O0QQ('115','4xFC')],'Accept-Encoding':O0QQ('116','5T%A'),'Accept-Language':QO00QQ[O0QQ('117','#ZYa')],'Connection':QO00QQ[O0QQ('118','@bps')],'Cookie':cookie,'Host':$['domain'],'Referer':activityUrl,'User-Agent':$['UA']}};$['get'](QOQ0QQ,async(QOQ00O,QOQ0QO,OOQOQQ)=>{var OOQO0Q={'QO00O':QO00QQ[O0QQ('119','NYGZ')],'OOOOQ':QO00QQ[O0QQ('11a','oP23')],'OOOOO':function(OOQOQO,OOQO0O){return OOQOQO!=OOQO0O;},'OQO0Q':function(QO0OQ0,QO0O00){return QO00QQ[O0QQ('11b','^dd*')](QO0OQ0,QO0O00);},'OQOQO':function(QOQQ0Q,QOQQQQ){return QOQQ0Q(QOQQQQ);}};try{if(QOQ00O){if(QO00QQ['O0Q00O'](QO00QQ[O0QQ('11c','@ctU')],QO00QQ[O0QQ('11d','^dd*')])){console[O0QQ('11e','lTNe')](QO00QQ[O0QQ('11f','uoW&')]('',JSON[O0QQ('120','S7ii')](QOQ00O)));console['log'](QO00QQ['QOO0QQ']($[O0QQ('121','mS^I')],QO00QQ[O0QQ('122','fhz1')]));}else{let OO0Q=new RegExp(OOQO0Q[O0QQ('123','JUh4')]+name+OOQO0Q['OOOOQ']);let O000=url[O0QQ('124','dN@u')](OO0Q);if(OOQO0Q[O0QQ('125','4xFC')](O000,null)){return OOQO0Q['OQO0Q'](unescape,O000[0x2]);}return'';}}else{if(QO00QQ['O00OOO'](QO00QQ[O0QQ('126','Pum5')],QO00QQ['QQQO0Q'])){OOQOQQ=OOQOQQ;if(OOQOQQ){let QOQ0Q0=OOQOQQ['match'](/(活动已结束)/)&&OOQOQQ['match'](/(活动已结束)/)[0x1]||OOQOQQ['match'](/(哎哟,当前活动尚未开始噢!)/)&&OOQOQQ['match'](/(哎哟,当前活动尚未开始噢!)/)[0x1]||'';if(QOQ0Q0){$['activityEnd']=!![];console['log'](O0QQ('127','wYFB'));}}}else{console['log'](e);return![];}}}catch(QO0OOQ){if(QO00QQ[O0QQ('128','Kghp')](O0QQ('129','@ctU'),'OOOQ')){activityId=getQueryString(''+activityUrl,'a');$[O0QQ('12a','u9eu')]=activityUrl['match'](/https?:\/\/([^\/]+)/)[0x1];}else{$[O0QQ('12b','x$hP')](QO0OOQ,QOQ0QO);}}finally{if(QO00QQ[O0QQ('12c','GjGa')](QO00QQ[O0QQ('12d','lTNe')],O0QQ('12e','3Xx('))){QO00QQ['O00OQ0'](QOQOO0);}else{return OOQO0Q['OQOQO'](unescape,r[0x2]);}}});});}function taskPostUrl(OQQOOQ,OQQOOO){var Q00O0Q={'O0QOOO':function(OOOQQ0,OOO0OO){return OOOQQ0+OOO0OO;},'QOO0Q0':function(Q00OQQ,Q00O0O){return Q00OQQ+Q00O0O;},'QOOQQO':O0QQ('12f','#ZYa'),'QOOQ0O':O0QQ('130','j(9k'),'QOO000':O0QQ('131','JUh4')};return{'url':Q00O0Q[O0QQ('132','8%[s')](Q00O0Q['QOO0Q0']('',domains),OQQOOQ),'body':OQQOOO,'headers':{'Accept':O0QQ('133','fhz1'),'Accept-Encoding':O0QQ('134','R^#&'),'Accept-Language':Q00O0Q[O0QQ('135','@bps')],'Connection':Q00O0Q[O0QQ('136','Kghp')],'Content-Type':Q00O0Q['QOO000'],'Cookie':cookie,'Host':$['domain'],'Origin':domains,'Referer':activityUrl,'User-Agent':$['UA']}};}function refreshToken(OOOQ00){var OOO0OQ={'O00OQO':O0QQ('137','5T%A'),'QOOQ00':O0QQ('138','O8*J'),'QOO0OQ':function(Q00OQO,OQQOQ0){return Q00OQO<OQQOQ0;},'O0Q0QQ':function(OQ0O00,OQ0OQ0){return OQ0O00*OQ0OQ0;},'O0QOO0':function(Q0QOQ0,Q0QO00){return Q0QOQ0!==Q0QO00;},'O0QO00':O0QQ('139','diPj'),'O0QOQ0':O0QQ('13a','t4nw'),'QOOO00':function(OQQ0QQ,OQQ00O){return OQQ0QQ+OQQ00O;},'QOQQO0':function(OQQOO0,OQQ00Q){return OQQOO0===OQQ00Q;},'QO0QOQ':O0QQ('13b','x$hP'),'O00OQQ':O0QQ('13c','u9eu')};if(OOOQ00){if(OOO0OQ[O0QQ('13d','dN@u')](O0QQ('13e','j(9k'),O0QQ('13f','Hq!$'))){$[O0QQ('140','&Ihx')]=!![];console[O0QQ('141','Zwu$')](OOO0OQ[O0QQ('142','[jln')]);}else{if(OOOQ00[OOO0OQ[O0QQ('143','uOrq')]][OOO0OQ['O0QOQ0']]){cookie=originCookie+';';for(let OOOQ0O of OOOQ00[OOO0OQ['O0QO00']][OOO0OQ['O0QOQ0']]){lz_cookie[OOOQ0O[O0QQ('144','u9eu')](';')[0x0]['substr'](0x0,OOOQ0O['split'](';')[0x0][O0QQ('145','Hq!$')]('='))]=OOOQ0O['split'](';')[0x0][O0QQ('146','@ctU')](OOO0OQ[O0QQ('147','@ctU')](OOOQ0O[O0QQ('148','[jln')](';')[0x0][O0QQ('149','O8*J')]('='),0x1));}for(const Q00O00 of Object[O0QQ('14a','uOrq')](lz_cookie)){if(OOO0OQ[O0QQ('14b','r]$[')](OOO0OQ['QO0QOQ'],OOO0OQ['O00OQQ'])){e=e||0x20;let Q0Q0=OOO0OQ['QOOQ00'],QO0O=Q0Q0[O0QQ('14c','O8*J')],OQ0O='';for(i=0x0;OOO0OQ[O0QQ('14d','nhS6')](i,e);i++)OQ0O+=Q0Q0[O0QQ('14e','18v)')](Math[O0QQ('14f','dN@u')](OOO0OQ[O0QQ('150','Zwu$')](Math[O0QQ('151','t4nw')](),QO0O)));return OQ0O;}else{cookie+=OOO0OQ['QOOO00'](OOO0OQ[O0QQ('152','R6mO')](Q00O00+'=',lz_cookie[Q00O00]),';');}}activityCookie=cookie;}}}}function getUA(){var OOOQQQ={'QOOOQ0':function(Q00OOQ,OOO0QO){return Q00OOQ(OOO0QO);}};$['UA']=O0QQ('153','SXO2')+OOOQQQ[O0QQ('154','uOrq')](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(Q0QOQO){var OQ0O0Q={'QQQ00Q':function(OQ0OQQ,OQ0O0O){return OQ0OQQ||OQ0O0O;},'QO00OO':'abcdef0123456789','QO0QQ0':function(Q0QO0Q,Q0QO0O){return Q0QO0Q<Q0QO0O;},'QOOOOQ':function(Q0QOQQ,OQQ000){return Q0QOQQ*OQQ000;}};Q0QOQO=OQ0O0Q['QQQ00Q'](Q0QOQO,0x20);let OQQQQQ=OQ0O0Q[O0QQ('155','JUh4')],OQQ0Q0=OQQQQQ[O0QQ('156','88rd')],OQQQ0Q='';for(i=0x0;OQ0O0Q[O0QQ('157','u9eu')](i,Q0QOQO);i++)OQQQ0Q+=OQQQQQ[O0QQ('158','dN@u')](Math[O0QQ('159','5T%A')](OQ0O0Q['QOOOOQ'](Math[O0QQ('15a','e8*[')](),OQQ0Q0)));return OQQQ0Q;}function safeGet(OQQQQO){var OQQQ0O={'QQ0OQO':O0QQ('15b','u9eu'),'QQ0O0O':function(Q00OOO,OOOQO0){return Q00OOO===OOOQO0;},'QQ0OQQ':'Q00O'};if(!OQQQQO){console[O0QQ('15c','JUh4')](O0QQ('15d','e8*['));return![];}try{if(typeof JSON[O0QQ('15e','R^#&')](OQQQQO)==OQQQ0O['QQ0OQO']){if(OQQQ0O[O0QQ('15f','5T%A')](OQQQ0O[O0QQ('160','diPj')],OQQQ0O[O0QQ('161','GjGa')])){return!![];}else{console[O0QQ('7a','ApJA')](OQQQQO[O0QQ('162','x$hP')]);}}}catch(OQQ0QO){console[O0QQ('10','Xv8V')](OQQ0QO);return![];}}function jsonParse(OQ00QQ){var OQ0OO0={'QQ0O0Q':'string'};if(typeof OQ00QQ==OQ0OO0[O0QQ('163','e8*[')]){try{return JSON[O0QQ('ab','diPj')](OQ00QQ);}catch(OQ000Q){console[O0QQ('61','18v)')](OQ000Q);$[O0QQ('164','t0NN')]($[O0QQ('165','71YS')],'',O0QQ('166','#ZYa'));return[];}}}function random(OQ00QO,OQ000O){var OQQ0OO={'O0QO0O':function(OQQQ00,OOOQOQ){return OQQQ00+OOOQOQ;},'QOOOOO':function(OQQ0OQ,OQQQQ0){return OQQ0OQ*OQQQQ0;},'QO0QO0':function(Q000QQ,Q00OO0){return Q000QQ-Q00OO0;}};return OQQ0OO[O0QQ('167','5T%A')](Math['floor'](OQQ0OO['QOOOOO'](Math['random'](),OQQ0OO['QO0QO0'](OQ000O,OQ00QO))),OQ00QO);}function getQueryString(Q0000O,OOO0O0){var Q000QO={'QQQOOQ':function(OOOQOO,Q00Q0Q){return OOOQOO+Q00Q0Q;},'QOO00Q':O0QQ('168','@ctU'),'QO0QOO':O0QQ('169','S7ii'),'QO00O0':function(Q00QQQ,OQ0OOQ){return Q00QQQ!=OQ0OOQ;},'QQ0OO0':O0QQ('16a','88rd'),'QQ00QQ':function(OQ0OOO,Q00000){return OQ0OOO(Q00000);}};let Q00Q0O=new RegExp(Q000QO[O0QQ('16b','3Xx(')](Q000QO['QQQOOQ'](Q000QO[O0QQ('16c','JUh4')],OOO0O0),Q000QO[O0QQ('16d','wYFB')]));let OOOO00=Q0000O['match'](Q00Q0O);if(Q000QO[O0QQ('16e','Uj2^')](OOOO00,null)){if(O0QQ('16f','j(9k')!==Q000QO[O0QQ('170','r]$[')]){return Q000QO[O0QQ('171','t4nw')](unescape,OOOO00[0x2]);}else{$['log']('','\x20'+$[O0QQ('172','&Ihx')]+O0QQ('173','iVrL')+e+'!','');}}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)} |