代码拉取完成,页面将自动刷新
同步操作将从 Xiecoll/萝卜-Script 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
//12月15日 解 By Milo& 萝卜
//请关注Luobook科技社 获取更多资讯
//export zqphone = '13900000000@13800000000'
//export zqpassword = 'A12345678@B12345678'
const $ = new Env("中青获取数据");
function _0x464e(_0x736b1e,_0x30f8ba){var _0x57e604=_0x57e6();return _0x464e=function(_0x464e40,_0x269418){_0x464e40=_0x464e40-0x132;var _0x25fbce=_0x57e604[_0x464e40];if(_0x464e['jnitdU']===undefined){var _0x1b469c=function(_0xacb0b0){var _0x36476a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3ea582='',_0x274024='';for(var _0x1a2f7e=0x0,_0xd986c6,_0x144ef1,_0x2c27d0=0x0;_0x144ef1=_0xacb0b0['charAt'](_0x2c27d0++);~_0x144ef1&&(_0xd986c6=_0x1a2f7e%0x4?_0xd986c6*0x40+_0x144ef1:_0x144ef1,_0x1a2f7e++%0x4)?_0x3ea582+=String['fromCharCode'](0xff&_0xd986c6>>(-0x2*_0x1a2f7e&0x6)):0x0){_0x144ef1=_0x36476a['indexOf'](_0x144ef1);}for(var _0x579ec6=0x0,_0x26ebb3=_0x3ea582['length'];_0x579ec6<_0x26ebb3;_0x579ec6++){_0x274024+='%'+('00'+_0x3ea582['charCodeAt'](_0x579ec6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x274024);};_0x464e['kjxfyx']=_0x1b469c,_0x736b1e=arguments,_0x464e['jnitdU']=!![];}var _0x44b798=_0x57e604[0x0],_0x1a0329=_0x464e40+_0x44b798,_0x142d15=_0x736b1e[_0x1a0329];return!_0x142d15?(_0x25fbce=_0x464e['kjxfyx'](_0x25fbce),_0x736b1e[_0x1a0329]=_0x25fbce):_0x25fbce=_0x142d15,_0x25fbce;},_0x464e(_0x736b1e,_0x30f8ba);}function _0x57e6(){var _0x3705f6=['mte3otC3n2zmAhHxqG','CYxcOq8pWRNdRq','vxrMoa','Dg9tDhjPBMC','fCkPWOBdI08','CMvWBgfJzq','BdRcQrGp','fmk4WQxcICkPWPWx','WPbpe1xdICoUWR8ODG','ugTJCZC','6isA5PYS54Q25Ocb77YA','nNG1jeruW6/cNSovoCkVW4G','WOv/vCk1D8kdDdxdOmky','dSkqW6mtWRRdI8oI','cUoaKcdMRApLNkJNRB7LIldOTkBLJ7C','WR7dKt/cRa','WOqIW5CcW4i','E8kFf8oQ','cMXLywBOHjRMNkZMIydPNibds++8MG','W7JcOCoDjgCWW7e9v0DqCCoPW7hdLGNdSCoba8kLWOaPWQL8lmkCWRrBp0qem8oMDH0SiguiW4yeW5O2D1BdRxGzlbddT8o1ESotW4KWi8knWP7dIHNdJSkbWRNdRWyiASkrW4BdOrpdO8ozWQNdV8oAW70FW4bEW7xdLCoeWPRdTCkzbJOfqam+W5lcNJWKW5PrcMNcOmkFW53cTwRcKd5vWRBdT8k/rIjqF1xdIeDcWQ3dO8kzW7vhAbNcMCk2nbRdPapdGmkJlXCIWPeokSoLW6hcRmkSWPn4sCoADGnNWPG','W73dHXZdGmkklIyNW4ia','sgv4','mJe4n2rls0XprW','CgfYC2u','x8k5a8kwWOK','tSoFWR/cICk5h8kPW691qSoAW6lcVCktW5ZcOW','WRxcHSkI','Ahr0Chm6lY9SDw9IB29RlMnVzgLUzY5UzxqVCc9JB2rLlMPZB24Vzc9SDw9IB29Rl2DPDc9YyxCVBwfZDgvYl2nVzguUANnVBG','mtC5mJi5me9KyuPkDa','u0Hbmq','cSkYWRi','ENfRzxK9','iWBcMXS+','ndDQAKjtBfq','eHy1pJbNpHu9ENfRzf9HChaMyxbWx3zLCNnPB249mY41lJuMy2fYCMLLCJ1dAgLUysTnB2jPBguRr1nnjMnHDgLKptaMy2HHBM5LBd1Jnda5nIzKzxzPy2vFyNjHBMq9sfvbv0vjjMrLDMLJzv9Pzd01nti1nty0nYzKzxzPy2vFBw9KzwW9veftlufomdaMzgv2AwnLx3bSyxrMB3jTpwfUzhjVAwqMzgv2AwnLx3r5Cgu9yw5KCM9PzczKCgK9mZiWjMLKptqWnZK1mdeXjMLUBMvYx3zLCNnPB249mJaYmta4mtGXmdm0jMLZx3b1C2G9mczSyw5NDwfNzt16Ac1dtIzTzw1VCNK9mYzTAt0WjM1VyMLSzv90ExbLpteMBMv0x3r5Cgu9mszUzxr3B3jRx3r5Cgu9v0LgsszVCgvUDwrPzd1MmZbLotaXndmXzti4odrHjM9Zx2fWAt0YnszVC192zxjZAw9UpuHvqvDfss11C2vYkZCUms4YkZiWmtCXmtmWlJi3nJi5osTYzwXLyxnLlwTLExmMCMvXDwvZDf90Aw1Lpq','ACkpWPq','z2v0','zw5J','W5TEW75MWQBdJSot','CgfK','kCoYxmkMW7C','kCo1D8kKW6ddGq','lea1WR3cKmoZW40','jNPXA2v5x2LKpq','t8kdWO/cPCogeKHJ','mmoNs8k4W6e','W6FcPSo6qchcMW','zuqV','xdZcHW','wmoFWQ/cMhq','BgvUz3rO','nwXWDgDPuG','FZ/cPXaf','ENfWyxnZD29Yza','ywnJzxnZpvDjrKKMyxbWx25HBwu9ENfRzf9HChaMyxbWx3zLCNnPB249mY41lJuMy2fYCMLLCJ1dAgLUysuYme1VyMLSzsuYmeDttszJAgfUBMvSpwm0mtmWjMrLDMLJzv9ICMfUzd1ivufxruKMzgv2AwnLx2LKptu3mtC2nJCYjMrLDMLJzv9TB2rLBd1wt0CTquWWmczKzxzPy2vFCgXHDgzVCM09yw5KCM9PzczKzxzPy2vFDhLWzt1HBMrYB2LKjMrWAt0YndaMAw5UzxjFDMvYC2LVBJ0YmdiXmdGXodeWmZqMBgfUz3vHz2u9EMGTq04MBwvTB3j5ptmMBwK9mczTB2jPBgu9','Bg9N','W5nkW75IWQJdG8ot','m8k0iKCinG','C2LNBJ0X','5RkH5PYjy2S','W5P5nhNcMJ5I','ACouvCo+','mte5ndjtEgH1BKy','mtyYntmWCeDWq1P4','WQClWR1o','mJmXA1LiD1Lh','nJGYntKXAKz0we90','WOWwewxdP8o2WPG2lv3dMCoIbcVcTmoeW5W','C2nVCMu','ENfRzxLFAwq','zg9Uzq','q0jd','nJi0wwzIqLzR','zslcPrnlW7G','pt09pt09pt09pt09pt09pt09pCkG5ywX','zMLUywXSEq','g3VdVIPBg0jliKqco8opW6ZdTColWOiRW6aMWRSbaWu/nSkhDJ/dKCk5W4FdQW','Aw5KzxG','cLrVBEIeMUACRoAjGoMCGoMyHEIVU0nloG','AxrLBxm','tuq1','uJPHkq','W45QoNfsp8kIWO8','rIrBW5hcRCoMaG','nKHqALnArKG','zw52','jNbOB25Lx3nPBt0YjNjLCxvLC3rFDgLTzt0','5lM16lE35y67WObby2BdK8k2rmonAH8iWPNdHYuvqc1wW6fa','DJJdUxrcW7DpcgHfWPOQW55HW6ZdHSk2W43dHCk+WPJdRrCNbmkfW6GEtmk5W61szG','lCk0peWDpt4','W43dRCoz','WP8jWRPtWQhdJ8o0W4RdMG','l8oSkgmRkqNcHmk4hmk3l2fcWOhdIvW','W7BcNCkOWP1Q','DwLK','Ft9SDa5z','mtq0ndu2ngjHAxP0qG','C2LNBJ0'];_0x57e6=function(){return _0x3705f6;};return _0x57e6();}var _0x11085c=_0x464e,_0x54c9d9=_0xacb0;(function(_0x4cf31e,_0xa4ef46){var _0x2ea0c7=_0x464e,_0x31b096=_0xacb0,_0x585866=_0x4cf31e();while(!![]){try{var _0x31f219=-parseInt(_0x31b096(0x15e,'n2^J'))/0x1*(-parseInt(_0x2ea0c7(0x14a))/0x2)+parseInt(_0x2ea0c7(0x16e))/0x3+-parseInt(_0x2ea0c7(0x16c))/0x4+-parseInt(_0x2ea0c7(0x13f))/0x5*(parseInt(_0x2ea0c7(0x18a))/0x6)+-parseInt(_0x2ea0c7(0x14e))/0x7+parseInt(_0x2ea0c7(0x154))/0x8*(parseInt(_0x2ea0c7(0x184))/0x9)+parseInt(_0x2ea0c7(0x14b))/0xa*(parseInt(_0x2ea0c7(0x14d))/0xb);if(_0x31f219===_0xa4ef46)break;else _0x585866['push'](_0x585866['shift']());}catch(_0x2a647a){_0x585866['push'](_0x585866['shift']());}}}(_0x57e6,0x4393a));const md5=$[_0x54c9d9(0x135,'9%Gb')]()?require('./md5'):'';var CryptoJS=require('crypto-js');message='';var key=CryptoJS[_0x11085c(0x193)][_0x54c9d9(0x15d,'LO2T')]['parse'](_0x11085c(0x160)),ff={'iv':CryptoJS[_0x11085c(0x193)][_0x11085c(0x170)][_0x11085c(0x185)](_0x54c9d9(0x187,'^9P8')),'mode':CryptoJS[_0x54c9d9(0x17d,'yjE*')][_0x11085c(0x153)],'padding':CryptoJS[_0x11085c(0x133)][_0x11085c(0x177)]};ts=Math[_0x54c9d9(0x13d,'7$Ua')](new Date()['getTime']()/0x3e8)['toString']();function _0xacb0(_0x736b1e,_0x30f8ba){var _0x57e604=_0x57e6();return _0xacb0=function(_0x464e40,_0x269418){_0x464e40=_0x464e40-0x132;var _0x25fbce=_0x57e604[_0x464e40];if(_0xacb0['DcfZgo']===undefined){var _0x1b469c=function(_0x36476a){var _0x3ea582='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x274024='',_0x1a2f7e='';for(var _0xd986c6=0x0,_0x144ef1,_0x2c27d0,_0x579ec6=0x0;_0x2c27d0=_0x36476a['charAt'](_0x579ec6++);~_0x2c27d0&&(_0x144ef1=_0xd986c6%0x4?_0x144ef1*0x40+_0x2c27d0:_0x2c27d0,_0xd986c6++%0x4)?_0x274024+=String['fromCharCode'](0xff&_0x144ef1>>(-0x2*_0xd986c6&0x6)):0x0){_0x2c27d0=_0x3ea582['indexOf'](_0x2c27d0);}for(var _0x26ebb3=0x0,_0xab7514=_0x274024['length'];_0x26ebb3<_0xab7514;_0x26ebb3++){_0x1a2f7e+='%'+('00'+_0x274024['charCodeAt'](_0x26ebb3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a2f7e);};var _0xacb0b0=function(_0x51fe9a,_0x267044){var _0x215a64=[],_0x48e9d6=0x0,_0x1ceb5f,_0x68d4eb='';_0x51fe9a=_0x1b469c(_0x51fe9a);var _0x5ae46d;for(_0x5ae46d=0x0;_0x5ae46d<0x100;_0x5ae46d++){_0x215a64[_0x5ae46d]=_0x5ae46d;}for(_0x5ae46d=0x0;_0x5ae46d<0x100;_0x5ae46d++){_0x48e9d6=(_0x48e9d6+_0x215a64[_0x5ae46d]+_0x267044['charCodeAt'](_0x5ae46d%_0x267044['length']))%0x100,_0x1ceb5f=_0x215a64[_0x5ae46d],_0x215a64[_0x5ae46d]=_0x215a64[_0x48e9d6],_0x215a64[_0x48e9d6]=_0x1ceb5f;}_0x5ae46d=0x0,_0x48e9d6=0x0;for(var _0x510cc4=0x0;_0x510cc4<_0x51fe9a['length'];_0x510cc4++){_0x5ae46d=(_0x5ae46d+0x1)%0x100,_0x48e9d6=(_0x48e9d6+_0x215a64[_0x5ae46d])%0x100,_0x1ceb5f=_0x215a64[_0x5ae46d],_0x215a64[_0x5ae46d]=_0x215a64[_0x48e9d6],_0x215a64[_0x48e9d6]=_0x1ceb5f,_0x68d4eb+=String['fromCharCode'](_0x51fe9a['charCodeAt'](_0x510cc4)^_0x215a64[(_0x215a64[_0x5ae46d]+_0x215a64[_0x48e9d6])%0x100]);}return _0x68d4eb;};_0xacb0['cqCFsh']=_0xacb0b0,_0x736b1e=arguments,_0xacb0['DcfZgo']=!![];}var _0x44b798=_0x57e604[0x0],_0x1a0329=_0x464e40+_0x44b798,_0x142d15=_0x736b1e[_0x1a0329];return!_0x142d15?(_0xacb0['naVAcq']===undefined&&(_0xacb0['naVAcq']=!![]),_0x25fbce=_0xacb0['cqCFsh'](_0x25fbce,_0x269418),_0x736b1e[_0x1a0329]=_0x25fbce):_0x25fbce=_0x142d15,_0x25fbce;},_0xacb0(_0x736b1e,_0x30f8ba);}var zqphones=process['env'][_0x54c9d9(0x144,'Ia9Q')]??'',zqpasswords=process[_0x11085c(0x161)][_0x11085c(0x141)]??'';zqphonearr=zqphones['split']('@'),zqpasswordarr=zqpasswords['split']('@'),ydT=_0x54c9d9(0x14f,'FakM'),txT=_0x54c9d9(0x168,'uuKb'),!(async()=>{var _0x2c1a9c=_0x11085c,_0x37a3dd=_0x54c9d9;console[_0x37a3dd(0x13b,'C*0J')](_0x2c1a9c(0x156)+zqphonearr[_0x2c1a9c(0x13e)]+_0x37a3dd(0x163,'uuKb'));for(let _0x2c27d0=0x0;_0x2c27d0<zqphonearr[_0x37a3dd(0x145,'uuKb')];_0x2c27d0++){zqphonearr[_0x2c27d0]&&($[_0x2c1a9c(0x159)]=_0x2c27d0+0x1,console[_0x37a3dd(0x13b,'C*0J')](_0x2c1a9c(0x17c)+$[_0x2c1a9c(0x159)]+'\x20】'),phone=zqphonearr[_0x2c27d0],password=zqpasswordarr[_0x2c27d0],P=CryptoJS[_0x2c1a9c(0x18b)](password)[_0x2c1a9c(0x171)](CryptoJS['enc'][_0x37a3dd(0x191,'a$nO')]),P1=P+_0x37a3dd(0x176,'FakM'),pass=CryptoJS[_0x2c1a9c(0x15c)](P1)['toString'](CryptoJS[_0x37a3dd(0x188,'&D#U')][_0x2c1a9c(0x183)]),A=_0x2c1a9c(0x142)+phone+_0x37a3dd(0x181,'D$gW')+pass+_0x2c1a9c(0x162)+ts+'&resolution=720x1280&rom_version=HUAWEI-user%205.1.1%2020171130.276299%20release-keys&s_ad=xCWwRj3eGxCw%3D8rsKh9S0KGbEY22qMVfqcPljbSh7vRrU&s_im=rXU6PBNNsHKc%3DM0sQ3svjSd3FSdu4qVewyg%3D%3Db&sign=1&sm_device_id=20210830002432747e9c34c48dea9ce3b953ea6959c1a101a036b76ba51fd6&storage=7.75&uid=60732954&version_code=63&zqkey=MDAwMDAwMDAwMJCMpN-w09Wtg5-Bb36eh6CPqHualq2jmrCarWSwp5ezhKKgl6-oqmqXr6NthJl7mI-shMmXeqDau4StacS3o7GFooKbr7murIF5jWuEY2Ft&zqkey_id=c547d8f3f33c4ec83b840c5be4d781fc',B=A[_0x2c1a9c(0x173)](_0x2c1a9c(0x146),''),B1=B[_0x2c1a9c(0x173)](/&/g,''),B2=B1['replace'](/%20/g,'\x20'),B3=B2[_0x37a3dd(0x175,'1eri')](/%3D/g,'='),B4=B3+_0x37a3dd(0x158,'R%n]'),newsign=md5(B4),zqbody=A['replace']('sign=1','sign='+newsign),yd=_0x2c1a9c(0x190)+ts+'&resolution=720x1280&rom_version=HUAWEI-user+7.1.2+20171130.276299+release-keys&s_ad=UwNMsLAQgw3E%3DK2TvO0GG1yYqapn5kdqIHDxFTJWUqtHEsE&s_im=kFbVGOYyXwIo%3D6v1K3HhpgGImtYlN1Pde4Q%3D%3DR&sm_device_id=20210830002432747e9c34c48dea9ce3b953ea6959c1a101a036b76ba51fd6&storage=14.84&uid=1&version_code=63&zqkey=1&zqkey_id=1&sign=1',typeof $request!=='undefined'?console[_0x37a3dd(0x166,'pp$#')](_0x2c1a9c(0x147)):(await jbkz(),await $[_0x37a3dd(0x14c,'(g[C')](0x3e8)));}})()['catch'](_0x579ec6=>$['logErr'](_0x579ec6))[_0x11085c(0x157)](()=>$[_0x11085c(0x152)]());function jbkz(_0x26ebb3=0x0){return new Promise(_0xab7514=>{var _0x243aed=_0x464e;let _0x51fe9a={'url':_0x243aed(0x189),'headers':{}};$[_0x243aed(0x192)](_0x51fe9a,async(_0x267044,_0x215a64,_0x48e9d6)=>{var _0x2f973a=_0x243aed,_0x39d827=_0xacb0;try{const _0x1ceb5f=JSON[_0x39d827(0x139,'9%Gb')](_0x48e9d6);_0x1ceb5f[_0x39d827(0x13a,'bcG(')]==0x1?(console['log'](_0x2f973a(0x178)+_0x1ceb5f['zqmsg']),await zqdl(),await $[_0x39d827(0x149,'DhKN')](0x3e8)):console[_0x39d827(0x18c,'1eri')]('\x0a'+_0x1ceb5f['errorMsg']);}catch(_0x68d4eb){}finally{_0xab7514();}},_0x26ebb3);});}function zqdl(_0x5ae46d=0x0){return new Promise(_0x510cc4=>{var _0x4042d4=_0xacb0;let _0x10ca8a={'url':'https://kandian.wkandian.com/v3/user/mobile/login.json','headers':{'Token':newsign,'Content-Type':_0x4042d4(0x164,'rZeM')},'body':zqbody};$[_0x4042d4(0x17f,'THm^')](_0x10ca8a,async(_0x5569ad,_0x1b412a,_0x4aa23d)=>{var _0x498564=_0x4042d4,_0x3f9129=_0x464e;try{const _0x2c4431=JSON[_0x3f9129(0x185)](_0x4aa23d);if(_0x2c4431[_0x498564(0x17a,'[8Q^')]==0x0){zqzb=_0x2c4431[_0x498564(0x140,'w(r#')][_0x3f9129(0x150)],zqname=_0x2c4431['items'][_0x498564(0x138,'a$nO')],uid=_0x2c4431[_0x3f9129(0x15b)]['uid'],zqkey=_0x2c4431[_0x498564(0x186,'jmW*')]['zqkey'],zqkey_id=_0x2c4431[_0x498564(0x172,')KEK')]['zqkey_id'],txname=encodeURI(zqname),console[_0x3f9129(0x143)](_0x3f9129(0x180)+_0x3f9129(0x18d)+_0x2c4431[_0x498564(0x18e,'fOME')][_0x498564(0x174,'w(r#')]+_0x3f9129(0x137)+_0x2c4431['items'][_0x3f9129(0x151)]+_0x498564(0x169,'&D#U')+_0x2c4431[_0x498564(0x134,'9%Gb')][_0x3f9129(0x16a)]),yd1=yd[_0x3f9129(0x173)](_0x498564(0x17e,'5[y0'),'uid='+uid),yd2=yd1[_0x3f9129(0x173)](_0x498564(0x15f,'D%NH'),_0x498564(0x16b,'LO2T')+zqkey),yd3=yd2[_0x498564(0x148,'jtm2')]('zqkey_id=1','zqkey_id='+zqkey_id),yd4=yd3[_0x3f9129(0x173)](_0x3f9129(0x146),''),yd5=yd4[_0x498564(0x132,'Ia9Q')](/&/g,''),yd6=yd5[_0x498564(0x17b,'@7!2')](/%20/g,'\x20'),yd7=yd6[_0x3f9129(0x173)](/%3D/g,'='),yd8=yd7+'jdvylqchJZrfw0o2DgAbsmCGUapF1YChc',ydsign=md5(yd8),yd9=yd3[_0x498564(0x165,'uuKb')](_0x498564(0x155,'w(r#'),_0x3f9129(0x16d)+ydsign);var _0x3cb5d5=CryptoJS[_0x498564(0x13c,'f&xr')][_0x498564(0x16f,'w(r#')](yd9,key,ff);_0x3cb5d5=_0x3cb5d5['toString'](),yd11=_0x3cb5d5['replace'](/\+/g,'-'),yd12=yd11[_0x3f9129(0x173)](/\//g,'_'),ydbody=ydT+yd12,console[_0x3f9129(0x143)](_0x3f9129(0x15a)+ydbody);}else console[_0x3f9129(0x143)](_0x2c4431);}catch(_0x23c747){}finally{_0x510cc4();}},_0x5ae46d);});}
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("", `\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) }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。