代码拉取完成,页面将自动刷新
/**
京东超市超新星计划-签到
cron 10 0,12 * * * jd_jdsupermarket_sign.js
*/
const $ = new Env('京东超市超新星计划-签到');
var _0xodP='jsjiami.com.v6',_0xodP_=['_0xodP'],_0x3a32=[_0xodP,'Z2dKdlM=','dGRiQ1g=','dElVS1I=','UkNjc2Q=','aGFzT3duUHJvcGVydHk=','UnJVenA=','RkxrZFM=','TWxITko=','YmFzZUluZm8=','bmlja25hbWU=','R0daT2Q=','S2RCTnY=','bVRKRUE=','Vk5nVVQ=','UlZQR28=','RXRYTlI=','V3hncG4=','TlV6d2o=','ZHRoTGY=','S1B4SkE=','c2Z1RVA=','aXNOb2Rl','Li9zZW5kTm90aWZ5','Li9qZENvb2tpZS5qcw==','Y3J5cHRv','a2V5cw==','Zm9yRWFjaA==','cHVzaA==','ZW52','SkRfREVCVUc=','ZmFsc2U=','bG9n','Z2V0ZGF0YQ==','Q29va2llc0pE','cGFyc2U=','bWFw','Y29va2ll','cmV2ZXJzZQ==','Q29va2llSkQy','Q29va2llSkQ=','ZmlsdGVy','V3RseWY=','R1J6VnE=','44CQ5o+Q56S644CR6K+35YWI6I635Y+W5Lqs5Lic6LSm5Y+35LiAY29va2llCuebtOaOpeS9v+eUqE5vYnlEYeeahOS6rOS4nOetvuWIsOiOt+WPlg==','aHR0cHM6Ly9iZWFuLm0uamQuY29tL2JlYW4vc2lnbkluZGV4LmFjdGlvbg==','anZ3SFY=','UnJGYkU=','RU5rRkM=','YmxTdnE=','bG9nRXJy','bXNn','bmFtZQ==','WlFpZ2E=','RlJ1Z0Y=','WFRoT1M=','bGVuZ3Ro','VXNlck5hbWU=','REVVRnE=','bWF0Y2g=','aW5kZXg=','dHBKYWw=','aXNMb2dpbg==','bmlja05hbWU=','UXVKYUY=','CioqKioqKuW8gOWni+OAkOS6rOS4nOi0puWPtw==','KioqKioqKioqCg==','TXNld0w=','bnFZQlQ=','c3RyaW5naWZ5','44CQ5o+Q56S644CRY29va2ll5bey5aSx5pWI','5Lqs5Lic6LSm5Y+3','Cuivt+mHjeaWsOeZu+W9leiOt+WPlgpodHRwczovL2JlYW4ubS5qZC5jb20vYmVhbi9zaWduSW5kZXguYWN0aW9u','amp2TWc=','d2FpdA==','Y2F0Y2g=','LCDlpLHotKUhIOWOn+WboDog','ZmluYWxseQ==','ZG9uZQ==','dXNlci1pbmZvL2xvZ2lu','ZXZlbnRzL3Zpc2l0','aG9tZQ==','dGFzay9pbml0U2lnblRhc2tz','PT0+5Y67562+5Yiw','ZXZlbnRzL2NsaWNr','562+5Yiw5Z+L54K5','dGFzay9zaWduVGFzaw==','VFRvaXQ=','5LuK5pel5bey562+5YiwLi4=','RkdhR2c=','6I635Y+WdG9rZW7lpLHotKXvvIE=','UURueUc=','WE92em8=','RGxncUU=','WGtVb3A=','Y29kZQ==','ZGF0YQ==','dG9rZW4=','QkZhcHM=','elN1Q2o=','ZWJWVlk=','TFJ5TGY=','ZGF5RmluaXNoU2lnbg==','dlh2Rmo=','RmN4cG8=','b1JESXY=','RFd2aVY=','R2lqVlE=','WEdGclM=','562+5Yiw5oiQ5Yqf77yM6I635b6X','YmVhbk51bQ==','SmtMa2k=','ckJSSG4=','RmVvbWg=','YmVLRWc=','ZVdxdlQ=','d0xFYkY=','ck1pT0g=','V3VlcmI=','aHR0cHM6Ly9semJrLWlzdi5pc3ZqY2xvdWQuY29tL2pkc3VwZXJtYXJrZXQvYXBpL3Rhc2svaW5pdERhaWx5VGFza3M/bnc9','bHpiay1pc3YuaXN2amNsb3VkLmNvbQ==','YXBwbGljYXRpb24vanNvbiwgdGV4dC9wbGFpbiwgKi8q','YXBwbGljYXRpb24vanNvbjtjaGFyc2V0PVVURi04','emgtY24=','Z3ppcA==','aHR0cHM6Ly9semJrLWlzdi5pc3ZqY2xvdWQuY29t','amRhcHA7aVBob25lOzExLjIuMDs7O00vNS4wO2FwcEJ1aWxkLzE2ODIyMTtqZFN1cHBvcnREYXJrTW9kZS8wO2VmLzE7ZXAvJTdCJTIyY2lwaGVydHlwZSUyMiUzQTUlMkMlMjJjaXBoZXIlMjIlM0ElN0IlMjJ1ZCUyMiUzQSUyMkMyR25DUUcyRUpZMkN3TzBaUVMwQzJHMEROSzJETk8xREpVNFl3U3pZMkN6WVdad0NOdnVZbSUzRCUzRCUyMiUyQyUyMnN2JTIyJTNBJTIyQ0pDa0RHJTNEJTNEJTIyJTJDJTIyaWFkJTIyJTNBJTIyJTIyJTdEJTJDJTIydHMlMjIlM0ExNjYwODU1NDI3JTJDJTIyaGRpZCUyMiUzQSUyMkpNOUYxeXdVUHdmbHZNSXBZUG9rMHR0NWs5a1c0QXJKRVUzbGZMaHhCcXclM0QlMjIlMkMlMjJ2ZXJzaW9uJTIyJTNBJTIyMS4wLjMlMjIlMkMlMjJhcHBuYW1lJTIyJTNBJTIyY29tLjM2MGJ1eS5qZG1vYmlsZSUyMiUyQyUyMnJpZHglMjIlM0EtMSU3RDtNb3ppbGxhLzUuMCAoaVBob25lOyBDUFUgaVBob25lIE9TIDEzXzUgbGlrZSBNYWMgT1MgWCkgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBNb2JpbGUvMTVFMTQ4O3N1cHBvcnRKRFNIV0svMTs=','aHR0cHM6Ly9semJrLWlzdi5pc3ZqY2xvdWQuY29tL2pkc3VwZXJtYXJrZXQ=','SXN2VG9rZW49','Y2xvc2U=','S0ZTbG0=','RkZSWWE=','Z2V0VGltZQ==','VHJveWk=','aVl3VWw=','eXBJcEY=','SHFxWnA=','SmhPS1I=','akhyeGw=','bXVKQk0=','SmFyb0w=','Y1dXVWE=','S1Foa28=','Z2V0','Z2dsako=','eldoYXE=','VEdGT3A=','eGJ2UWQ=','QnJuQnM=','ZEFlWHQ=','SFBlU2w=','dlh0Y3I=','YkhManU=','bnVsbA==','d3BpVUE=','aHR0cHM6Ly9semJrLWlzdi5pc3ZqY2xvdWQuY29tL2pkc3VwZXJtYXJrZXQvYXBpLw==','P253PQ==','U0NmUkI=','dHdpVXI=','bVF1Wkw=','anFYZ3U=','UU1ZV04=','SlVXd1A=','ellEd2Q=','cm9wb1M=','cW1FQlM=','YlVwVVA=','RUVBVnM=','Z3RKRXM=','V1Fvc0Y=','cG9zdA==','cUxKcmg=','S2RwYXo=','TnlHd2M=','aXN2T2JmdXNjYXRvcg==','YXBpLm0uamQuY29t','Ki8q','YXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVk','emgtSGFucy1ISztxPTEsIHpoLUhhbnQtSEs7cT0wLjk=','MTIwOQ==','SkQ0aVBob25lLzE2ODIyMSUyMChpUGhvbmU7JTIwaU9TOyUyMFNjYWxlLzMuMDAp','a2VlcC1hbGl2ZQ==','Z3FUelA=','YWJ6Ync=','elJxbm0=','aHR0cHM6Ly9hcGkubS5qZC5jb20vY2xpZW50LmFjdGlvbj9mdW5jdGlvbklkPWlzdk9iZnVzY2F0b3I=','R2dWak8=','RnlrYWM=','cnNOUmQ=','UEJiRXY=','bmVxYlk=','cHlsY0I=','clZnekk=','YVptaWM=','UkhmZmo=','TnlISHc=','eWxqVE8=','ak1ORUM=','a0FyTmc=','SHB0b2I=','YXNjaWk=','YmFzZTY0','LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlHZk1BMEdDU3FHU0liM0RRRUJBUVVBQTRHTkFEQ0JpUUtCZ1FDbDJqYUVuQjNVSmlac1poTEViRQpxcGc1NFRvaElXeTBnZEV2Yy91VUdrcFZueS9EWWZ6MVNPVmlxWWlrZkgyTmlCVmJncVFRNy9MeTc1Cnd6dndGWmpOU1pwWkM1dlFnQWl4VnVLTHdjVmc0QUtlK3hYSDBpZDN0ZGJFRlhDbXhJbTYvZlNyNFQKVE8wTWVqQ3ljWE5xelVqOWFHVUdncVpzdlpKTVdteUdRdEV3SURBUUFCCi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQ==','dG9TdHJpbmc=','aHNMUWc=','cHVibGljRW5jcnlwdA==','Y29uc3RhbnRz','UlNBX1BLQ1MxX1BBRERJTkc=','ZnJvbQ==','aExNR0g=','bEJxZVg=','cUJMVnk=','VFF6UmM=','SGxZbnU=','amRzdXBlcm1hcmtldA==','amRzaWduLmV1Lm9yZw==','V3N4UWU=','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM18yXzMgbGlrZSBNYWMgT1MgWCkgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzEzLjAuMyBNb2JpbGUvMTVFMTQ4IFNhZmFyaS82MDQuMSBFZGcvODcuMC40MjgwLjg4','Q2pBU1E=','S1dKcU4=','aWZGZGg=','bkpoZm8=','U0lHTl9VUkw=','dklhTGI=','RXhRZ3E=','Zmxvb3I=','dW12cGM=','cmFuZG9t','aHR0cHM6Ly9jZG4ubnoubHUvZGRv','d0xvYVY=','ZnpZS3I=','aldKc3A=','U0hldEQ=','RnNRQ1E=','QW5uS2k=','TGlOcFo=','VlNFRHI=','IGdldFNpZ24gQVBJ6K+35rGC5aSx6LSl77yM6K+35qOA5p+l572R6Lev6YeN6K+V','bEJGbVY=','c2FYZUo=','U2lSaUE=','S29vdXc=','bXV6V0Y=','MTAwMQ==','SXVnQk4=','dXNlckluZm8=','YnVTVVM=','5Lqs5Lic6L+U5Zue5LqG56m65pWw5o2u','bFJIU1c=','UHRuSmc=','T1VkcnE=','Z21qaXI=','dlZMblA=','aHR0cHM6Ly9tZS1hcGkuamQuY29tL3VzZXJfbmV3L2luZm8vR2V0SkRVc2VySW5mb1VuaW9u','bWUtYXBpLmpkLmNvbQ==','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNF8zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xNC4wLjIgTW9iaWxlLzE1RTE0OCBTYWZhcmkvNjA0LjE=','aHR0cHM6Ly9ob21lLm0uamQuY29tL215SmQvbmV3aG9tZS5hY3Rpb24/c2NlbmV2YWw9MiZ1ZmM9Jg==','Z3ppcCwgZGVmbGF0ZSwgYnI=','WlNQTEk=','VGtmTko=','ZUJFT2o=','V2RqaVQ=','QUZQdmU=','SURDc1U=','UkNsamg=','a3ZpelM=','WmZrQWg=','cFNEbkQ=','RU1xeHY=','bXd3S3g=','Q2JRVHk=','WnBFV1I=','SWhNUVk=','Q1B0UXM=','bUF1d3A=','U2xDQWE=','WlN5TXQ=','RkhGYW0=','Q2Nybm8=','VkdYdVA=','emJoRFU=','d1NnaGQ=','a25CSlM=','dnpuZWM=','ZVFYVmY=','Q05UQUU=','VVpqY3c=','V1NDZnU=','RFRPeFQ=','c29za1E=','YXBNTHg=','d2lOd0U=','YVl3SXo=','c0ZySmU=','ZEphQ2c=','YWdhTWk=','WWRGUHU=','aHFqTnM=','ZHl0dlg=','cmV0Y29kZQ==','jskzxjrDiaPmQnxi.ncERom.v6=='];if(function(_0x2d8f05,_0x4b81bb,_0x4d74cb){function _0x32719f(_0x2dc776,_0x362d54,_0x2576f4,_0x5845c1,_0x4fbc7a,_0x6c88bf){_0x362d54=_0x362d54>>0x8,_0x4fbc7a='po';var _0x151bd2='shift',_0x558098='push',_0x6c88bf='';if(_0x362d54<_0x2dc776){while(--_0x2dc776){_0x5845c1=_0x2d8f05[_0x151bd2]();if(_0x362d54===_0x2dc776&&_0x6c88bf===''&&_0x6c88bf['length']===0x1){_0x362d54=_0x5845c1,_0x2576f4=_0x2d8f05[_0x4fbc7a+'p']();}else if(_0x362d54&&_0x2576f4['replace'](/[kzxrDPQnxnER=]/g,'')===_0x362d54){_0x2d8f05[_0x558098](_0x5845c1);}}_0x2d8f05[_0x558098](_0x2d8f05[_0x151bd2]());}return 0x10082e;};return _0x32719f(++_0x4b81bb,_0x4d74cb)>>_0x4b81bb^_0x4d74cb;}(_0x3a32,0x140,0x14000),_0x3a32){_0xodP_=_0x3a32['length']^0x140;};function _0x4ed2(_0x29cd1a,_0x12097c){_0x29cd1a=~~'0x'['concat'](_0x29cd1a['slice'](0x1));var _0x3ccaee=_0x3a32[_0x29cd1a];if(_0x4ed2['ZDUfGq']===undefined&&''['length']===0x1){(function(){var _0x7c53f7;try{var _0x5f1082=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x7c53f7=_0x5f1082();}catch(_0x4991bd){_0x7c53f7=window;}var _0x10a737='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x7c53f7['atob']||(_0x7c53f7['atob']=function(_0x14719f){var _0x149504=String(_0x14719f)['replace'](/=+$/,'');for(var _0x187439=0x0,_0x27cb6d,_0x252987,_0x584360=0x0,_0x51e398='';_0x252987=_0x149504['charAt'](_0x584360++);~_0x252987&&(_0x27cb6d=_0x187439%0x4?_0x27cb6d*0x40+_0x252987:_0x252987,_0x187439++%0x4)?_0x51e398+=String['fromCharCode'](0xff&_0x27cb6d>>(-0x2*_0x187439&0x6)):0x0){_0x252987=_0x10a737['indexOf'](_0x252987);}return _0x51e398;});}());_0x4ed2['KKZFOJ']=function(_0x66fce8){var _0x27b364=atob(_0x66fce8);var _0x2a56b2=[];for(var _0x32d612=0x0,_0x5d0b71=_0x27b364['length'];_0x32d612<_0x5d0b71;_0x32d612++){_0x2a56b2+='%'+('00'+_0x27b364['charCodeAt'](_0x32d612)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2a56b2);};_0x4ed2['JYLUFt']={};_0x4ed2['ZDUfGq']=!![];}var _0x3d4dad=_0x4ed2['JYLUFt'][_0x29cd1a];if(_0x3d4dad===undefined){_0x3ccaee=_0x4ed2['KKZFOJ'](_0x3ccaee);_0x4ed2['JYLUFt'][_0x29cd1a]=_0x3ccaee;}else{_0x3ccaee=_0x3d4dad;}return _0x3ccaee;};const notify=$[_0x4ed2('0')]()?require(_0x4ed2('1')):'';const jdCookieNode=$[_0x4ed2('0')]()?require(_0x4ed2('2')):'';var crypto=require(_0x4ed2('3'));let cookiesArr=[],cookie='',message='';Object[_0x4ed2('4')](jdCookieNode)[_0x4ed2('5')](_0x4545d6=>{cookiesArr[_0x4ed2('6')](jdCookieNode[_0x4545d6]);});if($[_0x4ed2('0')]()){Object[_0x4ed2('4')](jdCookieNode)[_0x4ed2('5')](_0x59299d=>{cookiesArr[_0x4ed2('6')](jdCookieNode[_0x59299d]);});if(process[_0x4ed2('7')][_0x4ed2('8')]&&process[_0x4ed2('7')][_0x4ed2('8')]===_0x4ed2('9'))console[_0x4ed2('a')]=()=>{};}else{let cookiesData=$[_0x4ed2('b')](_0x4ed2('c'))||'[]';cookiesData=JSON[_0x4ed2('d')](cookiesData);cookiesArr=cookiesData[_0x4ed2('e')](_0x17b1a3=>_0x17b1a3[_0x4ed2('f')]);cookiesArr[_0x4ed2('10')]();cookiesArr[_0x4ed2('6')](...[$[_0x4ed2('b')](_0x4ed2('11')),$[_0x4ed2('b')](_0x4ed2('12'))]);cookiesArr[_0x4ed2('10')]();cookiesArr=cookiesArr[_0x4ed2('13')](_0x41b0ec=>!!_0x41b0ec);}!(async()=>{var _0x8f6f83={'RrFbE':function(_0xeb7dfe,_0x5af034){return _0xeb7dfe===_0x5af034;},'ENkFC':_0x4ed2('14'),'blSvq':_0x4ed2('15'),'ZQiga':_0x4ed2('16'),'FRugF':_0x4ed2('17'),'XThOS':function(_0x30abf6,_0x4f2123){return _0x30abf6<_0x4f2123;},'DEUFq':function(_0x5c8097,_0x32340d){return _0x5c8097(_0x32340d);},'tpJal':function(_0x3ecf54,_0xdf8193){return _0x3ecf54+_0xdf8193;},'QuJaF':function(_0x21d772){return _0x21d772();},'MsewL':function(_0x860b60,_0x4fb365){return _0x860b60!==_0x4fb365;},'nqYBT':_0x4ed2('18'),'jjvMg':function(_0x4cafcb){return _0x4cafcb();}};if(!cookiesArr[0x0]){if(_0x8f6f83[_0x4ed2('19')](_0x8f6f83[_0x4ed2('1a')],_0x8f6f83[_0x4ed2('1b')])){$[_0x4ed2('1c')](err);}else{$[_0x4ed2('1d')]($[_0x4ed2('1e')],_0x8f6f83[_0x4ed2('1f')],_0x8f6f83[_0x4ed2('20')],{'open-url':_0x8f6f83[_0x4ed2('20')]});return;}}for(let _0x90a77f=0x0;_0x8f6f83[_0x4ed2('21')](_0x90a77f,cookiesArr[_0x4ed2('22')]);_0x90a77f++){if(cookiesArr[_0x90a77f]){cookie=cookiesArr[_0x90a77f];originCookie=cookiesArr[_0x90a77f];newCookie='';$[_0x4ed2('23')]=_0x8f6f83[_0x4ed2('24')](decodeURIComponent,cookie[_0x4ed2('25')](/pt_pin=(.+?);/)&&cookie[_0x4ed2('25')](/pt_pin=(.+?);/)[0x1]);$[_0x4ed2('26')]=_0x8f6f83[_0x4ed2('27')](_0x90a77f,0x1);$[_0x4ed2('28')]=!![];$[_0x4ed2('29')]='';await _0x8f6f83[_0x4ed2('2a')](checkCookie);console[_0x4ed2('a')](_0x4ed2('2b')+$[_0x4ed2('26')]+'】'+($[_0x4ed2('29')]||$[_0x4ed2('23')])+_0x4ed2('2c'));if(!$[_0x4ed2('28')]){if(_0x8f6f83[_0x4ed2('2d')](_0x8f6f83[_0x4ed2('2e')],_0x8f6f83[_0x4ed2('2e')])){console[_0x4ed2('a')](JSON[_0x4ed2('2f')](signinfo));}else{$[_0x4ed2('1d')]($[_0x4ed2('1e')],_0x4ed2('30'),_0x4ed2('31')+$[_0x4ed2('26')]+'\x20'+($[_0x4ed2('29')]||$[_0x4ed2('23')])+_0x4ed2('32'),{'open-url':_0x8f6f83[_0x4ed2('20')]});continue;}}await _0x8f6f83[_0x4ed2('33')](main);await $[_0x4ed2('34')](0x1388);}}})()[_0x4ed2('35')](_0x483f41=>{$[_0x4ed2('a')]('','❌\x20'+$[_0x4ed2('1e')]+_0x4ed2('36')+_0x483f41+'!','');})[_0x4ed2('37')](()=>{$[_0x4ed2('38')]();});async function main(){var _0x5df018={'QDnyG':function(_0x2564a7){return _0x2564a7();},'XOvzo':function(_0x9a9a8d,_0x467819,_0x37a1f9,_0x237429){return _0x9a9a8d(_0x467819,_0x37a1f9,_0x237429);},'DlgqE':_0x4ed2('39'),'XkUop':function(_0x5e2619,_0x234dea){return _0x5e2619===_0x234dea;},'BFaps':function(_0x55bdf2,_0x38a405,_0x4f5852,_0x1b82a8,_0x44b8e1){return _0x55bdf2(_0x38a405,_0x4f5852,_0x1b82a8,_0x44b8e1);},'zSuCj':_0x4ed2('3a'),'ebVVY':_0x4ed2('3b'),'LRyLf':_0x4ed2('3c'),'vXvFj':_0x4ed2('3d'),'Fcxpo':_0x4ed2('3e'),'oRDIv':_0x4ed2('3f'),'DWviV':function(_0x5bfaeb,_0x293fe9,_0x570109,_0x373824,_0x413ba2){return _0x5bfaeb(_0x293fe9,_0x570109,_0x373824,_0x413ba2);},'GijVQ':_0x4ed2('40'),'XGFrS':function(_0x105ccd,_0x192705){return _0x105ccd===_0x192705;},'JkLki':function(_0x26d457,_0xec772f){return _0x26d457!==_0xec772f;},'rBRHn':_0x4ed2('41'),'Feomh':_0x4ed2('42'),'beKEg':function(_0x2b6532,_0x5ed8f1){return _0x2b6532!==_0x5ed8f1;},'eWqvT':_0x4ed2('43'),'wLEbF':_0x4ed2('44')};let _0x259852='';let _0x179bdd='';_0x259852=await _0x5df018[_0x4ed2('45')](getToken);if(!_0x259852)return;let _0x15af5b=await _0x5df018[_0x4ed2('46')](task,_0x5df018[_0x4ed2('47')],{'token':_0x259852,'source':'01'},_0x259852);if(_0x5df018[_0x4ed2('48')](_0x15af5b[_0x4ed2('49')],0xc8)){_0x179bdd=_0x15af5b[_0x4ed2('4a')][_0x4ed2('4b')];}if(_0x179bdd){await _0x5df018[_0x4ed2('4c')](task,_0x5df018[_0x4ed2('4d')],{'identification':_0x5df018[_0x4ed2('4e')],'content':'首页'},_0x259852,_0x179bdd);let _0x4f6b81=await _0x5df018[_0x4ed2('4c')](task,_0x5df018[_0x4ed2('4f')],null,_0x259852,_0x179bdd);if(_0x5df018[_0x4ed2('48')](_0x4f6b81[_0x4ed2('49')],0xc8)&&!_0x4f6b81[_0x4ed2('4a')][_0x4ed2('50')]){console[_0x4ed2('a')](_0x5df018[_0x4ed2('51')]);await _0x5df018[_0x4ed2('4c')](task,_0x5df018[_0x4ed2('52')],{'identification':'50','content':_0x5df018[_0x4ed2('53')],'remark':0x0},_0x259852,_0x179bdd);let _0x2337ad=await _0x5df018[_0x4ed2('54')](task,_0x5df018[_0x4ed2('55')],null,_0x259852,_0x179bdd);if(_0x5df018[_0x4ed2('56')](_0x2337ad[_0x4ed2('49')],0xc8)){console[_0x4ed2('a')](_0x4ed2('57')+_0x2337ad[_0x4ed2('4a')][_0x4ed2('58')]+'京豆');}else{if(_0x5df018[_0x4ed2('59')](_0x5df018[_0x4ed2('5a')],_0x5df018[_0x4ed2('5a')])){console[_0x4ed2('a')](_0x4ed2('57')+_0x2337ad[_0x4ed2('4a')][_0x4ed2('58')]+'京豆');}else{console[_0x4ed2('a')](JSON[_0x4ed2('2f')](_0x2337ad));}}}else{console[_0x4ed2('a')](_0x5df018[_0x4ed2('5b')]);}}else{if(_0x5df018[_0x4ed2('5c')](_0x5df018[_0x4ed2('5d')],_0x5df018[_0x4ed2('5d')])){$[_0x4ed2('1c')](e,resp);}else{console[_0x4ed2('a')](_0x5df018[_0x4ed2('5e')]);}}}async function tasklist(_0x6b4dc3,_0x1e5326){var _0x5981d8={'ggljJ':_0x4ed2('16'),'zWhaq':_0x4ed2('17'),'TGFOp':function(_0x257e2f,_0x42dcbd){return _0x257e2f!==_0x42dcbd;},'xbvQd':_0x4ed2('5f'),'BrnBs':_0x4ed2('60'),'vXtcr':function(_0x4ec0d6,_0x28acbb){return _0x4ec0d6(_0x28acbb);},'bHLju':function(_0x2d4d70,_0x470012){return _0x2d4d70||_0x470012;},'KFSlm':function(_0x1b52a9,_0x1f3702){return _0x1b52a9+_0x1f3702;},'FFRYa':_0x4ed2('61'),'Troyi':_0x4ed2('62'),'iYwUl':_0x4ed2('63'),'ypIpF':_0x4ed2('64'),'HqqZp':_0x4ed2('65'),'JhOKR':_0x4ed2('66'),'jHrxl':_0x4ed2('67'),'muJBM':_0x4ed2('68'),'JaroL':_0x4ed2('69'),'cWWUa':_0x4ed2('6a'),'KQhko':_0x4ed2('6b')};return opt={'url':_0x5981d8[_0x4ed2('6c')](_0x5981d8[_0x4ed2('6d')],new Date()[_0x4ed2('6e')]()),'headers':{'host':_0x5981d8[_0x4ed2('6f')],'accept':_0x5981d8[_0x4ed2('70')],'Content-Type':_0x5981d8[_0x4ed2('71')],'accept-language':_0x5981d8[_0x4ed2('72')],'accept-encoding':_0x5981d8[_0x4ed2('73')],'token':_0x1e5326,'origin':_0x5981d8[_0x4ed2('74')],'user-agent':_0x5981d8[_0x4ed2('75')],'referer':_0x5981d8[_0x4ed2('76')],'cookie':_0x5981d8[_0x4ed2('6c')](_0x5981d8[_0x4ed2('77')],_0x6b4dc3),'Connection':_0x5981d8[_0x4ed2('78')]}},new Promise(_0x464101=>{$[_0x4ed2('79')](opt,(_0x556a57,_0x415fd7,_0x5a94a0)=>{var _0xf003b8={'dAeXt':_0x5981d8[_0x4ed2('7a')],'HPeSl':_0x5981d8[_0x4ed2('7b')]};try{if(_0x5981d8[_0x4ed2('7c')](_0x5981d8[_0x4ed2('7d')],_0x5981d8[_0x4ed2('7e')])){_0x556a57?console[_0x4ed2('a')](_0x556a57):_0x5a94a0=JSON[_0x4ed2('d')](_0x5a94a0);}else{$[_0x4ed2('1d')]($[_0x4ed2('1e')],_0xf003b8[_0x4ed2('7f')],_0xf003b8[_0x4ed2('80')],{'open-url':_0xf003b8[_0x4ed2('80')]});return;}}catch(_0x307298){console[_0x4ed2('a')](_0x307298);}finally{_0x5981d8[_0x4ed2('81')](_0x464101,_0x5981d8[_0x4ed2('82')](_0x5a94a0,''));}});});}async function task(_0x4666ae,_0x5456b1,_0x27b04d,_0x182d78){var _0x3432f5={'gtJEs':function(_0x38c74d,_0x6aebc1){return _0x38c74d(_0x6aebc1);},'WQosF':function(_0x24c830,_0x24f233){return _0x24c830||_0x24f233;},'wpiUA':function(_0x15eba7,_0x2e3ecf){return _0x15eba7+_0x2e3ecf;},'SCfRB':_0x4ed2('62'),'twiUr':_0x4ed2('63'),'mQuZL':_0x4ed2('64'),'jqXgu':_0x4ed2('65'),'QMYWN':_0x4ed2('66'),'JUWwP':_0x4ed2('83'),'zYDwd':_0x4ed2('67'),'ropoS':_0x4ed2('68'),'qmEBS':_0x4ed2('69'),'bUpUP':_0x4ed2('6a'),'EEAVs':_0x4ed2('6b')};return opt={'url':_0x3432f5[_0x4ed2('84')](_0x4ed2('85')+_0x4666ae+_0x4ed2('86'),new Date()[_0x4ed2('6e')]()),'body':JSON[_0x4ed2('2f')](_0x5456b1),'headers':{'host':_0x3432f5[_0x4ed2('87')],'accept':_0x3432f5[_0x4ed2('88')],'Content-Type':_0x3432f5[_0x4ed2('89')],'accept-language':_0x3432f5[_0x4ed2('8a')],'accept-encoding':_0x3432f5[_0x4ed2('8b')],'token':_0x182d78?_0x182d78:_0x3432f5[_0x4ed2('8c')],'origin':_0x3432f5[_0x4ed2('8d')],'user-agent':_0x3432f5[_0x4ed2('8e')],'referer':_0x3432f5[_0x4ed2('8f')],'cookie':_0x3432f5[_0x4ed2('84')](_0x3432f5[_0x4ed2('90')],_0x27b04d),'Connection':_0x3432f5[_0x4ed2('91')]}},new Promise(_0x56659b=>{var _0xd503ce={'qLJrh':function(_0x323f08,_0xb11120){return _0x3432f5[_0x4ed2('92')](_0x323f08,_0xb11120);},'Kdpaz':function(_0x384da6,_0x19216e){return _0x3432f5[_0x4ed2('93')](_0x384da6,_0x19216e);}};$[_0x4ed2('94')](opt,(_0x235b7a,_0x179d63,_0x595579)=>{try{_0x235b7a?console[_0x4ed2('a')](_0x235b7a):_0x595579=JSON[_0x4ed2('d')](_0x595579);}catch(_0x197f36){console[_0x4ed2('a')](_0x197f36);}finally{_0xd503ce[_0x4ed2('95')](_0x56659b,_0xd503ce[_0x4ed2('96')](_0x595579,''));}});});}async function getToken(){var _0x1873a9={'RHffj':function(_0x1a6e5b,_0x1967a3){return _0x1a6e5b===_0x1967a3;},'NyHHw':_0x4ed2('97'),'yljTO':function(_0xcd5e3a,_0x35e9e0){return _0xcd5e3a(_0x35e9e0);},'gqTzP':function(_0x2e929f,_0x167c5a,_0x4b02be){return _0x2e929f(_0x167c5a,_0x4b02be);},'abzbw':_0x4ed2('98'),'zRqnm':_0x4ed2('69'),'GgVjO':_0x4ed2('99'),'Fykac':_0x4ed2('9a'),'rsNRd':_0x4ed2('66'),'PBbEv':_0x4ed2('9b'),'neqbY':_0x4ed2('9c'),'pylcB':_0x4ed2('9d'),'rVgzI':_0x4ed2('9e'),'aZmic':_0x4ed2('9f')};return s=await _0x1873a9[_0x4ed2('a0')](getSign,_0x1873a9[_0x4ed2('a1')],{'url':_0x1873a9[_0x4ed2('a2')],'id':''}),opt={'url':_0x4ed2('a3'),'body':s,'headers':{'Host':_0x1873a9[_0x4ed2('a4')],'Accept':_0x1873a9[_0x4ed2('a5')],'Accept-Encoding':_0x1873a9[_0x4ed2('a6')],'Content-Type':_0x1873a9[_0x4ed2('a7')],'Accept-Language':_0x1873a9[_0x4ed2('a8')],'Content-Length':_0x1873a9[_0x4ed2('a9')],'User-Agent':_0x1873a9[_0x4ed2('aa')],'Referer':'','Connection':_0x1873a9[_0x4ed2('ab')],'Cookie':cookie}},new Promise(_0x397ac1=>{var _0x1fd683={'jMNEC':function(_0x11bfe9,_0x224c83){return _0x1873a9[_0x4ed2('ac')](_0x11bfe9,_0x224c83);},'kArNg':_0x1873a9[_0x4ed2('ad')],'Hptob':function(_0x26c251,_0x38c4e3){return _0x1873a9[_0x4ed2('ae')](_0x26c251,_0x38c4e3);}};$[_0x4ed2('94')](opt,(_0x55123d,_0x4894a2,_0x300cde)=>{try{if(_0x1fd683[_0x4ed2('af')](_0x1fd683[_0x4ed2('b0')],_0x1fd683[_0x4ed2('b0')])){_0x55123d?console[_0x4ed2('a')](_0x55123d):_0x300cde=JSON[_0x4ed2('d')](_0x300cde);}else{_0x55123d?console[_0x4ed2('a')](_0x55123d):_0x300cde=JSON[_0x4ed2('d')](_0x300cde);}}catch(_0x33268a){console[_0x4ed2('a')](_0x33268a);}finally{_0x1fd683[_0x4ed2('b1')](_0x397ac1,_0x300cde[_0x4ed2('4b')]||'');}});});}function rsaEncrypt(_0x5382b0){var _0xcaabbf={'hsLQg':_0x4ed2('b2'),'hLMGH':_0x4ed2('b3')};const _0x402c38=_0x4ed2('b4')[_0x4ed2('b5')](_0xcaabbf[_0x4ed2('b6')]);let _0x36d137=crypto[_0x4ed2('b7')]({'key':_0x402c38,'padding':crypto[_0x4ed2('b8')][_0x4ed2('b9')]},Buffer[_0x4ed2('ba')](_0x5382b0))[_0x4ed2('b5')](_0xcaabbf[_0x4ed2('bb')]);return _0x36d137;};function getSign(_0x2b43ff,_0x32d0d2){var _0x590c49={'jWJsp':function(_0x4717b8,_0x4aa9d1){return _0x4717b8===_0x4aa9d1;},'SHetD':_0x4ed2('bc'),'FsQCQ':_0x4ed2('bd'),'vIaLb':function(_0x2ab04f,_0x263125){return _0x2ab04f!==_0x263125;},'LiNpZ':_0x4ed2('be'),'lBFmV':function(_0x5de296,_0x1b9839){return _0x5de296===_0x1b9839;},'saXeJ':_0x4ed2('bf'),'SiRiA':function(_0x4d427e,_0x57c85e){return _0x4d427e(_0x57c85e);},'CjASQ':function(_0x195651){return _0x195651();},'KWJqN':_0x4ed2('42'),'ifFdh':_0x4ed2('c0'),'nJhfo':_0x4ed2('c1'),'ExQgq':_0x4ed2('c2'),'umvpc':function(_0x191e72,_0x3515ec){return _0x191e72*_0x3515ec;},'wLoaV':_0x4ed2('c3'),'fzYKr':function(_0x336360,_0x22e2dd){return _0x336360*_0x22e2dd;}};return new Promise(async _0x598037=>{var _0x548f4b={'AnnKi':function(_0x5a8f8d){return _0x590c49[_0x4ed2('c4')](_0x5a8f8d);},'VSEDr':_0x590c49[_0x4ed2('c5')]};let _0x2788ba={'functionId':_0x2b43ff,'body':JSON[_0x4ed2('2f')](_0x32d0d2),'activityId':_0x590c49[_0x4ed2('c6')]};let _0x454b16='';let _0x4e8866=[_0x590c49[_0x4ed2('c7')]];if(process[_0x4ed2('7')][_0x4ed2('c8')]){_0x454b16=process[_0x4ed2('7')][_0x4ed2('c8')];}else{if(_0x590c49[_0x4ed2('c9')](_0x590c49[_0x4ed2('ca')],_0x590c49[_0x4ed2('ca')])){_0x454b16=process[_0x4ed2('7')][_0x4ed2('c8')];}else{_0x454b16=_0x4e8866[Math[_0x4ed2('cb')](_0x590c49[_0x4ed2('cc')](Math[_0x4ed2('cd')](),_0x4e8866[_0x4ed2('22')]))];}}let _0x12e6a5={'url':_0x4ed2('ce'),'body':JSON[_0x4ed2('2f')](_0x2788ba),'headers':{'Host':_0x454b16,'User-Agent':_0x590c49[_0x4ed2('cf')]},'timeout':_0x590c49[_0x4ed2('d0')](0x1e,0x3e8)};$[_0x4ed2('94')](_0x12e6a5,(_0x4d1fff,_0x2c567c,_0x2788ba)=>{try{if(_0x590c49[_0x4ed2('d1')](_0x590c49[_0x4ed2('d2')],_0x590c49[_0x4ed2('d3')])){_0x548f4b[_0x4ed2('d4')](_0x598037);}else{if(_0x4d1fff){if(_0x590c49[_0x4ed2('c9')](_0x590c49[_0x4ed2('d5')],_0x590c49[_0x4ed2('d5')])){console[_0x4ed2('a')](_0x548f4b[_0x4ed2('d6')]);}else{console[_0x4ed2('a')](''+JSON[_0x4ed2('2f')](_0x4d1fff));console[_0x4ed2('a')]($[_0x4ed2('1e')]+_0x4ed2('d7'));}}else{}}}catch(_0x47bd1e){if(_0x590c49[_0x4ed2('d8')](_0x590c49[_0x4ed2('d9')],_0x590c49[_0x4ed2('d9')])){$[_0x4ed2('1c')](_0x47bd1e,_0x2c567c);}else{cookiesArr[_0x4ed2('6')](jdCookieNode[item]);}}finally{_0x590c49[_0x4ed2('da')](_0x598037,_0x2788ba);}});});}function checkCookie(){var _0x5d3d92={'mwwKx':function(_0x6af491,_0x26482e){return _0x6af491(_0x26482e);},'ZfkAh':_0x4ed2('c'),'pSDnD':_0x4ed2('11'),'EMqxv':_0x4ed2('12'),'CbQTy':function(_0x3b03d3,_0x1fc4ce){return _0x3b03d3(_0x1fc4ce);},'ZpEWR':_0x4ed2('b2'),'IhMQY':_0x4ed2('b3'),'CPtQs':function(_0x56ebcf,_0x5a45d8){return _0x56ebcf(_0x5a45d8);},'mAuwp':function(_0x205087,_0x3625fb){return _0x205087||_0x3625fb;},'SlCAa':function(_0x17b9d5,_0x521972){return _0x17b9d5!==_0x521972;},'ZSyMt':_0x4ed2('db'),'FHFam':_0x4ed2('dc'),'Ccrno':function(_0x2f4319,_0x1ae46d){return _0x2f4319===_0x1ae46d;},'VGXuP':_0x4ed2('dd'),'zbhDU':_0x4ed2('de'),'wSghd':function(_0x34fb25,_0x42d42c){return _0x34fb25===_0x42d42c;},'knBJS':_0x4ed2('df'),'vznec':_0x4ed2('e0'),'eQXVf':_0x4ed2('e1'),'CNTAE':_0x4ed2('e2'),'UZjcw':_0x4ed2('e3'),'WSCfu':function(_0x4f0d6c,_0x35c1c3){return _0x4f0d6c===_0x35c1c3;},'DTOxT':_0x4ed2('e4'),'soskQ':function(_0x3312e4){return _0x3312e4();},'apMLx':_0x4ed2('e5'),'wiNwE':_0x4ed2('e6'),'ZSPLI':_0x4ed2('e7'),'TkfNJ':_0x4ed2('e8'),'eBEOj':_0x4ed2('9a'),'WdjiT':_0x4ed2('9f'),'AFPve':_0x4ed2('e9'),'IDCsU':_0x4ed2('65'),'RCljh':_0x4ed2('ea'),'kvizS':_0x4ed2('eb')};const _0x314acb={'url':_0x5d3d92[_0x4ed2('ec')],'headers':{'Host':_0x5d3d92[_0x4ed2('ed')],'Accept':_0x5d3d92[_0x4ed2('ee')],'Connection':_0x5d3d92[_0x4ed2('ef')],'Cookie':cookie,'User-Agent':_0x5d3d92[_0x4ed2('f0')],'Accept-Language':_0x5d3d92[_0x4ed2('f1')],'Referer':_0x5d3d92[_0x4ed2('f2')],'Accept-Encoding':_0x5d3d92[_0x4ed2('f3')]}};return new Promise(_0xe9866a=>{var _0x1afb69={'agaMi':_0x5d3d92[_0x4ed2('f4')],'YdFPu':_0x5d3d92[_0x4ed2('f5')],'hqjNs':_0x5d3d92[_0x4ed2('f6')],'tIUKR':function(_0x3c7140,_0x50b7cc){return _0x5d3d92[_0x4ed2('f7')](_0x3c7140,_0x50b7cc);},'MlHNJ':function(_0x1f2be0,_0x494661){return _0x5d3d92[_0x4ed2('f8')](_0x1f2be0,_0x494661);},'RVPGo':_0x5d3d92[_0x4ed2('f9')],'EtXNR':_0x5d3d92[_0x4ed2('fa')],'KPxJA':function(_0x42b5b8,_0x59a1ae){return _0x5d3d92[_0x4ed2('fb')](_0x42b5b8,_0x59a1ae);},'sfuEP':function(_0x2bde9f,_0x157f84){return _0x5d3d92[_0x4ed2('fc')](_0x2bde9f,_0x157f84);},'aYwIz':function(_0x21d27a,_0x2f60af){return _0x5d3d92[_0x4ed2('fd')](_0x21d27a,_0x2f60af);},'sFrJe':_0x5d3d92[_0x4ed2('fe')],'dJaCg':_0x5d3d92[_0x4ed2('ff')],'dytvX':function(_0x1fcc48,_0x458ecb){return _0x5d3d92[_0x4ed2('100')](_0x1fcc48,_0x458ecb);},'ggJvS':_0x5d3d92[_0x4ed2('101')],'tdbCX':_0x5d3d92[_0x4ed2('102')],'RCcsd':function(_0x6de8de,_0x99b5e0){return _0x5d3d92[_0x4ed2('103')](_0x6de8de,_0x99b5e0);},'RrUzp':_0x5d3d92[_0x4ed2('104')],'FLkdS':_0x5d3d92[_0x4ed2('105')],'GGZOd':_0x5d3d92[_0x4ed2('106')],'KdBNv':function(_0x236139,_0x4b34f1){return _0x5d3d92[_0x4ed2('103')](_0x236139,_0x4b34f1);},'mTJEA':_0x5d3d92[_0x4ed2('107')],'VNgUT':_0x5d3d92[_0x4ed2('108')],'Wxgpn':function(_0x7c2377,_0x571973){return _0x5d3d92[_0x4ed2('109')](_0x7c2377,_0x571973);},'NUzwj':_0x5d3d92[_0x4ed2('10a')],'dthLf':function(_0x57bc68){return _0x5d3d92[_0x4ed2('10b')](_0x57bc68);}};if(_0x5d3d92[_0x4ed2('109')](_0x5d3d92[_0x4ed2('10c')],_0x5d3d92[_0x4ed2('10d')])){try{err?console[_0x4ed2('a')](err):data=JSON[_0x4ed2('d')](data);}catch(_0x3a7b9c){console[_0x4ed2('a')](_0x3a7b9c);}finally{_0x5d3d92[_0x4ed2('f7')](_0xe9866a,data[_0x4ed2('4b')]||'');}}else{$[_0x4ed2('79')](_0x314acb,(_0x41fd58,_0x6fc0e9,_0x5a8279)=>{try{if(_0x1afb69[_0x4ed2('10e')](_0x1afb69[_0x4ed2('10f')],_0x1afb69[_0x4ed2('10f')])){if(_0x41fd58){console[_0x4ed2('a')](''+JSON[_0x4ed2('2f')](_0x41fd58));console[_0x4ed2('a')]($[_0x4ed2('1e')]+_0x4ed2('d7'));}else{}}else{if(_0x41fd58){$[_0x4ed2('1c')](_0x41fd58);}else{if(_0x1afb69[_0x4ed2('10e')](_0x1afb69[_0x4ed2('110')],_0x1afb69[_0x4ed2('110')])){let _0x4cfca6=$[_0x4ed2('b')](_0x1afb69[_0x4ed2('111')])||'[]';_0x4cfca6=JSON[_0x4ed2('d')](_0x4cfca6);cookiesArr=_0x4cfca6[_0x4ed2('e')](_0x470978=>_0x470978[_0x4ed2('f')]);cookiesArr[_0x4ed2('10')]();cookiesArr[_0x4ed2('6')](...[$[_0x4ed2('b')](_0x1afb69[_0x4ed2('112')]),$[_0x4ed2('b')](_0x1afb69[_0x4ed2('113')])]);cookiesArr[_0x4ed2('10')]();cookiesArr=cookiesArr[_0x4ed2('13')](_0xfb3ad2=>!!_0xfb3ad2);}else{if(_0x5a8279){_0x5a8279=JSON[_0x4ed2('d')](_0x5a8279);if(_0x1afb69[_0x4ed2('114')](_0x5a8279[_0x4ed2('115')],_0x1afb69[_0x4ed2('116')])){if(_0x1afb69[_0x4ed2('10e')](_0x1afb69[_0x4ed2('117')],_0x1afb69[_0x4ed2('117')])){_0x1afb69[_0x4ed2('118')](_0xe9866a,_0x5a8279);}else{$[_0x4ed2('28')]=![];return;}}if(_0x1afb69[_0x4ed2('119')](_0x5a8279[_0x4ed2('115')],'0')&&_0x5a8279[_0x4ed2('4a')][_0x4ed2('11a')](_0x1afb69[_0x4ed2('11b')])){if(_0x1afb69[_0x4ed2('10e')](_0x1afb69[_0x4ed2('11c')],_0x1afb69[_0x4ed2('11c')])){_0x1afb69[_0x4ed2('11d')](_0xe9866a,_0x5a8279[_0x4ed2('4b')]||'');}else{$[_0x4ed2('29')]=_0x5a8279[_0x4ed2('4a')][_0x4ed2('df')][_0x4ed2('11e')][_0x4ed2('11f')];}}}else{$[_0x4ed2('a')](_0x1afb69[_0x4ed2('120')]);}}}}}catch(_0x3f8ced){if(_0x1afb69[_0x4ed2('121')](_0x1afb69[_0x4ed2('122')],_0x1afb69[_0x4ed2('123')])){const _0x231cea=_0x4ed2('b4')[_0x4ed2('b5')](_0x1afb69[_0x4ed2('124')]);let _0x258b06=crypto[_0x4ed2('b7')]({'key':_0x231cea,'padding':crypto[_0x4ed2('b8')][_0x4ed2('b9')]},Buffer[_0x4ed2('ba')](plain_text))[_0x4ed2('b5')](_0x1afb69[_0x4ed2('125')]);return _0x258b06;}else{$[_0x4ed2('1c')](_0x3f8ced);}}finally{if(_0x1afb69[_0x4ed2('126')](_0x1afb69[_0x4ed2('127')],_0x1afb69[_0x4ed2('127')])){_0x1afb69[_0x4ed2('128')](_0xe9866a);}else{_0x1afb69[_0x4ed2('129')](_0xe9866a,_0x1afb69[_0x4ed2('12a')](_0x5a8279,''));}}});}});};_0xodP='jsjiami.com.v6';
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) }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。