forked from tao1344/KingRan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jd_fans_videofangrowth.js
16 lines (13 loc) · 28.7 KB
/
jd_fans_videofangrowth.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
粉丝福利videofangrowth
看到线板直接运行即可
cron:1 1 1 1 *
============Quantumultx===============
[task_local]
#粉丝福利红包fansvideo
1 1 1 1 * jd_fans_videofangrowth.js, tag=粉丝福利videofangrowth, enabled=true
*/
const $ = new Env('粉丝福利videofangrowth');
var version_='jsjiami.com.v7';const _0x1e7949=_0x4b35;(function(_0x2e5d60,_0x4570cc,_0x266d49,_0x23df14,_0x58389b,_0x2fc223,_0x4713e5){return _0x2e5d60=_0x2e5d60>>0x5,_0x2fc223='hs',_0x4713e5='hs',function(_0x500cb4,_0x8b89e7,_0x2a8b57,_0x464245,_0x340d62){const _0x9c5d1a=_0x4b35;_0x464245='tfi',_0x2fc223=_0x464245+_0x2fc223,_0x340d62='up',_0x4713e5+=_0x340d62,_0x2fc223=_0x2a8b57(_0x2fc223),_0x4713e5=_0x2a8b57(_0x4713e5),_0x2a8b57=0x0;const _0x51af55=_0x500cb4();while(!![]&&--_0x23df14+_0x8b89e7){try{_0x464245=-parseInt(_0x9c5d1a(0x179,'TpkP'))/0x1+-parseInt(_0x9c5d1a(0x17a,'iFEQ'))/0x2*(-parseInt(_0x9c5d1a(0x1a9,'%lVI'))/0x3)+parseInt(_0x9c5d1a(0x1f1,'Uy$E'))/0x4+-parseInt(_0x9c5d1a(0x1d8,'N2O#'))/0x5+-parseInt(_0x9c5d1a(0x163,'L09H'))/0x6+-parseInt(_0x9c5d1a(0x1d0,'iFEQ'))/0x7*(parseInt(_0x9c5d1a(0x173,'T&(u'))/0x8)+-parseInt(_0x9c5d1a(0x150,'Kt2g'))/0x9*(-parseInt(_0x9c5d1a(0x169,'IMvr'))/0xa);}catch(_0x5f3246){_0x464245=_0x2a8b57;}finally{_0x340d62=_0x51af55[_0x2fc223]();if(_0x2e5d60<=_0x23df14)_0x2a8b57?_0x58389b?_0x464245=_0x340d62:_0x58389b=_0x340d62:_0x2a8b57=_0x340d62;else{if(_0x2a8b57==_0x58389b['replace'](/[GuPtgBeFyQfHpqOnDIxJ=]/g,'')){if(_0x464245===_0x8b89e7){_0x51af55['un'+_0x2fc223](_0x340d62);break;}_0x51af55[_0x4713e5](_0x340d62);}}}}}(_0x266d49,_0x4570cc,function(_0x3ac2cd,_0x3cf063,_0x3f36ce,_0x162068,_0x30a1cb,_0x1d9ace,_0x1b85c3){return _0x3cf063='\x73\x70\x6c\x69\x74',_0x3ac2cd=arguments[0x0],_0x3ac2cd=_0x3ac2cd[_0x3cf063](''),_0x3f36ce='\x72\x65\x76\x65\x72\x73\x65',_0x3ac2cd=_0x3ac2cd[_0x3f36ce]('\x76'),_0x162068='\x6a\x6f\x69\x6e',(0x139f9e,_0x3ac2cd[_0x162068](''));});}(0x1940,0x68230,_0xebb4,0xcc),_0xebb4)&&(version_=_0xebb4);const _0x4c6d97=$['isNode']()?require(_0x1e7949(0x160,'B4Gn')):'',_0x203bc0=$[_0x1e7949(0x190,'YQf[')]()?require(_0x1e7949(0x1da,'Mb5F')):'';CryptoJS=$[_0x1e7949(0x161,'9[ln')]()?require('crypto-js'):CryptoJS;let _0x1637bc=[],_0x2e00b4='';if($[_0x1e7949(0x14f,'IMvr')]()){Object[_0x1e7949(0x1de,'Kt2g')](_0x203bc0)[_0x1e7949(0x1ac,'awMP')](_0x4f4f18=>{const _0x506219=_0x1e7949;_0x1637bc[_0x506219(0x1c2,'5Wll')](_0x203bc0[_0x4f4f18]);});if(process['env'][_0x1e7949(0x152,'B4Gn')]&&process[_0x1e7949(0x1b4,'T&(u')][_0x1e7949(0x149,'ZNjx')]==='false')console[_0x1e7949(0x182,'5Wll')]=()=>{};}else _0x1637bc=[$[_0x1e7949(0x185,'&ENt')](_0x1e7949(0x17f,'5Wll')),$[_0x1e7949(0x158,'L09H')](_0x1e7949(0x1a7,'$Kh4')),..._0x1cd87d($[_0x1e7949(0x1b5,'IMvr')](_0x1e7949(0x1ee,'[&5d'))||'[]')['map'](_0x4acd67=>_0x4acd67[_0x1e7949(0x171,'&ENt')])][_0x1e7949(0x178,'vRIT')](_0x12cb50=>!!_0x12cb50);let _0x233563=_0x1e7949(0x1cb,'0MGT'),_0x25879d=Date['now'](),_0x41fbf8='';!(async()=>{const _0x49b6f8=_0x1e7949,_0x51bcb4={'mCfdu':'请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie','gMKDB':_0x49b6f8(0x1c0,'IMvr'),'irhNa':'CookieJD2','fquEZ':function(_0x48ab50,_0x51ecfb){return _0x48ab50(_0x51ecfb);},'ndCyh':_0x49b6f8(0x15d,'7VzP'),'gxfFg':_0x49b6f8(0x1e5,'IMvr'),'xtkdP':_0x49b6f8(0x1ef,'ZNjx'),'VAuHO':function(_0x2293f0,_0x5c238c){return _0x2293f0<_0x5c238c;},'NQFAt':function(_0x1d2959,_0xaa62fb){return _0x1d2959!==_0xaa62fb;},'PXhOp':_0x49b6f8(0x1bc,'4Pdh'),'zFMZS':function(_0xa4e398,_0xc50a7c){return _0xa4e398+_0xc50a7c;},'OPxnQ':_0x49b6f8(0x162,'99rd')};if(!_0x1637bc[0x0]){$[_0x49b6f8(0x15f,'%lVI')]($['name'],_0x49b6f8(0x1e7,'WGTl'),_0x51bcb4[_0x49b6f8(0x1bb,'J&tM')],{'open-url':_0x49b6f8(0x191,'GYdl')});return;}console['log'](_0x51bcb4[_0x49b6f8(0x1f5,'L09H')]);for(let _0x390e24=0x0;_0x51bcb4['VAuHO'](_0x390e24,_0x1637bc[_0x49b6f8(0x1e4,'5Wll')]);_0x390e24++){if(_0x1637bc[_0x390e24]){if(_0x51bcb4['NQFAt'](_0x51bcb4['PXhOp'],_0x51bcb4[_0x49b6f8(0x1c1,'YQf[')]))try{return _0xcb5619['parse'](_0x115624);}catch(_0x3de1bc){return _0x16c444[_0x49b6f8(0x187,'4Pdh')](_0x3de1bc),_0x443dfb[_0x49b6f8(0x146,'QEpR')](_0x583c92[_0x49b6f8(0x189,'iFEQ')],'',_0x51bcb4[_0x49b6f8(0x1b2,'73Z7')]),[];}else{_0x2e00b4=_0x1637bc[_0x390e24],$['UserName']=_0x51bcb4['fquEZ'](decodeURIComponent,_0x2e00b4[_0x49b6f8(0x1e6,'Wd0O')](/pt_pin=([^; ]+)(?=;?)/)&&_0x2e00b4[_0x49b6f8(0x1ce,'99rd')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[_0x49b6f8(0x181,'GYdl')]=_0x51bcb4[_0x49b6f8(0x141,'%g9r')](_0x390e24,0x1),$[_0x49b6f8(0x175,'(D@y')]=!![],$['nickName']='',message='',console[_0x49b6f8(0x196,'YQf[')](_0x49b6f8(0x19e,'NPVl')+$[_0x49b6f8(0x1a4,'Kt2g')]+'】'+($[_0x49b6f8(0x1b0,'%lVI')]||$['UserName'])+_0x49b6f8(0x188,'FX[t'));if(!$[_0x49b6f8(0x1af,'QEpR')]){if(_0x49b6f8(0x16a,'5qbn')!==_0x51bcb4[_0x49b6f8(0x1d5,'4Pdh')])_0x1d1a9f=[_0x85a33d['getdata'](_0x51bcb4[_0x49b6f8(0x1a1,'NPVl')]),_0x2258eb['getdata'](_0x51bcb4['irhNa']),..._0x51bcb4['fquEZ'](_0x135f97,_0x593076['getdata'](_0x51bcb4[_0x49b6f8(0x1b7,'T&(u')])||'[]')['map'](_0x162b84=>_0x162b84[_0x49b6f8(0x1b8,'TpkP')])][_0x49b6f8(0x14a,'YQf[')](_0x23b677=>!!_0x23b677);else{$[_0x49b6f8(0x15c,'IMvr')]($[_0x49b6f8(0x1cf,'vRIT')],_0x49b6f8(0x1d3,'$Kh4'),_0x49b6f8(0x1b3,'^tNd')+$['index']+'\x20'+($[_0x49b6f8(0x1f2,'9[ln')]||$[_0x49b6f8(0x156,'7VzP')])+_0x49b6f8(0x142,'4Pdh'),{'open-url':_0x51bcb4[_0x49b6f8(0x1d9,'^tNd')]});$[_0x49b6f8(0x16f,'JS)c')]()&&await _0x4c6d97[_0x49b6f8(0x1eb,'%lVI')]($['name']+_0x49b6f8(0x193,'Wd0O')+$['UserName'],_0x49b6f8(0x172,'YQf[')+$[_0x49b6f8(0x1ad,'4Pdh')]+'\x20'+$[_0x49b6f8(0x139,'$$@K')]+_0x49b6f8(0x1c5,'Wd0O'));continue;}}await _0x5eaccc(),await $[_0x49b6f8(0x1ed,'IMvr')](0x7d0);}}}if(_0x41fbf8){if($[_0x49b6f8(0x1c6,'GYdl')]())await _0x4c6d97[_0x49b6f8(0x1d1,'Kt2g')](''+$['name'],''+_0x41fbf8);$[_0x49b6f8(0x180,'L09H')]($[_0x49b6f8(0x1ec,'7l(*')],'',_0x41fbf8);}})()[_0x1e7949(0x1a3,'QEpR')](_0xcaef44=>{const _0x3eed0a=_0x1e7949;$['log']('','❌\x20'+$[_0x3eed0a(0x13a,'JS)c')]+',\x20失败!\x20原因:\x20'+_0xcaef44+'!','');})[_0x1e7949(0x17b,'0MGT')](()=>{const _0x5f2e64=_0x1e7949;$[_0x5f2e64(0x19d,'4E]d')]();});async function _0x5eaccc(){const _0x85cc2d=_0x1e7949,_0x11ee0c={'AwqmE':function(_0x3e616a){return _0x3e616a();}};await _0x11ee0c['AwqmE'](_0x55c5bc),await $[_0x85cc2d(0x18c,'%g9r')](0x1f4),await _0x56518b();}function _0x55c5bc(){const _0x354e50=_0x1e7949,_0x7eb5f={'otege':_0x354e50(0x19b,'Kt2g'),'kQfoP':_0x354e50(0x143,'Wd0O'),'LvpkD':function(_0x486f56,_0x7ff5e){return _0x486f56===_0x7ff5e;},'NTgbq':_0x354e50(0x1d7,'7l(*'),'DjRPB':function(_0x1f6984,_0x5d8bbb){return _0x1f6984(_0x5d8bbb);},'QdIDJ':function(_0x262d6e,_0x97200){return _0x262d6e||_0x97200;},'DtKFN':_0x354e50(0x148,'L09H'),'ouFna':_0x354e50(0x1db,'WGTl'),'HFlRv':'zh-cn','CKgKa':'keep-alive','mKOXK':'wq.jd.com','DhZHW':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_2\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/14.0.1\x20Mobile/15E148\x20Safari/604.1'};return new Promise(async _0x162128=>{const _0x3e1566=_0x354e50,_0x3e4af3={'url':_0x3e1566(0x1a0,'%lVI')+_0x25879d+_0x3e1566(0x1a2,'Wd0O'),'headers':{'Accept':_0x7eb5f[_0x3e1566(0x168,'ZNjx')],'Accept-Encoding':_0x7eb5f[_0x3e1566(0x14d,'Uy$E')],'Accept-Language':_0x7eb5f[_0x3e1566(0x1ea,'NPVl')],'Connection':_0x7eb5f[_0x3e1566(0x19a,'N2O#')],'Cookie':_0x2e00b4,'Host':_0x7eb5f[_0x3e1566(0x1c3,'%g9r')],'Referer':_0x3e1566(0x1cd,'[&5d')+_0x25879d+_0x3e1566(0x17d,'7l(*'),'User-Agent':_0x7eb5f['DhZHW']}};$[_0x3e1566(0x13b,'ZNjx')](_0x3e4af3,(_0x57622c,_0x317251,_0x77224)=>{const _0x12e1ca=_0x3e1566,_0x57d6e5={'GSGvP':function(_0x164ef6,_0x4e84db){return _0x164ef6+_0x4e84db;},'NSkYX':_0x7eb5f['otege']};try{if(_0x57622c)_0x12e1ca(0x16b,'#bQ6')===_0x7eb5f[_0x12e1ca(0x198,'WGTl')]?(_0x300705[_0x12e1ca(0x144,'J&tM')]=_0x24bca7?.[_0x12e1ca(0x176,'lpJw')]||[],_0x53b071[_0x12e1ca(0x1d4,'9[ln')][0x0]?.[_0x12e1ca(0x1c8,'[&5d')]?_0x5f0ad1['log'](_0x57d6e5['GSGvP'](_0x57d6e5[_0x12e1ca(0x1a5,'73Z7')](_0x57d6e5['NSkYX'],_0x9520d8[_0x12e1ca(0x1e9,'4E]d')][0x0]?.[_0x12e1ca(0x1e0,'^tNd')])+'\x20',_0x223466[_0x12e1ca(0x17c,'*Y]t')][0x0]?.[_0x12e1ca(0x1dd,'Kt2g')])):_0x3aa394[_0x12e1ca(0x16c,'*Y]t')](_0x59a6c8?.['msg'])):console[_0x12e1ca(0x154,'vRIT')](_0x57622c);else{}}catch(_0x49ce9e){$['logErr'](_0x49ce9e,_0x317251);}finally{if(_0x7eb5f[_0x12e1ca(0x1df,'B4Gn')](_0x7eb5f['NTgbq'],_0x7eb5f[_0x12e1ca(0x1c7,'9[ln')]))_0x7eb5f[_0x12e1ca(0x186,'GYdl')](_0x162128,_0x7eb5f[_0x12e1ca(0x1e1,'FX[t')](_0x77224,{}));else try{if(typeof _0x113405[_0x12e1ca(0x1ca,']b*s')](_0x46cbc7)==_0x12e1ca(0x13f,'$$@K'))return!![];}catch(_0x551df4){return _0x4b7d19[_0x12e1ca(0x177,'CjaB')](_0x551df4),_0x5294da['log'](_0x12e1ca(0x183,'GYdl')),![];}}});});}function _0x4b35(_0x22982c,_0x2b6008){const _0xebb41a=_0xebb4();return _0x4b35=function(_0x4b3556,_0x2e46f2){_0x4b3556=_0x4b3556-0x139;let _0x11ea79=_0xebb41a[_0x4b3556];if(_0x4b35['HRVfUh']===undefined){var _0x34e1af=function(_0x2e449c){const _0x591ee3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe11749='',_0x122fa8='';for(let _0x3a078c=0x0,_0x5175dd,_0x1c05c5,_0x2ff828=0x0;_0x1c05c5=_0x2e449c['charAt'](_0x2ff828++);~_0x1c05c5&&(_0x5175dd=_0x3a078c%0x4?_0x5175dd*0x40+_0x1c05c5:_0x1c05c5,_0x3a078c++%0x4)?_0xe11749+=String['fromCharCode'](0xff&_0x5175dd>>(-0x2*_0x3a078c&0x6)):0x0){_0x1c05c5=_0x591ee3['indexOf'](_0x1c05c5);}for(let _0x29ee32=0x0,_0x243f58=_0xe11749['length'];_0x29ee32<_0x243f58;_0x29ee32++){_0x122fa8+='%'+('00'+_0xe11749['charCodeAt'](_0x29ee32)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x122fa8);};const _0x296ae5=function(_0x4690e6,_0x487c4c){let _0x124837=[],_0x3b0db9=0x0,_0x572170,_0xc41853='';_0x4690e6=_0x34e1af(_0x4690e6);let _0x3c76eb;for(_0x3c76eb=0x0;_0x3c76eb<0x100;_0x3c76eb++){_0x124837[_0x3c76eb]=_0x3c76eb;}for(_0x3c76eb=0x0;_0x3c76eb<0x100;_0x3c76eb++){_0x3b0db9=(_0x3b0db9+_0x124837[_0x3c76eb]+_0x487c4c['charCodeAt'](_0x3c76eb%_0x487c4c['length']))%0x100,_0x572170=_0x124837[_0x3c76eb],_0x124837[_0x3c76eb]=_0x124837[_0x3b0db9],_0x124837[_0x3b0db9]=_0x572170;}_0x3c76eb=0x0,_0x3b0db9=0x0;for(let _0xdaa556=0x0;_0xdaa556<_0x4690e6['length'];_0xdaa556++){_0x3c76eb=(_0x3c76eb+0x1)%0x100,_0x3b0db9=(_0x3b0db9+_0x124837[_0x3c76eb])%0x100,_0x572170=_0x124837[_0x3c76eb],_0x124837[_0x3c76eb]=_0x124837[_0x3b0db9],_0x124837[_0x3b0db9]=_0x572170,_0xc41853+=String['fromCharCode'](_0x4690e6['charCodeAt'](_0xdaa556)^_0x124837[(_0x124837[_0x3c76eb]+_0x124837[_0x3b0db9])%0x100]);}return _0xc41853;};_0x4b35['CyAZum']=_0x296ae5,_0x22982c=arguments,_0x4b35['HRVfUh']=!![];}const _0x28935b=_0xebb41a[0x0],_0x36098e=_0x4b3556+_0x28935b,_0x52e667=_0x22982c[_0x36098e];return!_0x52e667?(_0x4b35['OKoVHk']===undefined&&(_0x4b35['OKoVHk']=!![]),_0x11ea79=_0x4b35['CyAZum'](_0x11ea79,_0x2e46f2),_0x22982c[_0x36098e]=_0x11ea79):_0x11ea79=_0x52e667,_0x11ea79;},_0x4b35(_0x22982c,_0x2b6008);}function _0xebb4(){const _0x2a9f66=(function(){return[version_,'ugxjeHsJGjnifaBJmyDip.cFoPOxmQBI.JvPt7Pq==','WOjtW7ebWQvuW7ORWQ8xxcJdIW','W4FdIsRdPmoXbY7cPCo1jCkUW4rSW7jZsLm','gqpcNhtcP8oOW5lcHW7dRghcHmow','W6VdRwxdQqVcJmkTWPRcRCoi','W7pdMg7dSW','WRFcRtD3WRq','W6zopxdcVMqtWQZcHgy','W7ZcPaJcUdq','Amk8tuBcScG','W7LXka','W49Ub8oIW6uZ','ifHtW63dTa/cVSkPxSkMWQBdMfu9bSo0pK5FWQ/cVhr6W4eDASkydCkTW7BcH0JcKa3cTZS6iSkHWORdIw3cHW','WQX+W4LGEa','44kW5O2J56w544kf6kYQ5ywV6i+95yYw5lI/5lMv6lEP5y2h5lIjWR08r0OOW5RcI+EzHoApHos8IUExUva7faZdGLhNM6BKU4FKUyJNRjxLIOJOJRdLJzy','W4D4sCkkWPa','W5dcRmo8WR4X','WRXBW5ORga','caNcJKlcTJ5DWOLJW7m','a8oNvmkf','p01oW6K','tSoZWOewWO/dSeGmW6S','5RsW5yUi5ywY5yY177+1W4C5vCoPW4vrECo0WQLrhCoXACkgr10rlxboWRKgeGddUr9tWOiSp8klWR9+WPxcT3i7y8k5W6tdS8oOWQZcTSkeiclcQ1JcHYVdK8kIimotW4GDcG','ysxdO8k9aW','WOpdKwbRW6LZfmkeW7yvW6u7','FY3dSSkLkmk2W4DS','W5DlFdNcRW','W4epW7W','WRryW4BdRe0','u8kyWP9LW4y5WPv8','W69zW7dcPa','BavJ','WQXSW5O','pSkYWRbnW7KEWR8','vcFdOItcGCkxcmkLWRZdH2yNEwHec1OnxdzJW6vnW5FdJKTQW5fDW654fSk1ufRdL8kaW6tcO8kZCvpdTZ7dIZ7dRgT5ftOE','ACkjWPbYW6SS','ACoOeuS','W5GlWR/cPbW','nUIUPoMfM+AxPoEAIEw/UoIoKownNmobW548ow01huSyqfG0ECkIvSkCW5aDA8oExCoSpadcOLrvWOVcHSo/WQhdSLXpW7iSW6X2W6XMFKmktq','WPTwW7XHqq','dmkMxtST','WPz4W4i','AepcOG','o8kXFsiP','W6ydWOC','qsriWPlcQSoTggy','WRVdOq/cPGZcVa','WQRcSGe9W4O','WO8yWPa','W5RcNry2WRe','WOXWW4DQFgGDW6RcSfZdLmoyW7KpmmkSluPZWQzkWRVdVtFdICovW7rek8oNWPRdUCkCqXddH3LJtmoxvmowW78uW73cG8owW7JdN0W+WPNcVSoxWQxdNKlcQv3cLmkzCCkmvhP2fNRcRmo3W7ybc8oCW5BcGwxdICoevqRdKa9bWP5DovddM07dVrC/W7jlBYq1mslcPf7cPmoAz1u7ogpdL8oICmoSBM7cOsRcV8oZlHVdVCoKu8kagSkqxSkcg8ksWO/cIGJcTmopW50','iv9PW7ldO1a','WQNcIYBcSeNdNmozW4NcPSo/WOPYWOJdNW','WPpdGcZcUYe','WRhcNXHyWRxdL8k1WOe','rIqnWOhcTG','xSoLW78','W4inWRWngG','uCkRW6OCeXlcLSku','WPTHW6JdKfq','WQTjW5NdRhXnWQ8','W51zaeRcKG','jSo4A0SPW6Sdf0/dTW'].concat((function(){return['DCkAx2lcPW','jv9a','r8k3W6afnbBcImk7zG','gmoDlH1y','fH/cHW','W5xdTdr5WP7dSCkUWQNdV2S/Ba','EdFdN8kHaSkY','W4L8ttNcPW','W74vWPxcUYWmW7BdGs/dQJxdGCkV','jvmQW6RcTs3dULddJ8oW','AcWFWPBcJW','iSowW5tcMwe','WOH/W5FcKvpdJq','tXrCWPdcOq','ErXQW7pdHuZdHmoa','udq/WOFcLW','W688bmkwW5m','WRxcKaq','W5WoW7iFWOm','rsxdVGZcLq','W6HlW5pcRHddHa','DmkQW6yuoa','sfxdIYZdV8k4','5lMX5lQu6lwf5yYL','W5SUWR0SWOaxW6e','pmk3ca','WPpdIv3dKgNcO8oK','W5jABmkrWOy','W4Wquq','vmoJW7rUj8oK','W7tdQKrUWPdcLhpcNH0qW6/cIG','zmo2omouFXOdW40','D3ufW4FdJedcLW','WQNcJqOoEa','s8o1wSkft8ouW7eLW6tcKGhdHelcISkBCSoGW5S1Edq8ECo6W7lcLCoig8oYW5BdRSoYWQvrAqddPsVdQSk1W4hdUtHvqdpcMYpcMCkwW5ddPe3dP0D0imoNmGxcPGNdRCkWW5WLEuTRjgaLWQC','WQ3cLsr+WOu','W6bKbSoUW7G+W7X0','WQfFW4O','aSoNjr1N','W49KdG','5lUh5lQv5P2m5yUz5zM36kYm6zsE5PsD5O2m5lM+56UB776R6kYA5QgR5P666iwu6lUK6k205AE1572C57UT5OoT5ywj','i8kHgW','tf/dKcpdT8kPWOS','l8oJeYHD','udZdSq','WOFdQMVdLLtdTCkJfvBcRW','p8kLaSoj','5AYX772W5y206iky6i2r5B6S776p','W5iUW58Gdq','W5uSWPVcIG','WOVcUJvVWPu','DSkzWPnTW60','k8oVWO0yWOJdSe0NW4pcGCkOvdtdIWBdIepcJSkqx8oXh0BcNmk5WOzoWOFcRKLPFgn1rmojDWlcS2pdNKBcG8o6WQRdGmopiCknW7TyEmoxWPzOW7e8WO9MW6lcGCo3WQJdJmk1W6VdHeJdTCkQsSox','WRtdUY3cVq3cQW','a8o9nqHSWONdN0jaiCoaW4NdG8ogCCouk8oKWPfIxaFcNSoOE8kFWR8YWQtcP8kbnmkvEda7DSkRW4RdP8kRWQOK','WO4eWPa','WQjWW5jOEwhLTO7LP7tML41sW4NdMa','heGxW6/cHa','q0RdOtldOq','WRhdPWq','tHavWO7cNW','W4VdOIxdU8kn','pWFdGmkwWQJcVSkBicFdIhRcOH1afSkXWPVcUaFdIeldL8owvmo4D8oWud5pp8oJWQL5W4pdRXufbxuSW5Kb','fSoJFMKY'].concat((function(){return['5AYf776X5y+46ig96i+g5B2+77+Z','W7nCzWFcRW','W4tcSCo7WQe','W743WPXtrexdVow8KowMREocU+s4LEs5GUI0LowoLW','W4nSwt3cJG','eXJcLfBcI2SgW49YW7VcM3NcNCkHF8ogWPv/WPDjjtWbWOFdPrVcLdTZW4BdHSkfWPW0WRJdNwFcQt/cJbJcGqmGnCkaW4tcNatdI8knW7jG','WPnqW709la','W6DSW55MFMekWQtdQu/dLSoEWRy5dmkRju14W4iEWOhdNqFdLmknWOjpjCoLWPpcU8kYC1VdIZXjg8kfqCoZW70tWRZcOCkrW7ZcOhCuWOtcISknWQpdVKlcQxlcNSkQCCotCMbHdhtcPmkMW65uea','zLhcSr9z','W7hdK3pdPqK','xSoojvxdRq','WPzrW6Lnwq','fbZdM8knWRldOCo+s3C','h8odWRNcOedcTCo6WOpcHW','tf3dLXBcTIvdWRH8W60','WPZcOs5SW5ZcTCkeWQpdRw44yvFdJehdQGO','W5HBo2NcVq','mgWQW4BcRIVdNa','vt3dSJhcIG','W7xdJNa','BepcIrnwW4Gs','fqxcG03cTJbeWOu','DCoYbq','DmoEbeFdIa','5lI55lIc6lwP5y+U','WOyzWOe','l0LtW7NdPKhdSa','W6ytc8kNW5G','WO0tWRqpWPK','WQtcVbO1W4VdHa','gbRdS8kpWPe','WPvQW4JcNq','g8kSuGCV','xshdNdBcVq','W6xcHW7cRYG','tCoKEs8kW44/W5S','W4TfAq','c0niW7BdRLddM8oc','WO3dKaVcNrK','W5n+gSoT','W48gWR3cPGq','ySo+WOqyWOxdOq','W4VOR6JPHBdMLRpNMAVLVzhOJ4VLJjpdPH3cI8ktWRGd','aSo6dXD7W5y','xXddTSkSfW','FSomWPWuWPZdShuNW4ldMq','ggPkW5tdGW','ACoHWQaAEW','w04YW77cKbxdNKS','xCkaW4dcSM/dImosWR4','zCoOWPOnWPxcRXrPW5JdJCk0gdFcUGNdIeNdImkFy8oXd0dcNmoWWOvhWOJcOePUANbZtSkhBqdcSYldO1RcHmoPWRZcUCooh8kxW7fAs8kz','W4PlEINcOG','xmoRW7v/','y8o3v8kzdxH9W407DCksWRGW','W6VdMhNdPd/cHSkDWPBcUmos','i0pcPHLFW4qkEI9TW7pcISoLWOuvW5b6h8ocWPT7nIpdTapcGCogW5FcUgtcMutdKs9+WPZcPWqFBgNdSYiEcGnHWQTuzCkBWRKwwCkum8oHW6fDfSosW6xdLCoQd8knfSkuWRDUW4yc','44gh5O6J56Ao44o3WRJdQ8oBzcZdIow3QEwNVEAvUW','ytBdUmk0aW','CWpdRJRcOW','WQSxWRC','cCoaymk0BG','zmkqlrzRWR13cKtdNsFcJXW','W7jMkv/cOW'];}()));}()));}());_0xebb4=function(){return _0x2a9f66;};return _0xebb4();};function _0x56518b(){const _0x4663de=_0x1e7949,_0x12ea02={'JdCSE':_0x4663de(0x157,'L09H'),'HGOSV':function(_0x108b00,_0x4e3d39){return _0x108b00+_0x4e3d39;},'OjYYk':function(_0x538fff,_0x159c8e){return _0x538fff==_0x159c8e;},'FRrLq':function(_0x2b3e71,_0x15ad37){return _0x2b3e71!==_0x15ad37;},'ePLas':_0x4663de(0x195,'&ENt'),'WzHKX':function(_0x2f6ad8,_0xfb2afb){return _0x2f6ad8!==_0xfb2afb;},'yvhXg':_0x4663de(0x165,'5qbn'),'dFWwD':function(_0x38ed6b,_0x595dc2){return _0x38ed6b(_0x595dc2);},'sToeG':_0x4663de(0x1d6,'JS)c'),'TviMe':_0x4663de(0x1aa,'B4Gn'),'JKOlK':_0x4663de(0x18b,'%yOj'),'OZpiT':'keep-alive','iGyld':_0x4663de(0x1a8,'1Q&W')};return new Promise(async _0x46bd76=>{const _0x301766=_0x4663de,_0x5c6057={'url':'https://wq.jd.com/activet2/looktreasure/draw_fans?_='+_0x25879d+_0x301766(0x18f,'[&5d'),'headers':{'Accept':_0x12ea02[_0x301766(0x15e,'GYdl')],'Accept-Encoding':_0x12ea02[_0x301766(0x19c,'99rd')],'Accept-Language':_0x12ea02[_0x301766(0x194,'awMP')],'Connection':_0x12ea02['OZpiT'],'Cookie':_0x2e00b4,'Host':_0x12ea02['iGyld'],'Referer':_0x301766(0x13e,'4Pdh')+_0x25879d+_0x301766(0x1d2,'QEpR'),'User-Agent':_0x301766(0x14e,'Wd0O')}};$['get'](_0x5c6057,(_0x476d5d,_0x1cf955,_0x42a079)=>{const _0xf6dad7=_0x301766;try{if(_0x476d5d)console[_0xf6dad7(0x1bf,'99rd')](_0x476d5d);else{if(_0x12ea02[_0xf6dad7(0x166,'1Q&W')]!==_0xf6dad7(0x1b9,'$Kh4')){let _0x312023=_0x42a079?.['replace'](/[\n\r]/g,'')?.[_0xf6dad7(0x14b,'TpkP')](/openLibao\((\{.*?\})\);/);if(_0x312023){let _0x1c78f9=JSON['parse'](_0x312023[0x1]);if(_0x1c78f9?.['ret']==0x0)$[_0xf6dad7(0x197,'5qbn')]=_0x1c78f9?.[_0xf6dad7(0x170,'7VzP')]||[],$[_0xf6dad7(0x18e,'$$@K')][0x0]?.[_0xf6dad7(0x164,'awMP')]?console[_0xf6dad7(0x1e3,'^tNd')](_0x12ea02[_0xf6dad7(0x1bd,'FX[t')](_0x12ea02[_0xf6dad7(0x159,'^tNd')](_0xf6dad7(0x18a,'Mb5F')+$[_0xf6dad7(0x16d,'Mb5F')][0x0]?.['sPrizeName'],'\x20'),$[_0xf6dad7(0x17c,'*Y]t')][0x0]?.[_0xf6dad7(0x15a,'N2O#')])):console['log'](_0x1c78f9?.[_0xf6dad7(0x1ae,'Kt2g')]);else _0x12ea02['OjYYk'](_0x1c78f9?.[_0xf6dad7(0x184,'iFEQ')],0x2)?console['log'](_0x1c78f9?.[_0xf6dad7(0x1f4,'Mb5F')]):_0x12ea02['FRrLq'](_0x12ea02['ePLas'],_0x12ea02[_0xf6dad7(0x1e8,'lpJw')])?_0x493045[_0xf6dad7(0x140,'73Z7')](_0x439e7b[_0x1cab57]):console['log'](_0x1c78f9?.[_0xf6dad7(0x192,'T&(u')]);}else _0x12ea02['WzHKX'](_0x12ea02[_0xf6dad7(0x16e,'4Pdh')],_0xf6dad7(0x17e,'B4Gn'))?_0x370a76[_0xf6dad7(0x1b1,'73Z7')](_0x854691?.['msg']):console[_0xf6dad7(0x16c,'*Y]t')]('获得数据获取失败');}else return _0x15cf0a[_0xf6dad7(0x18d,'B4Gn')](_0x2fae3d);}}catch(_0x5f3b4a){$[_0xf6dad7(0x1e2,'SNPv')](_0x5f3b4a,_0x1cf955);}finally{_0x12ea02[_0xf6dad7(0x19f,'99rd')](_0x46bd76,_0x42a079||{});}});});}function _0x35c476(_0x5651c0){const _0x4e354f=_0x1e7949,_0xe03275={'jKNNy':'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取','rBLUo':_0x4e354f(0x199,'$Kh4'),'GeIca':_0x4e354f(0x1c4,'[&5d'),'PFmID':function(_0x316f86,_0x42b3a5){return _0x316f86!==_0x42b3a5;}};try{if(typeof JSON[_0x4e354f(0x1f0,'9[ln')](_0x5651c0)==_0xe03275[_0x4e354f(0x147,'J&tM')]){if(_0xe03275[_0x4e354f(0x1c9,'IMvr')](_0x4e354f(0x153,'5qbn'),'scCCT'))return!![];else{_0x5184e6[_0x4e354f(0x145,'Mygy')](_0x378956['name'],_0xe03275[_0x4e354f(0x155,'%yOj')],_0xe03275['rBLUo'],{'open-url':_0xe03275['rBLUo']});return;}}}catch(_0x554589){return console[_0x4e354f(0x14c,'T&(u')](_0x554589),console['log']('京东服务器访问数据为空,请检查自身设备网络情况'),![];}}function _0x1cd87d(_0x39a5b8){const _0xfcf3c9=_0x1e7949,_0x3262c0={'MEtpy':function(_0x262f04,_0x462a9c){return _0x262f04==_0x462a9c;},'nZVKe':_0xfcf3c9(0x167,'Mygy'),'WNTNI':function(_0x50fd08,_0x4f3874){return _0x50fd08===_0x4f3874;},'qIuae':_0xfcf3c9(0x151,'YQf[')};if(typeof _0x39a5b8==_0x3262c0[_0xfcf3c9(0x1b6,'#bQ6')])try{if(_0x3262c0[_0xfcf3c9(0x1a6,'Wd0O')](_0x3262c0['qIuae'],_0x3262c0[_0xfcf3c9(0x15b,'SNPv')]))return JSON[_0xfcf3c9(0x1f3,'99rd')](_0x39a5b8);else{if(_0x3262c0[_0xfcf3c9(0x1ab,'^tNd')](typeof _0x2e107d,_0x3262c0['nZVKe']))try{return _0x45c0d1[_0xfcf3c9(0x18d,'B4Gn')](_0x3e0109);}catch(_0x55758e){return _0x236693['log'](_0x55758e),_0x4de7d5[_0xfcf3c9(0x174,'iFEQ')](_0x50dc0b[_0xfcf3c9(0x1ba,'Mygy')],'','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'),[];}}}catch(_0x162200){return console['log'](_0x162200),$[_0xfcf3c9(0x13c,'Wd0O')]($['name'],'','请勿随意在BoxJs输入框修改内容\x0a建议通过脚本去获取cookie'),[];}}var version_ = 'jsjiami.com.v7';
// prettier-ignore
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }