mirror of
https://github.com/shufflewzc/faker3.git
synced 2024-11-13 02:59:15 +08:00
15 lines
39 KiB
JavaScript
15 lines
39 KiB
JavaScript
/*
|
||
活动名称:逛视频任务
|
||
环境变量:jd_video_interval // 自定义运行间隔时长(整数,单位毫秒),默认1000
|
||
jd_video_notify // 是否推送通知(true/false),默认不推送
|
||
jd_video_pinFilter // 账号pin过滤,多个用@进行分割
|
||
|
||
定时随机,一天一次
|
||
|
||
*/
|
||
|
||
const $ = new Env('逛视频任务')
|
||
const _0x105c90=_0x1c41;(function(_0x24bb5c,_0x5f41c9){const _0x199530=_0x1c41,_0x4295d1=_0x24bb5c();while(!![]){try{const _0x5c8cb4=-parseInt(_0x199530(0x1a0,'!ta3'))/0x1*(-parseInt(_0x199530(0xfe,'ONPb'))/0x2)+parseInt(_0x199530(0x215,'3LDd'))/0x3*(parseInt(_0x199530(0x1af,'rslX'))/0x4)+parseInt(_0x199530(0x1a2,'ixTL'))/0x5*(-parseInt(_0x199530(0xe4,'B]Zu'))/0x6)+-parseInt(_0x199530(0x169,'4ual'))/0x7*(parseInt(_0x199530(0xf5,'B]Zu'))/0x8)+parseInt(_0x199530(0x19c,'K6Od'))/0x9+-parseInt(_0x199530(0x134,'%S0Y'))/0xa*(-parseInt(_0x199530(0x165,'4ual'))/0xb)+parseInt(_0x199530(0x1aa,'B]Zu'))/0xc*(-parseInt(_0x199530(0x1cb,'h(Vn'))/0xd);if(_0x5c8cb4===_0x5f41c9)break;else _0x4295d1['push'](_0x4295d1['shift']());}catch(_0x4073de){_0x4295d1['push'](_0x4295d1['shift']());}}}(_0x30dd,0x87529));const jdCookie=require(_0x105c90(0x148,')cLh')),notify=require('./utils/Rebels_sendJDNotify'),common=require('./utils/Rebels_jdCommon'),{H5st}=require('./utils/Rebels_H');let taskThreads=process[_0x105c90(0x180,'@))N')][_0x105c90(0x10e,'5wZK')]||'1';const runInterval=process[_0x105c90(0xe0,'P%b(')][_0x105c90(0xf7,'K6Od')]||_0x105c90(0x16d,'rslX'),isNotify=(process[_0x105c90(0x19d,'7PsV')][_0x105c90(0xec,'gvPC')]||process[_0x105c90(0x1a1,'Nx$g')]['jd_video_Notify'])==='true',pinFilter=(process[_0x105c90(0x1ac,'5cTq')]['jd_video_pinFilter']||'')[_0x105c90(0x1e1,'g%KC')]('@'),randomApi=process[_0x105c90(0x1f1,'LhJC')][_0x105c90(0x1c2,'5cTq')]||_0x105c90(0x155,'5cTq'),maxThreads=0x1,videotaskbodyvar=[{'type':'20','assignmentId':_0x105c90(0x1ef,')e[L'),'scanTaskCodeIndex':'2','activitySource':'1','realClient':_0x105c90(0x126,'!ta3')},{'type':'20','assignmentId':_0x105c90(0x1ba,'B]Zu'),'scanTaskCodeIndex':'3','activitySource':'1','realClient':'ios'},{'type':'20','assignmentId':'44N6QuyCHyb9n6VVr2EHyHKEkEwm','scanTaskCodeIndex':'0','activitySource':'1','realClient':_0x105c90(0x1fc,'ixTL')},{'type':'21','assignmentId':_0x105c90(0x150,'!ta3'),'activitySource':'1','realClient':_0x105c90(0x14d,'8aby')}];let cookiesArr=Object[_0x105c90(0x1d8,'Y1#(')](jdCookie)[_0x105c90(0x191,'a0FO')](_0x1d75af=>jdCookie[_0x1d75af])[_0x105c90(0x21f,'gvPC')](_0x3ca4a7=>_0x3ca4a7);!cookiesArr[0x0]&&($[_0x105c90(0x15a,'4ual')]($[_0x105c90(0xdb,'Y1#(')],'【提示】请先获取Cookie'),process[_0x105c90(0xef,'zhgO')](0x1));!(async()=>{const _0x1a3efc=_0x105c90;notify['config']({'title':$[_0x1a3efc(0x216,'d190')]}),await Main(),isNotify&¬ify[_0x1a3efc(0x113,'XXZ7')]()&&await notify[_0x1a3efc(0x229,']PVt')]();})()[_0x105c90(0x1f4,'zhgO')](_0x4e3e53=>$['logErr'](_0x4e3e53))[_0x105c90(0x22e,'0GXu')](()=>$[_0x105c90(0x206,'!&Tl')]());async function Main(){const _0x47285d=_0x105c90;try{try{const _0x1c94f6=parseInt(taskThreads);_0x1c94f6>0x0&&_0x1c94f6!==0x1&&(taskThreads=_0x1c94f6);}catch{taskThreads=0x1;}taskThreads=Math['min'](taskThreads,maxThreads),$[_0x47285d(0x1d7,'9ClM')]=null;if(runInterval)try{const _0x183939=parseInt(runInterval);_0x183939>=0x0&&($[_0x47285d(0x18a,'h(Vn')]=_0x183939);}catch{console['log'](_0x47285d(0x22a,')e[L'));}console[_0x47285d(0x22b,'QgPG')](_0x47285d(0x135,'*h6]')+$[_0x47285d(0x1eb,'!&Tl')]+_0x47285d(0x14a,'Q8un')),console['log']('活动入口:\x20APP-最下面选项-逛'),console[_0x47285d(0x119,'8aby')](_0x47285d(0x117,'LhJC')+(process['env'][_0x47285d(0x1f3,'%S0Y')]?''+process['env'][_0x47285d(0x1bd,'g%KC')]:_0x47285d(0x1b3,'eZMZ'))+']'),console[_0x47285d(0x209,'j]Md')](_0x47285d(0x175,'zhgO')+$[_0x47285d(0x19a,'rslX')]/0x3e8+_0x47285d(0x159,'a8r[')),console[_0x47285d(0x143,'7Lr3')]('代理开关:\x20['+common[_0x47285d(0x21a,'*h6]')]()+']'),console[_0x47285d(0x200,')cLh')](_0x47285d(0x102,'Nx$g')+(isNotify?'开启':'关闭')+']'),console[_0x47285d(0x160,'7PsV')](_0x47285d(0x1c9,'7Lr3')+pinFilter[_0x47285d(0x1b1,'7PsV')](',\x20')+']'),console[_0x47285d(0x103,'qkDD')](_0x47285d(0x20f,'9ClM')+$[_0x47285d(0x11e,'5cTq')]+_0x47285d(0x1e2,'33LQ')),console[_0x47285d(0x200,')cLh')]('');if(!randomApi){console[_0x47285d(0x18f,'S^v9')](_0x47285d(0x186,'a8r['));return;}$[_0x47285d(0xf3,'Nx$g')]=[],await common['concTask'](taskThreads,cookiesArr,taskFnc),$['hasPrintActInfo']=![],$['runEnd']=![];$[_0x47285d(0x14e,'[%mJ')]['length']>0x0&&(cookiesArr=cookiesArr[_0x47285d(0x1fd,')e[L')]((_0x48a2a6,_0xc652e7)=>!$[_0x47285d(0x157,'4ual')][_0x47285d(0x106,'Q8un')](_0xc652e7+0x1)),$[_0x47285d(0x176,'Myg!')]=[]);const _0x4cc0a2=notify[_0x47285d(0x170,'a8r[')]();_0x4cc0a2&&console[_0x47285d(0x123,'a8r[')](_0x47285d(0x1ec,'[%mJ')+_0x4cc0a2[_0x47285d(0x14f,'B]Zu')](/:/g,_0x47285d(0x204,'33LQ')));}catch(_0x4f9a1e){console[_0x47285d(0x103,'qkDD')]('❌\x20脚本运行遇到了错误\x0a'+_0x4f9a1e);}}async function taskFnc(_0xd94ef1,_0x1b848a){const _0x509b83=_0x105c90;if($[_0x509b83(0x178,'B]Zu')])return{'runEnd':!![]};const _0x6daec8=decodeURIComponent(common[_0x509b83(0x214,'5cTq')](_0xd94ef1,_0x509b83(0x181,'pN3h')));function _0x5c1e57(_0x5d220c,_0x341d2e){const _0x2acc32=_0x509b83;if(_0x5d220c[_0x2acc32(0x1de,'XXZ7')]<=0x4)return _0x5d220c;else{const _0x13b220=_0x5d220c['slice'](0x0,0x2),_0x37c853=_0x5d220c[_0x2acc32(0xe3,'0GXu')](-0x2),_0xdd25b1=Math[_0x2acc32(0xe1,')e[L')](_0x341d2e-_0x13b220[_0x2acc32(0x18d,'@))N')]-_0x37c853[_0x2acc32(0x213,'zhgO')],0x0),_0x54a747='*'[_0x2acc32(0x1cf,'33LQ')](_0xdd25b1);return _0x13b220+_0x54a747+_0x37c853;}}const _0x5072e0=decodeURIComponent(_0x6daec8),_0x48b35f=_0x5c1e57(_0x5072e0,0x6),_0x3477b8=_0x509b83(0x20a,'4ual')+_0x1b848a+'】'+_0x48b35f+':',_0xa04061=notify[_0x509b83(0xda,'5wZK')](_0x1b848a,_0x6daec8);if(pinFilter['length']>0x0&&(pinFilter[_0x509b83(0x13d,'LhJC')](_0x6daec8)||pinFilter[_0x509b83(0x1ed,'S^v9')](encodeURIComponent(_0x6daec8)))){_0xa04061[_0x509b83(0x13f,'uC@8')]('已设置跳过运行当前账号'),console[_0x509b83(0xee,'@))N')](_0xa04061['getInlineContent']()),$['needRemoveCookieIndex']['push'](_0x1b848a);return;}const _0x15992f=await common[_0x509b83(0x110,'7Lr3')](_0xd94ef1);if(!_0x15992f&&typeof _0x15992f===_0x509b83(0x12e,'a8r[')){console[_0x509b83(0x1f9,'h*]M')](_0x3477b8+_0x509b83(0x100,'*VO1')),_0xa04061[_0x509b83(0x1e6,'a8r[')](_0x509b83(0x202,'g%KC')),$[_0x509b83(0x1c0,'7PsV')][_0x509b83(0x17a,'3LDd')](_0x1b848a);return;}const _0x13cbb3=common['genUA'](_0x6daec8);let _0x2c4905=![],_0x36e815=![],_0x1d3059=![],_0x342ae2=0x0,_0x193331,_0x212117,_0x857849,_0x55c282,_0x511b55,_0x38a9e5,_0x4cc8e5,_0x50c357;_0x193331='',await _0xd3aedf(_0x509b83(0x1d9,'d190')),await $[_0x509b83(0x130,'QgPG')](parseInt($[_0x509b83(0x179,'g%KC')]*0x1+0x1f4,0xa));if($[_0x509b83(0x137,'7Lr3')]||_0x2c4905)return;if(_0x193331){let {popAlertInfo:_0x14ab0e,flipDownInfo:_0x36d482}=_0x193331;if(_0x14ab0e){let {hbAmount:_0x5a350f,defaultPopAlertToast:_0xe2397e}=_0x14ab0e;console[_0x509b83(0x1c1,'Myg!')](''+_0x3477b8+_0xe2397e+':\x20'+_0x5a350f+'元');}_0x193331?.[_0x509b83(0xfb,'a8r[')]?.[_0x509b83(0x10b,'uC@8')]&&(_0x36e815=!![],console['log'](_0x3477b8+_0x509b83(0x1a7,'QgPG')));_0x212117='',await _0xd3aedf(_0x509b83(0x151,'4ual')),await $['wait'](parseInt($[_0x509b83(0x193,'0GXu')]*0x1+0x1f4,0xa));if(_0x212117)for(let _0xb4260f of _0x212117||[]){_0x55c282=_0xb4260f;if(_0x55c282[_0x509b83(0xdf,'Y1#(')]&&_0x55c282[_0x509b83(0x16f,')cLh')]['includes']('签到'))console[_0x509b83(0x107,'ONPb')](_0x3477b8+_0x509b83(0x1ce,'0GXu')+_0x55c282['title']),_0x55c282['status']==='0'?(await _0xd3aedf('videoHb_sign'),await $[_0x509b83(0x1ad,'g%KC')](parseInt($[_0x509b83(0x163,'Y1#(')]*0x1+0x1f4,0xa))):console[_0x509b83(0x205,'K6Od')](_0x3477b8+_0x509b83(0x20d,'rslX'));else switch(_0x55c282['status']){case'0':{_0x342ae2=Math[_0x509b83(0x154,'[%mJ')](_0x342ae2,parseInt(_0x55c282[_0x509b83(0x231,'d190')])),await _0xd3aedf('videoRedPacketHomePage_accept');_0x342ae2>0x0&&(console['log'](_0x3477b8+_0x509b83(0x199,'@))N')),await $[_0x509b83(0x185,'P%b(')](parseInt(_0x342ae2*0x3e8+0x1f4,0xa)),await _0xd3aedf(_0x509b83(0x1b5,'LhJC')),await $[_0x509b83(0x174,'h(Vn')](parseInt($[_0x509b83(0x19f,'B]Zu')]*0x1+0x1f4,0xa)));break;}case'1':{await _0xd3aedf(_0x509b83(0x1b8,'Nx$g')),await $[_0x509b83(0x237,'uC@8')](parseInt($[_0x509b83(0x153,'a8r[')]*0x1+0x1f4,0xa));break;}case'2':{break;}default:{console[_0x509b83(0x1f7,'0GXu')](_0x3477b8+_0x509b83(0x197,'gvPC')+_0x55c282[_0x509b83(0x1dc,'h*]M')]+_0x509b83(0x10f,')e[L')+_0x55c282[_0x509b83(0x1ca,'ONPb')]+']');break;}}}await _0xd3aedf(_0x509b83(0xf4,'B]Zu')),await $['wait'](parseInt($[_0x509b83(0x153,'a8r[')]*0x1+0x1f4,0xa));_0x50c357>0x3e8?(await _0xd3aedf('videoRedPacketHomePage_exchangeCash'),await $[_0x509b83(0x208,'@))N')](parseInt($[_0x509b83(0xfc,'Q8un')]*0x1+0x1f4,0xa))):console[_0x509b83(0x1b6,'5cTq')](_0x3477b8+'还需'+(0x3e8-_0x50c357)+_0x509b83(0x1e7,'QgPG'));_0x857849='',await _0xd3aedf('videoHbCw_homePage'),await $['wait'](parseInt($['waitTime']*0x1+0x1f4,0xa));if(_0x857849){_0x38a9e5=parseFloat(_0x857849?.[_0x509b83(0x1d4,'%S0Y')]?.[_0x509b83(0x15d,'XXZ7')]||0x0);let _0x3daa11=_0x857849?.['cwCardFloor']?.[_0x509b83(0x13e,'!ta3')]||[];_0x3daa11=_0x3daa11[_0x509b83(0x21e,'S^v9')](_0x2629e2=>_0x2629e2[_0x509b83(0x198,'g%KC')]===0x0&&parseFloat(_0x2629e2[_0x509b83(0x1dd,'g%KC')])<=_0x38a9e5)[_0x509b83(0x184,'LhJC')](function(_0xf16084,_0xfb87bb){const _0x19e853=_0x509b83;return parseFloat(_0xfb87bb['amountStr'])-parseFloat(_0xf16084[_0x19e853(0x1c5,'3LDd')]);});for(let _0xb9939 of _0x3daa11){if(_0x1d3059)break;_0x511b55=_0xb9939,await _0xd3aedf(_0x509b83(0x1f6,'*h6]')),await $[_0x509b83(0x218,'h*]M')](parseInt($[_0x509b83(0x16c,'uC@8')]*0x1+0xdac,0xa));}}}if($['runEnd'])return{'runEnd':!![]};await $[_0x509b83(0x133,'a8r[')](parseInt($[_0x509b83(0x16a,'KUk2')]*0x1+0x1f4,0xa));async function _0x150308(_0x2b1f49,_0x3df78d){const _0x42efb8=_0x509b83;try{let _0x4a337f;switch(_0x2b1f49){case'videoHb_newCustomerHbLayer':_0x3df78d['code']==='0'?_0x3df78d['busiCode']==='0'?_0x193331=_0x3df78d[_0x42efb8(0x13c,'QgPG')]:(_0x4a337f=common[_0x42efb8(0x1bf,')e[L')](_0x3df78d),console[_0x42efb8(0x22d,'%S0Y')](_0x3477b8+'逛视频首页失败['+_0x3df78d[_0x42efb8(0x1b2,'S^v9')]+']:'+_0x4a337f),_0x2c4905=!![]):(_0x4a337f=common[_0x42efb8(0x236,'ynWV')](_0x3df78d),console[_0x42efb8(0x209,'j]Md')](_0x3477b8+_0x42efb8(0x167,'Q8un')+_0x3df78d['code']+']:'+_0x4a337f),_0x2c4905=!![]);break;case'videoHb_sign':_0x3df78d[_0x42efb8(0xe2,'%S0Y')]==='0'?_0x3df78d[_0x42efb8(0x1ab,'@))N')]==='0'?(_0x4a337f=_0x3df78d?.[_0x42efb8(0x12d,'h(Vn')]?.[_0x42efb8(0x152,'h(Vn')]?.[_0x42efb8(0x15a,'4ual')]?.[_0x42efb8(0xf8,'ynWV')](/(余额到账[\d\.]+[元]*)/)?.[0x1]||'',console[_0x42efb8(0x22d,'%S0Y')](_0x3477b8+_0x42efb8(0x18c,'G2Yy')+_0x4a337f)):(_0x4a337f=common['getErrorMsg'](_0x3df78d),console['log'](_0x3477b8+_0x42efb8(0x108,'7PsV')+_0x3df78d['busiCode']+']:'+_0x4a337f)):(_0x4a337f=common[_0x42efb8(0x1cd,']PVt')](_0x3df78d),console[_0x42efb8(0x1e9,'XXZ7')](_0x3477b8+_0x42efb8(0x1cc,'%S0Y')+_0x3df78d[_0x42efb8(0xdc,'7Lr3')]+']:'+_0x4a337f));break;case _0x42efb8(0x223,'QgPG'):_0x3df78d['code']==='0'?_0x3df78d[_0x42efb8(0x162,'5cTq')]==='0'?_0x212117=_0x3df78d['data']:(_0x4a337f=common[_0x42efb8(0x23a,'g%KC')](_0x3df78d),console[_0x42efb8(0x18f,'S^v9')](_0x3477b8+'任务列表失败['+_0x3df78d[_0x42efb8(0x173,'rslX')]+']:'+_0x4a337f)):(_0x4a337f=common[_0x42efb8(0x124,'5wZK')](_0x3df78d),console['log'](_0x3477b8+_0x42efb8(0x1ae,'j]Md')+_0x3df78d[_0x42efb8(0xdc,'7Lr3')]+']:'+_0x4a337f));break;case'videoRedPacketHomePage_accept':_0x3df78d['code']==='0'?_0x3df78d[_0x42efb8(0x1b4,'!&Tl')]==='0'?console['log'](_0x3477b8+_0x42efb8(0x210,')e[L')+_0x55c282[_0x42efb8(0x120,'!ta3')]+']成功'):(_0x4a337f=common[_0x42efb8(0x111,'a0FO')](_0x3df78d),console[_0x42efb8(0x1b0,')e[L')](_0x3477b8+_0x42efb8(0x18e,'7PsV')+_0x55c282[_0x42efb8(0x1ea,'h(Vn')]+_0x42efb8(0x13a,'7PsV')+_0x3df78d[_0x42efb8(0x1bc,'qkDD')]+']:'+_0x4a337f)):(_0x4a337f=common['getErrorMsg'](_0x3df78d),console[_0x42efb8(0x21d,'zhgO')](_0x3477b8+_0x42efb8(0x17f,']PVt')+_0x55c282[_0x42efb8(0xdd,'!&Tl')]+_0x42efb8(0x192,'h(Vn')+_0x3df78d[_0x42efb8(0x228,'!ta3')]+']:'+_0x4a337f));break;case _0x42efb8(0xf0,'5wZK'):if(_0x3df78d['code']==='0'){if(_0x3df78d[_0x42efb8(0xeb,'uC@8')]==='0'){let {rewardMsg:_0x1c7b45}=_0x3df78d?.[_0x42efb8(0xf6,'qkDD')];console['log'](_0x3477b8+_0x42efb8(0x15f,'Y1#(')+_0x55c282['assignmentName']+_0x42efb8(0x196,'B]Zu')+_0x1c7b45);}else _0x4a337f=common['getErrorMsg'](_0x3df78d),console[_0x42efb8(0x194,'B]Zu')](_0x3477b8+_0x42efb8(0xf9,'7PsV')+_0x55c282['assignmentName']+']失败['+_0x3df78d[_0x42efb8(0x222,'ONPb')]+']:'+_0x4a337f);}else _0x4a337f=common[_0x42efb8(0x219,'B]Zu')](_0x3df78d),console[_0x42efb8(0x164,'Nx$g')](_0x3477b8+_0x42efb8(0x238,'LhJC')+_0x55c282[_0x42efb8(0x140,'S^v9')]+_0x42efb8(0x201,'9ClM')+_0x3df78d[_0x42efb8(0xe7,'LhJC')]+']:'+_0x4a337f);break;case _0x42efb8(0x1db,'j]Md'):_0x3df78d[_0x42efb8(0x161,'P%b(')]==='0'?_0x3df78d[_0x42efb8(0x11c,'a8r[')]==='0'?console[_0x42efb8(0x20c,'9ClM')](_0x3477b8+'兑换现金成功,满足提现将会去提现'):(_0x4a337f=common[_0x42efb8(0x1e3,'7PsV')](_0x3df78d),console['log'](_0x3477b8+'兑换现金失败['+_0x3df78d[_0x42efb8(0x11c,'a8r[')]+']:'+_0x4a337f)):(_0x4a337f=common[_0x42efb8(0x1a4,'S^v9')](_0x3df78d),console[_0x42efb8(0x141,']PVt')](_0x3477b8+_0x42efb8(0x122,'a0FO')+_0x3df78d[_0x42efb8(0x1b9,'5wZK')]+']:'+_0x4a337f));break;case _0x42efb8(0x10c,'@))N'):_0x3df78d[_0x42efb8(0x1f0,'G2Yy')]==='0'?_0x3df78d[_0x42efb8(0x224,'G2Yy')]==='0'?_0x857849=_0x3df78d[_0x42efb8(0xe9,'%S0Y')]:(_0x4a337f=common[_0x42efb8(0x1e5,'8aby')](_0x3df78d),console[_0x42efb8(0x12b,'gvPC')](_0x3477b8+_0x42efb8(0x1d6,'zhgO')+_0x3df78d[_0x42efb8(0x1e0,'B]Zu')]+']:'+_0x4a337f)):(_0x4a337f=common['getErrorMsg'](_0x3df78d),console[_0x42efb8(0x141,']PVt')](_0x3477b8+'现金查询失败['+_0x3df78d[_0x42efb8(0x234,'9ClM')]+']:'+_0x4a337f));break;case _0x42efb8(0x195,'4ual'):_0x3df78d[_0x42efb8(0x112,'@))N')]==='0'?_0x3df78d[_0x42efb8(0x217,'[%mJ')]==='0'?(_0x38a9e5-=parseFloat(_0x3df78d?.[_0x42efb8(0xf1,'B]Zu')]?.[_0x42efb8(0x101,'LhJC')]),console[_0x42efb8(0xee,'@))N')](_0x3477b8+_0x42efb8(0x172,'gvPC')+_0x3df78d?.[_0x42efb8(0x1a5,'g%KC')]?.['amount']+_0x42efb8(0xfd,'ONPb'))):(_0x4a337f=common[_0x42efb8(0x118,'P%b(')](_0x3df78d),console['log'](_0x3477b8+'提现失败['+_0x3df78d['busiCode']+']:'+_0x4a337f),_0x4a337f?.[_0x42efb8(0xde,'ONPb')](_0x42efb8(0x207,'5cTq'))&&(_0x1d3059=!![])):(_0x4a337f=common[_0x42efb8(0x20e,'Q8un')](_0x3df78d),console[_0x42efb8(0x22d,'%S0Y')](_0x3477b8+_0x42efb8(0x144,'%S0Y')+_0x3df78d[_0x42efb8(0x121,')cLh')]+']:'+_0x4a337f));break;case _0x42efb8(0x19e,'P%b('):_0x3df78d[_0x42efb8(0x112,'@))N')]==='0'?_0x3df78d['busiCode']==='0'?(_0x4cc8e5=_0x3df78d?.[_0x42efb8(0x105,'h*]M')]?.[_0x42efb8(0x15b,'h*]M')]||0x0,_0x50c357=_0x3df78d?.[_0x42efb8(0xe5,'a8r[')]?.['goldCoin']||0x0,console[_0x42efb8(0x1c1,'Myg!')](_0x3477b8+'我的现金余额:\x20'+_0x4cc8e5+_0x42efb8(0x1fe,'KUk2')+_0x50c357+'金币'),_0xa04061[_0x42efb8(0x11d,'ixTL')]('我的现金余额:\x20'+_0x3df78d?.[_0x42efb8(0x145,'7Lr3')]?.[_0x42efb8(0x13b,')cLh')]+_0x42efb8(0x1c7,'Q8un')+_0x3df78d?.[_0x42efb8(0xe5,'a8r[')]?.[_0x42efb8(0x211,'qkDD')]+'金币')):(_0x4a337f=common[_0x42efb8(0x11b,'ixTL')](_0x3df78d),console[_0x42efb8(0x119,'8aby')](_0x3477b8+_0x42efb8(0x12a,'a0FO')+_0x3df78d[_0x42efb8(0x10a,'*VO1')]+']:'+_0x4a337f)):(_0x4a337f=common[_0x42efb8(0xe6,'uC@8')](_0x3df78d),console[_0x42efb8(0x205,'K6Od')](_0x3477b8+'查询余额失败['+_0x3df78d[_0x42efb8(0x1a3,'a0FO')]+']:'+_0x4a337f));break;}}catch(_0x2791e6){console['log'](_0x42efb8(0x1d0,'0GXu')+_0x2b1f49+_0x42efb8(0x156,'ONPb')+(_0x2791e6[_0x42efb8(0x220,'S^v9')]||_0x2791e6));}}async function _0xd3aedf(_0x3e71ce){const _0x524406=_0x509b83;if($[_0x524406(0x137,'7Lr3')])return;let _0x5c648c='',_0x3a0734=null,_0x18c099=null,_0x357870='POST',_0x1b5942={},_0x5164dd={},_0x11dfa6={};switch(_0x3e71ce){case _0x524406(0x1d2,'Q8un'):_0x5c648c='https://api.m.jd.com/client.action',_0x1b5942={},_0x18c099={'functionId':_0x524406(0x1bb,'*VO1')},_0x3a0734=common[_0x524406(0x12f,')cLh')](await getSign(_0x524406(0x11f,'rslX'),_0x1b5942));break;case'videoHb_sign':_0x11dfa6={'appId':_0x524406(0x15e,'gvPC'),'functionId':_0x524406(0x10d,'j]Md'),'appid':'video-redbag-h5','clientVersion':common['getLatestAppVersion'](),'client':_0x524406(0x146,'%S0Y'),'body':{},'version':_0x524406(0x226,'0GXu'),'ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st[_0x524406(0x225,'7PsV')](_0x11dfa6),_0x5c648c=_0x524406(0x127,'S^v9'),_0x3a0734=_0x5164dd[_0x524406(0x1d3,'Nx$g')];break;case _0x524406(0x227,'zhgO'):_0x11dfa6={'appId':_0x524406(0x203,'h(Vn'),'functionId':'videoRedPacketHomePage_info','appid':_0x524406(0x12c,'0GXu'),'clientVersion':common[_0x524406(0x21b,'a0FO')](),'client':'wh5','body':videotaskbodyvar,'version':_0x524406(0x22f,'h(Vn'),'ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st[_0x524406(0x187,'!ta3')](_0x11dfa6),_0x5c648c='https://api.m.jd.com/',_0x3a0734=_0x5164dd['paramsData'];break;case _0x524406(0x188,'eZMZ'):_0x11dfa6={'appId':_0x524406(0x128,'K6Od'),'functionId':'videoRedPacketHomePage_accept','appid':_0x524406(0x1fa,'Q8un'),'clientVersion':common[_0x524406(0x104,'h*]M')](),'client':_0x524406(0x1f8,'Nx$g'),'body':{'type':'20','assignmentId':_0x55c282[_0x524406(0x17c,'ixTL')],'itemId':_0x55c282[_0x524406(0x15c,'0GXu')]},'version':'4.7','ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st[_0x524406(0x16e,'pN3h')](_0x11dfa6),_0x5c648c=_0x524406(0x17e,'3LDd'),_0x3a0734=_0x5164dd['paramsData'];break;case'videoRedPacketHomePage_done':_0x11dfa6={'appId':'12bf2','functionId':'videoRedPacketHomePage_done','appid':'video-redbag-h5','clientVersion':common[_0x524406(0xed,'G2Yy')](),'client':'wh5','body':{'type':'20','assignmentId':_0x55c282[_0x524406(0x168,'ONPb')],'itemId':_0x55c282['itemId']},'version':_0x524406(0x1ee,'!ta3'),'ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st[_0x524406(0x1df,'gvPC')](_0x11dfa6),_0x5c648c=_0x524406(0x221,'P%b('),_0x3a0734=_0x5164dd['paramsData'];break;case _0x524406(0x125,'!&Tl'):_0x11dfa6={'appId':_0x524406(0x1fb,'9ClM'),'functionId':'videoRedPacketHomePage_exchangeCash','appid':_0x524406(0xff,'%S0Y'),'clientVersion':common[_0x524406(0x183,'KUk2')](),'client':_0x524406(0x1a8,'@))N'),'body':{},'version':_0x524406(0x1c6,'@))N'),'ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st['getH5st'](_0x11dfa6),_0x5c648c='https://api.m.jd.com/',_0x3a0734=_0x5164dd['paramsData'];break;case _0x524406(0x1e8,'zhgO'):_0x11dfa6={'appId':_0x524406(0x109,'K6Od'),'functionId':_0x524406(0x182,'!&Tl'),'appid':'video-redbag-h5','clientVersion':common[_0x524406(0x1ff,'gvPC')](),'client':'wh5','body':{},'version':_0x524406(0x171,'7Lr3'),'ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st[_0x524406(0x1a9,'ONPb')](_0x11dfa6),_0x5c648c='https://api.m.jd.com/',_0x3a0734=_0x5164dd[_0x524406(0x149,'B]Zu')];break;case _0x524406(0x233,'ixTL'):_0x11dfa6={'appId':'7f9c4','functionId':_0x524406(0x233,'ixTL'),'appid':'video-redbag-h5','clientVersion':common[_0x524406(0x232,'8aby')](),'client':_0x524406(0x21c,'ixTL'),'body':{'bizTraceId':_0x511b55['bizTraceId'],'amount':_0x511b55[_0x524406(0x177,'4ual')]},'version':_0x524406(0x1f5,'7PsV'),'ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st['getH5st'](_0x11dfa6),_0x5c648c=_0x524406(0x16b,']PVt'),_0x3a0734=_0x5164dd[_0x524406(0x1da,'K6Od')];break;case _0x524406(0x1b7,'[%mJ'):_0x11dfa6={'appId':'a3b98','functionId':_0x524406(0x22c,'ONPb'),'appid':_0x524406(0x1c3,'G2Yy'),'clientVersion':common[_0x524406(0x1be,'S^v9')](),'client':_0x524406(0x1d5,'B]Zu'),'body':{'activitySource':'1','realClient':_0x524406(0x129,'a8r[')},'version':_0x524406(0x171,'7Lr3'),'ua':_0x13cbb3,'t':!![]},_0x5164dd=await H5st[_0x524406(0x158,'ixTL')](_0x11dfa6),_0x5c648c=_0x524406(0x166,'8aby'),_0x3a0734=_0x5164dd[_0x524406(0x17b,'4ual')];break;default:console[_0x524406(0x1b6,'5cTq')](_0x524406(0x1c4,'%S0Y')+_0x3e71ce);return;}const _0x82d439={};_0x3a0734&&Object[_0x524406(0x11a,'7PsV')](_0x3a0734,_0x82d439);_0x18c099&&Object[_0x524406(0x142,'Myg!')](_0x18c099,_0x82d439);const _0x52d965={'url':_0x5c648c,'method':_0x357870,'headers':{'origin':_0x524406(0x19b,'j]Md'),'Referer':_0x524406(0x115,')e[L'),'User-Agent':_0x13cbb3,'Cookie':_0xd94ef1,'content-type':_0x524406(0x1f2,'33LQ'),'accept':_0x524406(0x18b,'P%b(')},'params':_0x18c099,'data':_0x3a0734,'timeout':0x7530};_0x357870==='GET'&&(delete _0x52d965[_0x524406(0xf6,'qkDD')],delete _0x52d965[_0x524406(0x14c,'d190')][_0x524406(0x14b,'33LQ')]);const _0x151c19=0x1;let _0x3bcac9=0x0,_0x5b6118=null;while(_0x3bcac9<_0x151c19){_0x3bcac9>0x0&&await $[_0x524406(0x190,'%S0Y')](0x3e8);const _0x14f53c=await common[_0x524406(0x239,')cLh')](_0x52d965);if(!_0x14f53c[_0x524406(0x1c8,'*VO1')]){_0x5b6118=_0x524406(0x1e4,'QgPG')+_0x3e71ce+_0x524406(0xea,'pN3h')+_0x14f53c[_0x524406(0x116,'zhgO')],_0x3bcac9++;continue;}if(!_0x14f53c[_0x524406(0xe8,')e[L')]){_0x5b6118='🚫\x20'+_0x3e71ce+_0x524406(0x1d1,'h*]M'),_0x3bcac9++;continue;}await _0x150308(_0x3e71ce,_0x14f53c['data']);break;}_0x3bcac9>=_0x151c19&&console['log'](_0x5b6118);}}function _0x30dd(){const _0x2c1c2d=['4P6WWOZMNkNNN5NORjFMSkRdJW','W5lcGCk5WPdcUSk6c8oHba','oZOR','5yw877+w6ywI5BMP5lYb6AkGW6ZdHG','W5iCW4DoW4fFWOq','6lAz5y+o6l6a5RMPWORcSmkP','W5BcTSknESopW5a','qs4ZW65bnmolBSoTWPFdK8oTWQ8','566c5yQC5AsY6lszWRS','WOldVSo4tmoxjCoNWPfAaCkj','5Q625zYu5yc55lIp5yUJ772o','imkqW6aKa8o/','4P6zhoADIEIaIEASOEEGUUwMGoEsH2u','CEIUToAWGowLTEI3LSo24PYkW5BMLzdLKyJLUR3MLkhMJke','sCkZW5Cnn3xcTmk5qGC3W4fzW7nRW5hdJh5AW70xW5FcTmkJWPJcUW','BmosWP95WQddN8kzfmopWO8','WP/dJxbuWQijWOpcSwOesbZdRtnJW7a','y8oyW6u','54YL6yA+5P2b6k+v5AwN6lsKuG','WORdH8oTW7ldQmonA8kw','AxepW7G','Bb45W7hdKZFcQZBcICkYihPAWQldUmk1WRBcNmkxFSk8iKlcNvCy','jr42WOxdJSkxwN7cPSo1','ldNcPmozufyyW6WPbKlcQspcJSkNWRZcNCooW4pcPSoFWO88WORcQtusW63dSKlcImouyNtcJG','mdaXlCkuWRJdU8ktW57dSwCWiHW','x8owWRmSWPBcRSoSp8oG','WQDmpwLPW7O','WRa8W53dGeldSe8','DSofWQmWWP9lW74l','tColWRaWWOW','5y6k6ys654IM5Oga57QX5P+uWRNdUaVdHWBdNZhdLWH0','CmozuCo+W4WoFb1GW6Tr','8yI5Qmo5','a8kWWPfCBmomvMnHW4eU','uCkrdW','5lU06yss5BUy5y2m5lUN5ywi5O2a54++6ysw','W6mgW4bsouLRfCk2WOKQCSo0BWfDgLS','WQDgna','fM91WRqxBmkFw8oTWO3dSmoyWOVdLG','WPugomoP','eFcIGz/cNoI8NUIGP+E4MEAEMtu','W6NdKCohCs7dQLSb','WRW8WOy','fw3dR8kQiCkEW6eeawNdTSk1amo0DCojBhhdKmoRyahdQrrXfSk/','WQ47WOVdVG','pSkGW70','m8kfW6aTc8oOW6xcSv/cLvxdJxtdH0i+W7rHW75JWP0lWQddSxJdTcpdRCkGvmkUWOaU','WRBdQfXVWQKVWQhcJ0u3za','W7yoW5bupG','i8kseG','bSk2WRxdUa3cIZVdOCkaWR/cHN7dRMq','WRLtba','A8oBW5G','psWL','sCkZW5CnnXdcPmkdsaaHW6ubW6GQ','W4xdHCk8WRBdNW','hN9m','qtpdQmkhl8ky','5yEQ77YI6ywL5BQx5l686AcazmoG','WRa8W53dHbBdT15NWRxdUXDSe8ogW5tcTq/cUKm','q8olFa','WQdLPPFOTQhdNq','6lsy5y2m5Ps85Psr','eYK3WR4t','CUkDQCkW','oraJ','WP8io8oP','5Q6D5Q6X5O2F54YE5AEa6lw1','Ehv1BW','nJ/cPW','44oe6lsM5y2G','vt/dRKtdJwa1WO7cUW','WPhdICoJ','562j5yQR5Bs45A6a5OQ0776b5OoT5lUE5AAk5BsT5A2e5OMp566z5yMK77266k+F5PIv5PEo5ys95PY8','wmk/W4CTkK/cUCkuyreN','W4dcM8k5WRVcGCkzo8oom8kS','5BYN5AAr5lM/5yMseq','bh3cRfqxwMnX','sJGoW4a','W7KkW4PqiMK','WP7dTCo7W63cNJ9kamkGW77dS1y+WOe','WOVdLCoIWR/cJCkfm8oXba','DbyWW7e','EqddJ8ovWO0eWQ5G','jIiRma','C8ovWQqCWQ5wW7uCcLbV','f8k6WQxdJrdcRchdM8kKWPtcG2xdMga','scGcbSkPW4VdQ8kAW4r8WPVcNCo4o3hdGZpdNc8','ahGk','W7KaW4m','W6BdLSoiAt7dVa','WReWW4xdVbldSq','W63dMSoxBJRdQvS','FxtcTKxcI8klomk+W4ZdIMi2rZiKWPtcOCkKnJzf','W4FcT8kFz8o5W4ZcVrO','WQJcQSk9W4zTs0CQWPFcGfJdL8oPgSkhxXSMW5hdOSohWPhdNSofabpcMa','WQ8HWPZdSICQDgy','CmozuCoZWOSpzW','W6esva','W6mgW4bsovnSmSkrWRCHDSo8FHLtefVcMCokxXxcL8oiedqN','W6T9W5xcTa','WPxdRSo/yq','4PQhEUIfRUwTQEs4G+I8UUIJQUMwPEMBSUAxJ+MxJoITM+E8JoMwJoIUOW','WRlcRmk+','W5pcQ8kiA8ovW7hcVbVcGmoHEmoRaNJdVK/dVSkHW5JdG3SdWRb9ogyacXBdLJ94BW','WPddG2q','WRnvdCkvlJJdVq','qZiX','eSkWWRxdPa','Bry0W6ddUaRcUWJcK8k+ofC','a8kWWPfvF8okxgjyW7m5W7NdSs/dNL7cMNr8','axLBW6tcLNbMWRpcN8kUymoSWOqL','WP7dICoGW6m','zSovWQeSWRLxW64','cMpcRLVdPLKXWPJcHmoXrG','amoDWQf9','5A+x5OUE5lMW5yQTDq','xCobANn3zCoc','wCoEWQGCWORcQmoqoCoFzKy','W4X+gmoOWQBdLq','BhuBW64','W5Xwi8oO','WPOujSoLs0VdSwBcM8ohWOGKiSky','W4ZcRmkpySopW4FcVaW','DN0cW6D5','Cg7cTa','sJVdVa','WP/dG2Dz','WQzqcSkxjW','imkiW6LTW6SqW6KmnLPcWRK','u8kza8kX','emozWRXmWPpdQmodjxtcNqa','omkHW69P','qZVdSmks','WPJdJxDD','WQ7OR4hMS5JLPPFOTkOi4PYaWQu','fCojWRTGWQldTCoimG','WR09W7BdVH7dP157WP7dLaHOlmofW58','WQOXWPVdLWuXDxbrWOqHr8oIECkrWPhdQ1PB','y3T7','W7axW41d','W5LLgCoSWR3dOSoZDudcJhS5WQXHe8odWRJcP8oVWO7dG8opAaNcKmozvW','CmorWQq4','qIKkWRBdIqKZWRpcISkJsmoVWPy','CSowWOH8WP/dICkWgSonWOTsarGwWQJcMSoLW6xdP1lcHG','ySozWRq8WRn2W78kf0jRWQddT8kiWRTPxbxdOv42DCkjW4TVcedcPdOGW6roAa','lCkcW6jVW6HpW4SDn05Y','b3pcTfe','pXSBWPldISkaE3dcJCo9Dh0nW4HEy8oz','agFcRN3dVa','5A6B5OQS5lUE5yIAW6u','pYlcSSottq','w8kzdSk1WQKehmkzvSk3W4PJWQdcNNTapbDcWO97aKrk','smk7W5OCdftcU8kd','5yEMWP/dGoIVUEwEKSoIWOKVW73MIPhNMP/cREMtLUwmIEs6M+AFHEEEMa','WPtdUSoBp8kkW5tcVH3cVSomwa','WORdHwDzWO9fWP3cTwaftd3cRdq5','6lAh5y6E5Pwe5PwL','oSkJW6r5qmoh','6ycg552w5O2f6yczW7FcJmkg','d33cPW','nIy2cmksWQldS8kfW4tdHfKHgrX2WRtcGmo2za','nsi2jq','vSk0W5aelvNcS8kv','W4NcRCkl','562P5yQm5Asu6lAEW6u','yHL9WOFcLW','W4mCW5DeW6DdWPpdTa','a8oDWRTIWRldRSoni0ZcNq','Ex14FJVcSG/dONhcUSkztZisabZcTCoy','ldNcPmozueWFW5CkdKBcRa','W4vOiSo/WRVdLmoZFK/cSMW6WRTWoSoiWQy','EUElRoAcHCkO','W5HCm8obW5/dT8kBWPyWWRfyWQ7cMaG','scGcd8k6W43dOCkBW71oWOW','BhT4FG','WQXmj0n4W6eAtYhcNG','DhdcSLNcKCosDSoLW4tdLwu3qg8HWP4','tY7dSmkdoCoqWOL+fKVdNmold8k7jSo6ocRcJCoflGhdG0LOFSoSrmowkZfSpSoiW73dPhLXlCkJxmkKuCkQiSo3W41rFCoTlmo6lH3dTXK0W6BdLmkQWRb4WPtcM1ldMmoLwvtdQ1u','W7aDW5zyja','cmkhW4Xc5PYJ5yIsW6yGuq','CMxcTNdcISodEmoJW6ddIwW','cmk6WOi','DSopvSosW5Ks','ehvlW4tcI0PRWOlcPCkcyW','vCknbmk5WPGSf8kq','hN5mW6tcI0W','WPFdSCoIW4S','qCoYWQ5PW4VdKYDlW43cUSk/hmksjWjhDK7dGHhdUxVcK3FcSIi','W6LHW4lcUgJcG0P8xIlcPSkVW6hcSa','tmolF2m','5yw+5OYV54+g6yAB5AE56lAA5AA/6lEmW6S','w8kxea','W4HPcComWQddGSo5y13cNN8','WO0omCoPq3FdUwFcPCosWQuUkSkjmmkbmHu/l8oaCxjyrSo2AmkqW7GLtSopCZldJW','W6f9W4i','W6JdI8oqBsJcTbfDW6lcJ8ksr8kqW77cHZyqW4SDCqi','yeGLW53dGa','xSkxba','5P+k6k6V5lYV6Aox5AE56lAAW5u','WRS2W44','WQnvb8krlxNdTSoKiti5gb3cUgC','e31YWRW','vCkxgmk8WR4Ihq','xSorFNrRrCocW5fwk0xcGCoTWOPAytzCia','WQNcOSkWW5C','gNLadCk7W53dT8kEW78','t8keW7OWW5NcQSkDpxVcJYdcPCkq','qmkzhSkK','W47cNgPVWPalWRVcHG','tCoIW6ZcOf/dVMtcN8okW50','DSoFWRqG','W41mkCoiW57dTa','dCoQW5O7kf7cGSkW','W6P4yrNdSSkBW5qgmSkEWQ8','sUwMJEI0GmoG','tmofAg4','WRRcOSkTW4i','mSkGW6HGw8oxWRLZ','W6TZW4pcTxW','eCovWRa','W6hdJmoxDdZdOfmxW63cI8k1cmkqWRu','WONdTmoR','oSkfW67dKCo2iW','W5nwia','5OYS54YC5AsY6lszWRS','W5Tym8oS','WOVdHdy','W5X4d8oGWRZdL8o/D2K','aCklCwjrECozW4Hwia','zmorWQi4WRfxW54pm0i','5y+N6ysv5B6Z5zgh54UU5Oc8W6VdMXfFFCk/eCk9iSkd','eCkAW741b8oLW7ddQglcG0VcHW','CHi8W7ddMq3cUG','dCk6WPy','DrddMCoyWPWoWQDQst3cHHZcMfTHW77dNNSAD8kB','zSovWQa1WR1hW78','WRT7W7tcVJZcIuvkAHhcJCkKW5tcNSkUW7BdOhhcQuSrjwtdSSkQk8kLWOK','WQjPW7mbxJxdG8k8W6NcTtFcKmkqWOFdJN/cQKW6W5ddOaWHy0LtuG','bxLXWRWczSk/tCoK','qmkzhSkKWO8QhSkq','DHtdHa','WPhdPmo7W57dI38og8k2W4hdTvrLW5zyxHZdT8oEW6lcHSoPEwVdN31mAf4','WOxORlxMSQ7LK4pLUk7cGW','WRPLW7iayWldI8k3W4/cSrFcLmkAWPJdR3xcJKCoW5tdVW','ehvlW4NdJeTW','56ELWQxOVQFOOPZPLk/PM5FMLOxPLOO','WRLZW7a','mIiXla','WRXibSkzcZa','WQPephTZW6y','W6vPWPVcUXe','5A6o5OIe5lQn5yIQrW','E8otqG','DM/cPLa','WPVdPCo8W4FcSJ9fda','DxuFW79iW5hdSga','CmoCWOO','W6e5WQjtavBcKCkBW5VcHHJcL8kK','dmkHWPfPBCkefJ5nW4iGWQFdIMtdHKNdNxH9vSo8','6ycK6ksC6AcI6AE+6AcT5Asm6lEZWR0','W4tcSCkFz8oDW43cTbRcVSo0uSoK','W6e0WQeJqGxdN8kVW7y','W55pW53dOSkXW7qZWQu','WO3dR8o4ECowBCkNW4X2aSkheCopWPrYnthdGCoZW5Oa','amoDWQf9WRxdS8obmG','bSkRW7O8','W6LtW67dRJPBW6G','w8onB2P3','umkDa8kDWR4WamkuvCkr','WOSxCa','5OUh5yUg5O2554Y4la','vCoUWRLLW6FdTcfX','ah1VWQK','6zwH6zU75Pws6zwiBcfs','nCktW7JdNmodkgr2wSokdSozW4hdSCoXqSoVuvhdPGK','WRvTW7GrxXpdTCkSW4S','zSofWR4CWRja','sCoAWRuTWQZcS8oslG','W4pcMCkLWO0','WQrHW6ufxbtdOSk5W43cTq','fMnmW6JcNLzPWPxcHSkftCoN','hSkCldbIrCoDW41Xma','W5VcMmkIWPxcP8o0D8k6fWjbaLqpoeFcR8o4WOhdKd8','5B+L5Awq5lM35yQOW74','ANPQ','W75cW4xdLMzg','WO0omCoPq23dVKdcGSoSWQ4QiSkykmkpobu','W45lW4ddMSkeW6K7WRpcUmopWQZcO8ofdCkYWRBdT1hcSq','kmkHW7L4','yMhcQ0e','4PQxW5JOROdLHPJLRyhKUiOGWRX1WRRNJiRLOONLJjBPHjlLKjtLHR3OVP/OOk7OHltMN4BVVlm','W693W4xcMtRcNLm','WQ0PmK3cRCk+W5yadmkZWO83gmkyWQdcJCoYcxjOxX43WRpcNSoPm8krEa','W4dcOSk9WPJdHtTWgSk1W4xdQa','ah1VWQKKA8kFwW','DhdcSLNcKCosDSoLW4tdLwu3qg8HWP7cO8oNlt4sWRSAW63dJCoKvSoAW4RcKmoGWPldVW','566Z5yMK5OU/5yIexMu','y3fYFcdcKG','5BYx5Aw35lUE5yIAW6u','W6ZdKmod','WOVdJwPi','qIWg','kUwKREI0O8kg','WQjDcSkafJ3dQCoK','EmoFWRC','WQjPW7mbxI/dHmkBW47cIZdcLmk2WOq','sEAkOowjJ2pdVa','5P+955685lMs5yIPla','xComWO8TWPNcRSokoa','5OMO6kgy562v5B6E5PAI6zso5PYi5AYT5OIw5lIE5yMq','qmo6WQn4W7ddSIHX','mItcTmomtd5sWQCjfu7cPIpcJmobWR7dNSobW7FdQCoBWOuo','BuD2W53cM8oul3xcKmo1xwiK','CSosuW','y2NcPLdcL8oJCSo1W73dM2HZt2GgWP/dOSkIctOnWQPQW6ZdLmoGtConWQVdN8kKW5JcRa','y8orWRKTWOHnW7Cl','WRWJW4JcSNVcRKjO','ECoDWPS','qYbpW4ZcN0b0WQG','tcislW','W6FdMSoqwcNdVfeaW47cJmkC','wSoAWQG4','imkbWQK6WQHNW78F','5lIu5AEQ5BsR5yQu5A6o6kEF6AkZ','EhWP','W4lcP8kyrSkpW5dcRq','jCkcWPmHWP9hW7eg','BwfVCHFcLqNdHa','WPZdVSo5','sCoAWRuT','5lQH5yUX5yUx6kou5Aso6lsHjG','bSkJW706W5tdIc56W63cQG','sZxdOW','FCottmov','W6ldISoxDbJdOvOx','5ywE57YUbwhcHCkI5P6+5yUf','WPKsjSoLB0RdUgy','lCkNW69PqCoHWRLKwSooW7TWjmkqWQJdQSk8nmkgW4xdNueDAtvdzW','WPxdV8oO','BrZdMmozWQe5WQ9HBZNcPHJcKKraW7tdUNaUC8keWQlcNxjbaf5aCJz7vmoA','ASoAWOL9WQldVSk4eCoRWO9YbrijWONcKmobW67dK1BcMq1zwSotDxm','W4XJgCoS','j8oAWQOnWOvIW4K4aujqWORdUCkEWPz2EqpdPW0tr8oVWO5qb0dcUq','W5CaW4biW4TKWPxdJSkvtSkpWQ8MxNNdKcVdOf7dRmoyW7VcUdTVgW','awFcS1KxwM56','Dmo/WOmkWRhcNCoXfmotrwG','W6FdMSoqutRdULSbW7FcVSklgCkRWRxcNYfxW4CC','qd/dSmk2omkyW4KJk0RdLa','ECozqmoFW6WzFGbBW711WOmmW7ldIqxdVrldImk2ra','n8kzW7O','WRpdLmoqW73cUbDVnSkeW7JdMW','WRS9WOVdVGTOyMzbWQCWumkzDmow'];_0x30dd=function(){return _0x2c1c2d;};return _0x30dd();}function _0x1c41(_0x356082,_0x4560bc){const _0x30dd69=_0x30dd();return _0x1c41=function(_0x1c4179,_0x82d0ae){_0x1c4179=_0x1c4179-0xda;let _0x53a8e9=_0x30dd69[_0x1c4179];if(_0x1c41['AFPEOe']===undefined){var _0x47f239=function(_0x3ca4a7){const _0x4e3e53='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4cc0a2='',_0x1c94f6='';for(let _0x183939=0x0,_0x48a2a6,_0xc652e7,_0x4f9a1e=0x0;_0xc652e7=_0x3ca4a7['charAt'](_0x4f9a1e++);~_0xc652e7&&(_0x48a2a6=_0x183939%0x4?_0x48a2a6*0x40+_0xc652e7:_0xc652e7,_0x183939++%0x4)?_0x4cc0a2+=String['fromCharCode'](0xff&_0x48a2a6>>(-0x2*_0x183939&0x6)):0x0){_0xc652e7=_0x4e3e53['indexOf'](_0xc652e7);}for(let _0xd94ef1=0x0,_0x1b848a=_0x4cc0a2['length'];_0xd94ef1<_0x1b848a;_0xd94ef1++){_0x1c94f6+='%'+('00'+_0x4cc0a2['charCodeAt'](_0xd94ef1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c94f6);};const _0x1d75af=function(_0x6daec8,_0x5c1e57){let _0x5072e0=[],_0x48b35f=0x0,_0x3477b8,_0xa04061='';_0x6daec8=_0x47f239(_0x6daec8);let _0x15992f;for(_0x15992f=0x0;_0x15992f<0x100;_0x15992f++){_0x5072e0[_0x15992f]=_0x15992f;}for(_0x15992f=0x0;_0x15992f<0x100;_0x15992f++){_0x48b35f=(_0x48b35f+_0x5072e0[_0x15992f]+_0x5c1e57['charCodeAt'](_0x15992f%_0x5c1e57['length']))%0x100,_0x3477b8=_0x5072e0[_0x15992f],_0x5072e0[_0x15992f]=_0x5072e0[_0x48b35f],_0x5072e0[_0x48b35f]=_0x3477b8;}_0x15992f=0x0,_0x48b35f=0x0;for(let _0x13cbb3=0x0;_0x13cbb3<_0x6daec8['length'];_0x13cbb3++){_0x15992f=(_0x15992f+0x1)%0x100,_0x48b35f=(_0x48b35f+_0x5072e0[_0x15992f])%0x100,_0x3477b8=_0x5072e0[_0x15992f],_0x5072e0[_0x15992f]=_0x5072e0[_0x48b35f],_0x5072e0[_0x48b35f]=_0x3477b8,_0xa04061+=String['fromCharCode'](_0x6daec8['charCodeAt'](_0x13cbb3)^_0x5072e0[(_0x5072e0[_0x15992f]+_0x5072e0[_0x48b35f])%0x100]);}return _0xa04061;};_0x1c41['gwlhQB']=_0x1d75af,_0x356082=arguments,_0x1c41['AFPEOe']=!![];}const _0x41184f=_0x30dd69[0x0],_0x25b066=_0x1c4179+_0x41184f,_0x43a950=_0x356082[_0x25b066];return!_0x43a950?(_0x1c41['FYHnhU']===undefined&&(_0x1c41['FYHnhU']=!![]),_0x53a8e9=_0x1c41['gwlhQB'](_0x53a8e9,_0x82d0ae),_0x356082[_0x25b066]=_0x53a8e9):_0x53a8e9=_0x43a950,_0x53a8e9;},_0x1c41(_0x356082,_0x4560bc);}async function getSign(_0x297935,_0x1c68ff){const _0x3c50be=_0x105c90,_0x129f84=await common[_0x3c50be(0x235,'B]Zu')]({'url':randomApi,'method':_0x3c50be(0x212,'d190'),'headers':{'Content-Type':_0x3c50be(0x114,'P%b(')},'body':JSON[_0x3c50be(0x147,'5wZK')]({'fn':_0x297935,'body':_0x1c68ff}),'proxy':null,'debug':![],'timeout':0x7530}),_0x5e45be=_0x129f84[_0x3c50be(0xf1,'B]Zu')];if(_0x5e45be&&_0x5e45be[_0x3c50be(0x230,'*h6]')])return _0x5e45be[_0x3c50be(0x136,'B]Zu')];else console[_0x3c50be(0xfa,'j]Md')]('未获取到数据,检测网络是否正常');}
|
||
// 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)}
|