forked from hongke120/qlym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
haier.js
11 lines (11 loc) · 30.2 KB
/
haier.js
1
2
3
4
5
6
7
8
9
10
11
/*
@肥皂 3.16 海尔活动 一天1-2元 红包有效期有一年吧,自己手动app里提现。。
下载海尔智家app,手机号登录,设置登录密码。退出登录,然后选择密码登录,抓包
https://zj.haier.net/oauthserver/account/v2/login请求的全部请求头和body
请求头变量名 :haierhd 自己格式化去。。
body变量名: haierbody
多账号@分割
cron 30 9 * * * haier.js
*/
var _0xodc='jsjiami.com.v6',_0xodc_=['_0xodc'],_0x12c8=[_0xodc,'wqQTWDPCpQ==','w6QcAgZw','IGwnwqcf','w50fwqJUw74=','f8ObVVLChQ==','woBGDcKoMQ==','DBAHXWs=','w6NgasOKCQ==','wqQTWDTCpw==','w50fwqJTw74=','XAvDkcO+MQ==','W8KMb8Obwo0=','PiDCmcKQfw==','wqQTWDTCog==','O8KpwqLDhMOz','w5XDocO3w6cc','wq7DmsKAZQw=','wo1gw7HDgBI=','wqJEE8O3a8KWwoXDiA==','5pWw5oyb6I2P5Y2g5om/5YmH772g','w7QPwoHDhsOAw5cNwp/Dig==','RxDDhDoM','Wh3DkzYO','wqzDgX5rw5I=','wrjCosKnwqMp','w71Hw5sEwoE=','Un/CnMOAw6o=','Q8KNCjbDvA==','dea2oeWymeaLt+WlicObwo0=','wojCj8OFGVJdw6g=','wqvDp2hSw7M=','w5XCiMOEIEY=','w63CvsKh','FsKYDMOve3/DhcKtwqvCg8OUbMOHw5rlhI0=','TDrDpBkXw6E=','5Lm06La95Y68e37Ct8KcWi/Do8OFw5kcLnFCwrE=','w7rCkcOEwprDngA=','WcKJMibDng==','WlXCjMK4QQ==','wqjDtnZIw6I=','wqfCnkQ=','UuW8oOWnveOBvua0quWymua2mOWKrQ==','wqXCpMKLwqUd','bBrCnw==','K8OoLiQ9w7vDnBI=','wrrCrMK5wood','dQfClA==','N8O1LzMrw5XDlw==','wrPCi1JJbg==','w61jw7YCwrUrw6tgdw==','wrh3w4HDjn/DtsOY','w4zCrcOGHzwsUg==','w7J4w6M=','WRxtfsOlWHbDlMOo','w7TCm8OOwoQ=','wqo1wrTCkUEcDA==','wpxMDg==','w6zCosKh','wqLCq8KCwqU=','X8OPCcKZw5o=','wpnCi8OFM1Q=','bFTCjsKv','ZSnDoC4W','w4zCvMOAEjM/WmvCpA==','GlvDsMOHwrlmw7U=','CsKbMAvDvhfDgQ==','MEFfCy/DpsOH','w6VAw7Q=','woA1Xl3Dr8KGw6zCtUs=','SAd7bg==','WMKOEAXDkMKLwrU=','ZUjChw==','U8KMFTfDiw==','5rSF5bCq5raq5YiL','woTDuTPDvwg=','woPCo8K9wpcv','wqHCmUpmdg==','w4BVw6EPwps=','w68swovDrMO+','wqbCncKAwo4U','PVzDvcOiPg==','wpo4wrrCulE=','w64swqLDrsOq','AwRRw610','wpQfwqzCr20=','woxXwqVvw6Y=','NcOICB4L','bSjCmwbCmA==','w654w7cf','wqTCsGnCtVs=','w45nw4ULwoY=','A27DhcOuwrM=','wp8uSw==','wr/Cl2xhbA==','Sea2kOWyseeagOW/quWmuOi3le+8ig==','YsOERsKtHQ==','w7FcfU8z','Pl3DpcOMMQ==','wqBzw5LDmX8=','RGjCvcOhw7IqTA==','wrx9w4c=','wovmtJbls7Hnm5jlv7PvvqQ=','LMO+Px89w7zDng==','G8K3w7kr','O8KHVSHCuSXDtHlQ','SsKIBw7DhMKRwqDCtcOzwrrCn38=','wps5RmDDtA==','WCFzQMOY','wqdzw4nDng==','PMKMRCXCvA==','w6LCscOkwpvDjw==','wrAIT1nDoA==','wo7Djx/DpzQ=','wolAwqVOw7Nx','w5XCnMOSKFk=','G8KAeCrCgA==','woEmSWPDrA==','QwPDtj8M','w559ZFk3','w7Zjw7Abwqh2wq0pdMKhwpDDp8KvYz9ZFmkmw7V5TgFhOkPDmFrClMKvwp1Xw6spw7TCvizDsw3DisK+P8KJwrzDmXjDssOtwoXCr8KCAsKYIcOx','wq3DnALDgAs=','AsOcDADDrBfCgiBqH8KcEDbCiAHDpGkbwrnCo1TCiH5Hw51NwrRAwpDCvMO5w5TDjsOhNRN6Y8OoKMK8wo/DswxvCSbDlsKOwoTDoMKswqLCh8O0MQPCoWrCs8KmwqLCp8KgTMOww7DChQnDoMKbwpjCsEbDoB3CrGLDlsOdw6DDnD4BDcKDw53DjMKeSw==','wrw7wqY+wqgpw7ArT8Ksw5vDocK6KGAJGEosw7s/WAdhZR/DmQbDm8OpwpNzw68/wqLDnwzDlzHCnMKYGMOQwqLCj0bCsMKow4bCosKGM8OZH8O7wq3Crg9Uw4Zuw6w4worCqjfCuyduw4NQLcKSw4LCvxnDnm7DkgzDvsONLMOvbMKjLD1FdsOSw5fDjnJYw6ctecO4DjY/KcKKJw8QfcK1VVpeacOQwrEXw7HDpnYIG8OcB8KmU8O4UsOtG8K2MxVqacO4LMKrKsKpCiQEA8OBwoEPLsOawqHCizZ+fhLDqMK5OcKhw5FOwowIw5fCmkxRVCNzRS18w5TCrTpPw5FjbFovYcKqa8KPbGYgOgloNDRfwpDDrU7DrSwkw7fCpS3CgiAsCnfDpsKDwpzDuGDDocOPw4h0MG5USSMoBQPDjcKjSQtIw4HCoC40w4DDt8ObwrxwBcK4V0/DvMKSJ2XDqw/CpldBw4BGwooJdA==','wro8wqnCkE4cJMON','w6nDnQFiWxLCjMKuw4llwohAwrMPw5Z+w5RAw4Y=','wp3DpMKQCDItQW7CuMO0w5DDly7ChcObwqQOw4XCng==','AlHDosOX','OwzCjh3CqQ==','DcKXw4vCt8O8','Oix4w5hu','w5DCnsKswpZ3','PcKrByjDuA==','Qj3DshTDmMK8SQ==','e8Odw65KOA==','wrN+w47Dum4=','NE9R','w7Dmtp3lsqXmtavlipRyw4M=','w4LkuLHlirHCi2c=','Bjliw51DwpEr','wqjCpMK3wpUR','wpTmtaDlspDmtZDlibMFw4Y=','VOS4heWLpSbDmw==','UjnCrCPCsg==','5rW45bKo5rWl5YmH','5pSf5o+36Iyk5Yym5oub5Ymd772W','wqFow4nCvMO0','w6bClcOYwo7Djw==','UMOJLA7DgsKLw7bDm8K+w7HCgHvDhsKrCcKuwqrDsEh5wo/CisKhwqLDm8KvwoBXwpsGw5QBaVPDlnR5w6HDuTjDvXDCg8O2Q8OOJ8Oww6DDrEjCminDt8KcwoIxAcK6woAtw7rCncOPGF1pSiXCr8KGUMO+WcOcXDBbw4nDjcKkw6EYwqEEw5rCp8Kfwp7CsA==','wrw7wqYKwrgvw61zYMK/w6rDoMKlbzQJAiVj','w7t8w6LClFAYO8OMRsKGa25ow5DDk8K/w5XDgWRowoHCmMOZwrfColfCmcKuYgVGU8K0w5UAwozDkA4iwqZgU8OwTMKzIsK6wroow4HCjMOIwpYgwrkgwpvCiMO5w7zCssK2U8KHPiLCimNxDsOjwokmdipaPD/Dk1jCsknDt8Kdd8KQFkPCrMKTw4MKw4wdw7jChT4awoN9TsOUFMO4eR8cw79ERHDCnFbCl8O8w5bDucOywoJEXsOvB8K9w4zCtgrClTHCr25Dw4rDq8K9LMKqwrJyasOjB2QIQcKHwrJDw5TCtMKBIsK7ew==','NMOKXyfCowXDrHZLwpfDkMOGP8KzwoFIBQ==','w6tQw40Ywpw=','w51kw7Mvwow=','VMOEaMKQIw==','wpACT2XDhw==','w6LCksKlwoJj','eivDtS0Z','wqrDlzHDqgw=','w4rCl8OP','6I2S5b6R7766','wpR4w7XCtw==','KDDCvzfCucKIwqTDl8Oq','w65lw60Rwr4Cw6Nraw==','CwPDnsO7','HlHDtg==','CTPCnifCmA==','w5Lmt6DlsJDmioblp5HCtcOI','Z8OOw6lqPsKvw6w=','wq7DiQLDmgBswo/Cn8Ov','wpNEwqpOw7luRA==','wr/Cr8KbwqQEw6TDqw==','wpNAwqJPw650Uw==','fMOILMKGw5Ypw67Dv8ON','wo3CpXTCuw==','wq7DmATDlw9/woc=','wrXDnBnDlhxpwonCncOv','wqDCpcKI','wqHCucKI','wohTwo5Fw5I=','wrXCukXCsVU=','wqJCw7ZIwog=','Al/Do8OQwrk=','GHXDnMOnJkoz','w4d/XVMk','w5rmtaXlsrTmtpHlirLDjcOv','wovkuIPliIkAdg==','Q8ORGcKFw4k=','w7s9HMKUSQ==','K0LDn8OyBw==','5rS05bOz5rae5YmT','wrDDtm1ew7XCj8O4wozDp8O3wpU=','wpjCl8OnJMKBwoU=','U2PCvw==','Qgl2csO5V3s=','w4HCncOcLVPDpsKW','w7XDvMOlS8KOXSs=','w4/Ci8OmJlbDtw==','wqnCpMKZ','w6rCp8K1w5hueXRhwrg=','wq7DuiDDuhc=','wrJxHAzCtw==','O8KpwqLDgsOy','jsjiqamti.cPIoDhmrYU.vn6HlYfAfJ=='];if(function(_0x3d96cc,_0x5cd945,_0xb40190){function _0x4aa830(_0x44b076,_0x3d621e,_0x3725fa,_0x11e6d8,_0x25bad7,_0x23bc57){_0x3d621e=_0x3d621e>>0x8,_0x25bad7='po';var _0xa75ca2='shift',_0xcd50a5='push',_0x23bc57='';if(_0x3d621e<_0x44b076){while(--_0x44b076){_0x11e6d8=_0x3d96cc[_0xa75ca2]();if(_0x3d621e===_0x44b076&&_0x23bc57===''&&_0x23bc57['length']===0x1){_0x3d621e=_0x11e6d8,_0x3725fa=_0x3d96cc[_0x25bad7+'p']();}else if(_0x3d621e&&_0x3725fa['replace'](/[qtPIDhrYUnHlYfAfJ=]/g,'')===_0x3d621e){_0x3d96cc[_0xcd50a5](_0x11e6d8);}}_0x3d96cc[_0xcd50a5](_0x3d96cc[_0xa75ca2]());}return 0xd7bee;};return _0x4aa830(++_0x5cd945,_0xb40190)>>_0x5cd945^_0xb40190;}(_0x12c8,0xbd,0xbd00),_0x12c8){_0xodc_=_0x12c8['length']^0xbd;};function _0x328c(_0x8265be,_0x469191){_0x8265be=~~'0x'['concat'](_0x8265be['slice'](0x1));var _0xd95ba1=_0x12c8[_0x8265be];if(_0x328c['kkGQBI']===undefined){(function(){var _0x23d2c0=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x43b1e7='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x23d2c0['atob']||(_0x23d2c0['atob']=function(_0x1017bf){var _0x11643b=String(_0x1017bf)['replace'](/=+$/,'');for(var _0x4661fa=0x0,_0x1ea077,_0x588db9,_0x33e271=0x0,_0x3bd796='';_0x588db9=_0x11643b['charAt'](_0x33e271++);~_0x588db9&&(_0x1ea077=_0x4661fa%0x4?_0x1ea077*0x40+_0x588db9:_0x588db9,_0x4661fa++%0x4)?_0x3bd796+=String['fromCharCode'](0xff&_0x1ea077>>(-0x2*_0x4661fa&0x6)):0x0){_0x588db9=_0x43b1e7['indexOf'](_0x588db9);}return _0x3bd796;});}());function _0x2c7fd7(_0x1762d9,_0x469191){var _0x5228ac=[],_0x4bdb59=0x0,_0x5000a8,_0x53a71b='',_0x55309c='';_0x1762d9=atob(_0x1762d9);for(var _0x13e62b=0x0,_0x244260=_0x1762d9['length'];_0x13e62b<_0x244260;_0x13e62b++){_0x55309c+='%'+('00'+_0x1762d9['charCodeAt'](_0x13e62b)['toString'](0x10))['slice'](-0x2);}_0x1762d9=decodeURIComponent(_0x55309c);for(var _0x17a28b=0x0;_0x17a28b<0x100;_0x17a28b++){_0x5228ac[_0x17a28b]=_0x17a28b;}for(_0x17a28b=0x0;_0x17a28b<0x100;_0x17a28b++){_0x4bdb59=(_0x4bdb59+_0x5228ac[_0x17a28b]+_0x469191['charCodeAt'](_0x17a28b%_0x469191['length']))%0x100;_0x5000a8=_0x5228ac[_0x17a28b];_0x5228ac[_0x17a28b]=_0x5228ac[_0x4bdb59];_0x5228ac[_0x4bdb59]=_0x5000a8;}_0x17a28b=0x0;_0x4bdb59=0x0;for(var _0x4ebb7c=0x0;_0x4ebb7c<_0x1762d9['length'];_0x4ebb7c++){_0x17a28b=(_0x17a28b+0x1)%0x100;_0x4bdb59=(_0x4bdb59+_0x5228ac[_0x17a28b])%0x100;_0x5000a8=_0x5228ac[_0x17a28b];_0x5228ac[_0x17a28b]=_0x5228ac[_0x4bdb59];_0x5228ac[_0x4bdb59]=_0x5000a8;_0x53a71b+=String['fromCharCode'](_0x1762d9['charCodeAt'](_0x4ebb7c)^_0x5228ac[(_0x5228ac[_0x17a28b]+_0x5228ac[_0x4bdb59])%0x100]);}return _0x53a71b;}_0x328c['bExxiy']=_0x2c7fd7;_0x328c['HZgabf']={};_0x328c['kkGQBI']=!![];}var _0x725194=_0x328c['HZgabf'][_0x8265be];if(_0x725194===undefined){if(_0x328c['PccffN']===undefined){_0x328c['PccffN']=!![];}_0xd95ba1=_0x328c['bExxiy'](_0xd95ba1,_0x469191);_0x328c['HZgabf'][_0x8265be]=_0xd95ba1;}else{_0xd95ba1=_0x725194;}return _0xd95ba1;};const $=new Env(_0x328c('0','vv9m'));let status;status=(status=$['getval'](_0x328c('1','5Uvr'))||'1')>0x1?''+status:'';let haierhdArr=[],haiercount='';let haierhd=($[_0x328c('2','a1WL')]()?process[_0x328c('3','9Y!5')][_0x328c('4','#!dC')]:$[_0x328c('5','Go^K')](_0x328c('6','2V4I')))||'';let haierbody=($[_0x328c('7','Go^K')]()?process[_0x328c('8','(F9)')]['haierbody']:$['getdata'](_0x328c('9','fBWS')))||'';let haiertoken='';let haierhdid=['A0082',_0x328c('a','6cZH'),_0x328c('b','EVXJ')];let haierrwid=[_0x328c('c','vhdM'),_0x328c('d','Dbzt'),_0x328c('e','EzYt'),_0x328c('f','ebRF'),_0x328c('10','h%p^'),_0x328c('11','puB9'),_0x328c('12','HQSL'),_0x328c('13','xRBy'),'T0137','T0138','T0139','T0140',_0x328c('14','eXV4'),_0x328c('15','Dbzt'),_0x328c('16','h%p^'),_0x328c('17','22uG'),_0x328c('18','D4Gq'),_0x328c('19','$Pr6'),_0x328c('1a','Dbzt'),_0x328c('1b','vhdM'),_0x328c('1c','lV^c'),_0x328c('1d','o@fA'),'T0151',_0x328c('1e','jKOy')];!(async()=>{var _0x1442d3={'hfnWM':function(_0xb3214f,_0x222ba7){return _0xb3214f+_0x222ba7;},'xzqJV':_0x328c('1f','HQSL'),'DYOhn':'海尔活动','PsWvb':_0x328c('20','qX^W'),'PWThr':function(_0x23287c,_0x147378){return _0x23287c!==_0x147378;},'tVzPU':_0x328c('21','&k&O'),'bLMfb':function(_0xa568ef,_0x5a403b){return _0xa568ef===_0x5a403b;},'thHcL':_0x328c('22','Ki[C'),'drUbw':function(_0x58bbd3){return _0x58bbd3();},'rbVGo':function(_0x1a70f1,_0x5123c3){return _0x1a70f1===_0x5123c3;},'vfVJx':function(_0x13abab){return _0x13abab();}};if(_0x1442d3[_0x328c('23','6BWD')](typeof $request,_0x1442d3[_0x328c('24','5Uvr')])){if(_0x1442d3['bLMfb'](_0x1442d3[_0x328c('25','(F9)')],_0x1442d3[_0x328c('26','h%p^')])){await _0x1442d3[_0x328c('27','9Y!5')](haierck);}else{console['log'](_0x1442d3[_0x328c('28','puB9')](_0x328c('29','kzEH')+item+':',result[_0x328c('2a','o@fA')]));}}else{haierhdArr=haierhd[_0x328c('2b','5Uvr')]('@');haierbodyArr=haierbody[_0x328c('2c','Go^K')]('@');console[_0x328c('2d','lV^c')](_0x328c('2e','2PDk')+haierhdArr[_0x328c('2f','Ki[C')]+_0x328c('30','qG)A'));for(let _0x578896=0x0;_0x578896<haierhdArr[_0x328c('31','hIuy')];_0x578896++){if(_0x1442d3[_0x328c('32','puB9')]('RnlrD',_0x328c('33','22uG'))){haierhd=JSON[_0x328c('34','5Uvr')](haierhdArr[_0x578896]);haierbody=haierbodyArr[_0x578896];$['index']=_0x578896+0x1;console[_0x328c('35','CCWE')](_0x328c('36','xRBy')+$[_0x328c('37','(F9)')]+'】');const _0x19cf5b=JSON['parse'](haierbody);console[_0x328c('38','qX^W')]('\x0a【登录:'+_0x19cf5b[_0x328c('39','qG)A')]+'】');await _0x1442d3[_0x328c('3a','(F9)')](haierdl);}else{if($request[_0x328c('3b','qX^W')][_0x328c('3c','qG)A')](_0x1442d3[_0x328c('3d','CCWE')])>-0x1){const _0x10ed84=JSON[_0x328c('3e','yrfk')]($request[_0x328c('3f','f!j$')]);if(_0x10ed84)$[_0x328c('40','N^tz')](_0x10ed84,'haierhd'+status);$[_0x328c('41','yrfk')](_0x10ed84);const _0x2e0df3=JSON[_0x328c('42','#!dC')]($request[_0x328c('43','hIuy')]);if(_0x2e0df3)$[_0x328c('44','jKOy')](_0x2e0df3,'haierbody'+status);$[_0x328c('45','Dbzt')](_0x2e0df3);$[_0x328c('46','lV^c')]($[_0x328c('47','(F9)')],'',_0x1442d3[_0x328c('28','puB9')](_0x1442d3['DYOhn'],''+status)+_0x1442d3[_0x328c('48','D4Gq')]);}}}}})()[_0x328c('49','o@fA')](_0x266411=>$['logErr'](_0x266411))['finally'](()=>$[_0x328c('4a','22uG')]());function haierck(){var _0x532302={'VrMjN':function(_0x22f157,_0x4150a6){return _0x22f157>_0x4150a6;},'ocgpj':'v2/login','xgqVz':function(_0x4ef931,_0x5df7d5){return _0x4ef931+_0x5df7d5;},'YDCLf':'数据获取成功!'};if(_0x532302['VrMjN']($request['url']['indexOf'](_0x532302[_0x328c('4b','6BWD')]),-0x1)){const _0x428e18=JSON[_0x328c('4c','N^tz')]($request[_0x328c('4d','Q*MO')]);if(_0x428e18)$[_0x328c('4e','P*Gy')](_0x428e18,_0x328c('4f','xRBy')+status);$[_0x328c('50','h%p^')](_0x428e18);const _0x1c55ad=JSON[_0x328c('51','EVXJ')]($request[_0x328c('52','#!dC')]);if(_0x1c55ad)$[_0x328c('53','puB9')](_0x1c55ad,'haierbody'+status);$['log'](_0x1c55ad);$[_0x328c('54','22uG')]($['name'],'',_0x532302[_0x328c('55','puB9')](_0x328c('56','Q*MO'),''+status)+_0x532302[_0x328c('57','gzS4')]);}}function haierdl(_0x44709c=0x0){var _0x5431bf={'ChzOq':function(_0x15765d,_0x4215bd){return _0x15765d+_0x4215bd;},'WLUFw':function(_0x2b2b10,_0x593f27,_0x483e85){return _0x2b2b10(_0x593f27,_0x483e85);},'oMGML':function(_0x1ea024,_0x50405a){return _0x1ea024*_0x50405a;},'wXGyY':_0x328c('58','(F9)'),'ezbKP':_0x328c('59','CCWE'),'MOlZM':function(_0x18c635,_0x5c3d91){return _0x18c635!==_0x5c3d91;},'wvnEz':_0x328c('5a','h%p^'),'kSCHX':function(_0x434a09,_0x25368b){return _0x434a09!==_0x25368b;},'Xhfwr':_0x328c('5b','&k&O'),'tRLpQ':_0x328c('5c','(F9)'),'YEqwB':function(_0x4fa47b,_0x4d48ae){return _0x4fa47b!==_0x4d48ae;},'uvkOD':'tgKsI','dhGFw':function(_0x4c02bd,_0x5053ef){return _0x4c02bd+_0x5053ef;}};return new Promise(_0x1b7b6f=>{var _0x4b7775={'tfObT':function(_0x252c8a,_0xf9eef){return _0x5431bf['ChzOq'](_0x252c8a,_0xf9eef);},'JmjGB':function(_0x556546){return _0x556546();},'sdzak':function(_0x9e3d0b){return _0x9e3d0b();},'CIcma':function(_0xc4b54c,_0x4e2b59,_0xa7f522){return _0x5431bf[_0x328c('5d','$Pr6')](_0xc4b54c,_0x4e2b59,_0xa7f522);},'YVoJv':function(_0x44aaae,_0x1afe54){return _0x5431bf[_0x328c('5e','jKOy')](_0x44aaae,_0x1afe54);},'SroTZ':function(_0x151412,_0x1590b6){return _0x5431bf[_0x328c('5f','&k&O')](_0x151412,_0x1590b6);},'wSZAj':function(_0x4cc9b5,_0xd96f9b){return _0x4cc9b5-_0xd96f9b;},'Kzywx':function(_0x5026f0,_0xe6acaf){return _0x5026f0===_0xe6acaf;},'GHVlK':_0x5431bf[_0x328c('60','ebRF')],'qPTMo':_0x5431bf['ezbKP'],'YqgoK':function(_0x4715c7,_0x5acedb){return _0x5431bf[_0x328c('61','jKOy')](_0x4715c7,_0x5acedb);},'ApNzr':_0x5431bf[_0x328c('62','RD!R')],'zuxGQ':function(_0x5b0e75,_0x2cf523){return _0x5b0e75==_0x2cf523;},'hxjTu':function(_0x19f104,_0x139a5f){return _0x5431bf[_0x328c('63','qG)A')](_0x19f104,_0x139a5f);},'imkSm':_0x5431bf['Xhfwr'],'KOcug':_0x5431bf['tRLpQ'],'rIlWS':function(_0x555c12,_0x5890fa){return _0x5431bf[_0x328c('64','Y$IC')](_0x555c12,_0x5890fa);},'cqOPc':_0x5431bf['uvkOD'],'Uuhni':function(_0x5d8f87,_0x36642a){return _0x5d8f87(_0x36642a);},'tENfe':function(_0x26e210,_0x129c6e){return _0x5431bf['dhGFw'](_0x26e210,_0x129c6e);}};let _0x288109={'url':'https://zj.haier.net/oauthserver/account/v2/login','headers':haierhd,'body':haierbody};$[_0x328c('65','yrfk')](_0x288109,async(_0x4d5d36,_0x1b147c,_0x142e3a)=>{if(_0x4b7775[_0x328c('66','6cZH')](_0x4b7775[_0x328c('67','h%p^')],_0x4b7775[_0x328c('68','Q*MO')])){console[_0x328c('69','EVXJ')](_0x4b7775[_0x328c('6a','CCWE')](_0x328c('6b','vv9m'),_0x142e3a));}else{try{if(_0x4b7775[_0x328c('6c','2PDk')](_0x4b7775[_0x328c('6d','EzYt')],_0x328c('6e','$Pr6'))){const _0x4aead0=JSON[_0x328c('6f','f!j$')](_0x142e3a);if(_0x4b7775['zuxGQ'](_0x4aead0[_0x328c('70','9Y!5')],0x0)){console[_0x328c('71','f!j$')](_0x328c('72','&k&O')+_0x4aead0[_0x328c('73','qG)A')]);haiertoken=_0x4aead0[_0x328c('74','kzEH')][_0x328c('75','GJEV')][_0x328c('76','puB9')];for(let _0x3c63ce of haierhdid){if(_0x4b7775[_0x328c('77','EVXJ')](_0x4b7775['imkSm'],_0x4b7775['KOcug'])){for(let _0x46fc6e of haierrwid){if(_0x4b7775[_0x328c('78','#!dC')]('tgKsI',_0x4b7775['cqOPc'])){_0x4b7775['JmjGB'](_0x1b7b6f);}else{await _0x4b7775['CIcma'](haierrw,_0x46fc6e,_0x3c63ce);await $[_0x328c('79','f!j$')](0x32);}}await _0x4b7775['Uuhni'](haiercj,_0x3c63ce);}else{_0x4b7775[_0x328c('7a','GJEV')](_0x1b7b6f);}}}else{console['log'](_0x4b7775[_0x328c('7b','hIuy')]('\x0a海尔登录失败:',_0x142e3a));}}else{return _0x4b7775[_0x328c('7c','EVXJ')](parseInt,_0x4b7775['YVoJv'](_0x4b7775[_0x328c('7d','gzS4')](Math[_0x328c('7e','RD!R')](),_0x4b7775['wSZAj'](max,min)+0x1),min),0xa);}}catch(_0x2fad74){}finally{_0x4b7775[_0x328c('7f','Go^K')](_0x1b7b6f);}}},_0x44709c);});}function haierrw(_0x144b05,_0x3bd93d,_0x461d1d=0x0){var _0x4a7875={'eqVGD':function(_0x4b9972){return _0x4b9972();},'rASut':function(_0x2c5d81,_0x443e5a){return _0x2c5d81+_0x443e5a;},'rgeWm':function(_0x1ae795,_0x3277b8){return _0x1ae795==_0x3277b8;},'nQWlv':'qKtjl'};return new Promise(_0x502ee0=>{var _0x1b985f={'cNXPu':function(_0x1e189b){return _0x4a7875['eqVGD'](_0x1e189b);},'eZYUd':function(_0x1ee513,_0x2339d4){return _0x4a7875['rASut'](_0x1ee513,_0x2339d4);},'nvsih':function(_0x24d1e0,_0xdb8b5d){return _0x24d1e0!==_0xdb8b5d;},'NpnLC':_0x328c('80','GJEV'),'DUCGg':function(_0x1b4406,_0x3109a1){return _0x4a7875[_0x328c('81','EVXJ')](_0x1b4406,_0x3109a1);},'clnPt':_0x328c('82','6BWD'),'zYkwL':_0x4a7875[_0x328c('83','EzYt')],'vIbYl':function(_0x8b3868){return _0x8b3868();}};let _0x2c9983={'url':_0x328c('84','yrfk'),'headers':JSON[_0x328c('85','gzS4')](_0x328c('86','P*Gy')+haiertoken+_0x328c('87','yrfk')+haierhd[_0x328c('88','jKOy')]+_0x328c('89','CCWE')+haiertoken+'\x22,\x22appVersion\x22:\x22\x201.0.0\x22,\x22Sec-Fetch-Site\x22:\x22\x20same-site\x22,\x22Sec-Fetch-Mode\x22:\x22\x20cors\x22,\x22Sec-Fetch-Dest\x22:\x22\x20empty\x22,\x22Content-Type\x22:\x22\x20application/json;charset=utf-8\x22}'),'body':'{\x22taskCode\x22:\x22'+_0x144b05+'\x22,\x22activityUuid\x22:\x22'+_0x3bd93d+_0x328c('8a','N^tz')};$[_0x328c('8b','Q*MO')](_0x2c9983,async(_0x3e676c,_0x124484,_0x503639)=>{var _0x1af359={'QOjER':function(_0x58d20e){return _0x1b985f[_0x328c('8c','godE')](_0x58d20e);},'dnXUt':function(_0x1ca52e,_0x5a3b3e){return _0x1b985f['eZYUd'](_0x1ca52e,_0x5a3b3e);}};if(_0x1b985f['nvsih'](_0x1b985f[_0x328c('8d','vv9m')],_0x1b985f[_0x328c('8e','ebRF')])){_0x1af359[_0x328c('8f','lV^c')](_0x502ee0);}else{try{const _0x593d20=JSON['parse'](_0x503639);if(_0x1b985f[_0x328c('90','P*Gy')](_0x593d20[_0x328c('91','AsE0')],0x0)){if(_0x1b985f[_0x328c('92','pOpJ')](_0x1b985f[_0x328c('93','f!j$')],_0x1b985f['zYkwL'])){console[_0x328c('94','xRBy')](_0x328c('95','o@fA')+_0x3bd93d+_0x328c('96','6cZH')+_0x144b05+':'+_0x593d20[_0x328c('97','ebRF')]);}else{console['log'](_0x1af359[_0x328c('98','(F9)')](_0x328c('99','yrfk')+_0x3bd93d+_0x328c('9a','P*Gy')+_0x144b05+':',_0x593d20['retInfo']));}}else{}}catch(_0x24b905){}finally{_0x1b985f['vIbYl'](_0x502ee0);}}},_0x461d1d);});}function haiercj(_0x2cd322,_0x24e710=0x0){var _0x243e69={'uGIsG':'dZFYm','CswDW':_0x328c('9b','Y$IC'),'oqIRu':function(_0xbd84d2,_0x40de89){return _0xbd84d2===_0x40de89;},'wjAYb':function(_0x1b0d30,_0x428f4a){return _0x1b0d30==_0x428f4a;},'QqHjD':function(_0x5edede,_0x2a4758){return _0x5edede+_0x2a4758;},'GDVSF':function(_0x4d8f2b){return _0x4d8f2b();}};return new Promise(_0x182218=>{var _0x4ecb84={'srEoN':_0x328c('9c','D4Gq'),'ZpUsv':_0x328c('9d','vhdM'),'wSnfe':function(_0x691e1,_0x5497b7){return _0x243e69[_0x328c('9e','UMzG')](_0x691e1,_0x5497b7);}};let _0x3363af={'url':'https://zj.haier.net/zjapi/longtermActivity/base/lottery','headers':JSON[_0x328c('9f','hIuy')](_0x328c('a0','puB9')+haiertoken+'\x22,\x22User-Agent\x22:\x22\x20Mozilla/5.0\x20(iPad;\x20CPU\x20OS\x2014_1\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/18A8395\x20NebulaSDK/1.8.100112\x20Nebula\x20WK\x20PSDType(1)\x20mPaaSClient/(null)\x20App/Uplus\x20Nebula\x22,\x22Accept\x22:\x22\x20application/json,\x20text/plain,\x20*/*\x22,\x22clientId\x22:\x22\x20'+haierhd['clientId']+_0x328c('a1','yrfk')+haiertoken+_0x328c('a2','jKOy')),'body':_0x328c('a3','GJEV')+_0x2cd322+'\x22}'};$['post'](_0x3363af,async(_0x41faee,_0x42f167,_0x1b98ae)=>{if(_0x243e69[_0x328c('a4','yrfk')]!==_0x243e69[_0x328c('a5','yrfk')]){try{if(_0x243e69[_0x328c('a6','2PDk')](_0x328c('a7','EVXJ'),_0x328c('a8','lV^c'))){const _0x346453=JSON[_0x328c('a9','6BWD')](_0x1b98ae);if(_0x243e69[_0x328c('aa','gzS4')](_0x346453['retCode'],0x0)){console[_0x328c('ab','Go^K')]('\x0a海尔抽奖'+_0x2cd322+':'+_0x346453['retInfo']+_0x328c('ac','V[87')+_0x346453[_0x328c('ad','UMzG')][_0x328c('ae','godE')][_0x328c('af','yrfk')]);await haiercj(_0x2cd322);await $[_0x328c('b0','*$P]')](0x1f4);}else{console[_0x328c('b1','Q*MO')](_0x243e69[_0x328c('b2','godE')](_0x328c('b3','5Uvr')+_0x2cd322+':',_0x346453[_0x328c('b4','pOpJ')]));}}else{const _0x3939d2=JSON[_0x328c('b5','gzS4')]($request[_0x328c('b6','RD!R')]);if(_0x3939d2)$[_0x328c('b7','(F9)')](_0x3939d2,_0x328c('b8','RD!R')+status);$['log'](_0x3939d2);const _0x4553e2=JSON[_0x328c('b9','D4Gq')]($request[_0x328c('ba','6cZH')]);if(_0x4553e2)$[_0x328c('bb','gzS4')](_0x4553e2,_0x328c('bc','gzS4')+status);$[_0x328c('bd','(F9)')](_0x4553e2);$[_0x328c('be','(F9)')]($['name'],'',_0x4ecb84[_0x328c('bf','RD!R')]+(''+status)+_0x4ecb84[_0x328c('c0','6cZH')]);}}catch(_0x4754a4){}finally{_0x243e69[_0x328c('c1','V[87')](_0x182218);}}else{const _0x3b45bc=JSON[_0x328c('c2','Q*MO')](_0x1b98ae);if(_0x3b45bc[_0x328c('c3','$Pr6')]==0x0){console['log'](_0x4ecb84[_0x328c('c4','EzYt')](_0x328c('c5','f!j$')+_0x2cd322+_0x328c('c6','Go^K')+activyId+':',_0x3b45bc['retInfo']));}else{}}},_0x24e710);});}function rand(_0x31a990,_0x1f180c){var _0x5f5582={'LmGjq':function(_0x59e250,_0x455079){return _0x59e250+_0x455079;},'UMTJM':function(_0x1c8410,_0x29b066){return _0x1c8410*_0x29b066;},'ARwVN':function(_0x62195a,_0x4ec967){return _0x62195a-_0x4ec967;}};return parseInt(_0x5f5582[_0x328c('c7','D4Gq')](_0x5f5582['UMTJM'](Math['random'](),_0x5f5582[_0x328c('c8','eXV4')](_0x5f5582[_0x328c('c9','$Pr6')](_0x1f180c,_0x31a990),0x1)),_0x31a990),0xa);};_0xodc='jsjiami.com.v6';
function Env(t, e) { 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("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) } 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("@"), a = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(a, (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(); 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) { let e = { "M+": (new Date).getMonth() + 1, "d+": (new Date).getDate(), "H+": (new Date).getHours(), "m+": (new Date).getMinutes(), "s+": (new Date).getSeconds(), "q+": Math.floor(((new Date).getMonth() + 3) / 3), S: (new Date).getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).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 } } } }; this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))); let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) } 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("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }