1 Star 0 Fork 0

冷心/Thread

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jd_prodev.js 39.77 KB
一键复制 编辑 原始数据 按行查看 历史
gys619 提交于 2022-11-09 21:10 . up
/*
邀请好友入会赢好礼
环境变量
prodevactCode 活动id
prodevinvitePin 自己的pin,选填
prodevinviteNum 是否跑实物,默认跑
自动助力 ck1,自动获取上限,
activityUrl = https://prodev.m.jd.com/mall/active/dVF7gQUVKyUcuSsVhuya5d2XD4F/index.html?code=
7 7 7 7 7 jd_prodev.js
*/
const $ = new Env('邀请好友入会赢好礼-火箭版');
const notify = $.isNode() ? require('./sendNotify') : '';
//Node.js用户请在jdCookie.js处填写京东ck;
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
let cookiesArr = [], cookie = '';
let actCode = process.env.prodevactCode ?? '';
let invitePin = process.env.prodevinvitePin ?? '';
let inviteNum = process.env.prodevinviteNum ?? true;
let help = 0
let tmpHelpNum = 0
if ($.isNode()) {
Object.keys(jdCookieNode).forEach((item) => {
cookiesArr.push(jdCookieNode[item])
})
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {
};
} else {
cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
}
var _0xodW='jsjiami.com.v6',_0xodW_=['‮_0xodW'],_0xac9c=[_0xodW,'YWN0aXZpdHlTdGF0dXM=','b3BlbkNhcmRTdGF0dXMg','ZFBIVlA=','akFPb1g=','55m75b2V5oiQ5Yqf','UElJdUM=','Ki8q','Z3ppcCwgZGVmbGF0ZSwgYnI=','emgtQ04semgtSGFucztxPTAuOQ==','a2VlcC1hbGl2ZQ==','TlFCQk8=','TFhYbWY=','QXhzUHk=','TnVnRUE=','RERza3o=','cGRSQmk=','aHR0cHM6Ly9wbG9naW4ubS5qZC5jb20vY2dpLWJpbi9tbC9pc2xvZ2luP3RpbWU9','JmNhbGxiYWNrPV9fanNvbnA=','Jl89','SFhWQXk=','cVFxVEU=','RHZxRUk=','QlBRWnA=','VW5FR3Q=','cGxvZ2luLm0uamQuY29t','aHR0cHM6Ly9wcm9kZXYubS5qZC5jb20v','amRhcHA7aVBob25lOzkuNS40OzEzLjY7','O25ldHdvcmsvd2lmaTtBRElELw==','O21vZGVsL2lQaG9uZTEwLDM7YWRkcmVzc2lkLzA7YXBwQnVpbGQvMTY3NjY4O2pkU3VwcG9ydERhcmtNb2RlLzA7TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM182IGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgTW9iaWxlLzE1RTE0ODtzdXBwb3J0SkRTSFdLLzE=','Z2V0','cmFqTW4=','SHZzUUs=','cHp1Zkg=','IEFQSeivt+axguWksei0pe+8jOivt+ajgOafpee9kei3r+mHjeivlQ==','aXNsb2dpbg==','WXBxUVQ=','V2JsVGM=','cGFyc2U=','SUt1Z1U=','ZlhRcWU=','cmVzdWx0','dXNlckluZm8=','b3BlbkNhcmRTdGF0dXM=','Zkh6bWU=','UEVEeno=','ZEJ5WHo=','5Lqk5piT5aSx6LSl','WmlBQUk=','UGNYT2Y=','Wm5SRWE=','emgtSGFucy1VUztxPTEsIGVuLVVTO3E9MC45','YXBwbGljYXRpb24vanNvbg==','aHR0cHM6Ly9wcm9kZXYubS5qZC5jb20=','dFF6VFA=','aHR0cHM6Ly9hcGkubS5qZC5jb20vYXBpP2NsaWVudD0mY2xpZW50VmVyc2lvbj0mYXBwaWQ9amRjaG91amlhbmdfaDUmdD0=','JmZ1bmN0aW9uSWQ9','JmJvZHk9','Jmg1c3Q9Jm9wZW5pZD0tMSZ1dWlkPQ==','JmNvZGU9','Y1B1Zkk=','cldEV2Y=','RXdZWGo=','WFpadHg=','U3psUUw=','eGl1eHk=','Qm12V1A=','ZGF0YQ==','cUt5UHg=','cERtSWY=','UmxtckY=','Q1VCSlg=','SEZUUlY=','QldnanI=','Q1hjZG8=','UERZVnA=','cFZiTVM=','Z2JHdk4=','Q3hWSlc=','YlhDbXU=','WmJhR2o=','bGVRWkM=','T3ZiYmI=','QnBXQk0=','VUhLb1Y=','cmFuZG9t','SkNqZnA=','QXBacFQ=','SlpWUUM=','R3BYT0U=','dkZpbXU=','ck1VUGo=','YXBwbGljYXRpb24vanNvbix0ZXh0L3BsYWluLCAqLyo=','YXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVk','emgtY24=','aHR0cHM6Ly93cXMuamQuY29tL215L2ppbmdkb3UvbXkuc2h0bWw/c2NlbmV2YWw9Mg==','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNF8zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xNC4wLjIgTW9iaWxlLzE1RTE0OCBTYWZhcmkvNjA0LjE=','Y0NJQkU=','dnhsY2Q=','RGpIdVQ=','cmV0Y29kZQ==','TUJRdng=','YmRTUXY=','Y3VWYkg=','SEhSQkk=','SHZGR2c=','T0RMcXg=','QW55RWs=','WWd2V0g=','aHR0cHM6Ly93cS5qZC5jb20vdXNlci9pbmZvL1F1ZXJ5SkRVc2VySW5mbz9zY2VuZXZhbD0y','ZFRtS04=','aENQRko=','blNxR0U=','aU1vb2Q=','aVBTSk8=','S1ZXVXI=','cG9zdA==','d2FIaWw=','Q2ZoeGs=','VHR3RnY=','QU5KaGQ=','YVJVVk8=','ZmhDRXY=','a2h6TEk=','bkZoUGk=','U1RLdEc=','YW9mbHo=','TkNjcVE=','c1pIYVU=','U21DUms=','VWRyRVU=','cmVwbGFjZQ==','bVBFeFg=','YkZvVHA=','ZEpQQm4=','dG9TdHJpbmc=','dG9VcHBlckNhc2U=','cElFa2s=','T01RcXE=','dWN3bFY=','aHR0cHM6Ly9hcGkubS5qZC5jb20vY2xpZW50LmFjdGlvbj9hcHBpZD1qZF9zaG9wX21lbWJlciZmdW5jdGlvbklkPWdldFNob3BPcGVuQ2FyZEluZm8mYm9keT0=','JmNsaWVudFZlcnNpb249OS4yLjAmY2xpZW50PUg1JnV1aWQ9ODg4ODgmaDVzdD0=','UGtIVXI=','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNl8wXzIgbGlrZSBNYWMgT1MgWCkgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzE2LjAgTW9iaWxlLzE1RTE0OCBTYWZhcmkvNjA0LjE=','aHR0cHM6Ly9zaG9wbWVtYmVyLm0uamQuY29tLw==','b0hxUlM=','d1hwTG4=','dWVCQmo=','QkZaTks=','ak5aUXk=','UXRUYmw=','aFhwdUg=','ZmpxUHk=','VkRFd1A=','VmthdnM=','Y0VIVEQ=','Qm5YTnY=','YmFzZQ==','Q2xicW0=','aHR0cHM6Ly9iZWFuLm0uamQuY29tL2JlYW4vc2lnbkluZGV4LmFjdGlvbg==','VnhaV0o=','amJ2YVY=','bW1rTVo=','5oiQ5Yqf6YKA6K+35Lq65pWwIA==','IC0tIA==','IC0tIOW6k+WtmCA=','IC0tIOS6uuaVsCA=','ZnB6cGU=','dmVuZGVySWQg','bWVtYmVyQnJpbmdKb2luTWVtYmVy','CuWKqeWKmyAtPiA=','alR4YW4=','UnFQR1U=','amhST2o=','RmlKdkI=','eHh4eHh4eHgteHh4eC14eHh4LXh4eHgteHh4eHh4eHh4eHh4','eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eA==','Tm5hYWQ=','5Yqp5Yqb5bey5ruh','T2dGaFA=','d0phcG4=','bWVtYmVyQnJpbmdJbnZpdGVSZXdhcmQ=','amt2RkY=','UUxEZ1Y=','UnJWT3I=','b0ZFZVk=','aW5kZXg=','aGVscE51bQ==','bXNn','bmFtZQ==','44CQ5o+Q56S644CR6K+35YWI6I635Y+W5Lqs5Lic6LSm5Y+35LiAY29va2llCuebtOaOpeS9v+eUqE5vYnlEYeeahOS6rOS4nOetvuWIsOiOt+WPlg==','YmFNWGk=','dmVuZGVySWQ=','cmV3YXJkc2xpc3Q=','bG9n','b1NRck8=','eGhoZU0=','RUJaRWw=','VXNlck5hbWU=','cWxWWGw=','bWF0Y2g=','aXNMb2dpbg==','bmlja05hbWU=','ZXJyb3JNZXNzYWdl','dG1wSGVscE51bQ==','RWhzQ1M=','CioqKioqKuW8gOWni+OAkOS6rOS4nOi0puWPtw==','KioqKioqKioqCg==','UkpuZXc=','RG15dHA=','44CQ5o+Q56S644CRY29va2ll5bey5aSx5pWI','5Lqs5Lic6LSm5Y+3','Cuivt+mHjeaWsOeZu+W9leiOt+WPlgpodHRwczovL2JlYW4ubS5qZC5jb20vYmVhbi9zaWduSW5kZXguYWN0aW9u','aXNOb2Rl','QURJRA==','VWRLYkM=','VVVJRA==','dXVpZA==','bWVtYmVyQnJpbmdGaXJzdEludml0ZQ==','c3RyaW5naWZ5','JmZwPSZlaWQ9','c3VjY2Vzcw==','Z2V0QWN0aXZpdHlQYWdl','YkRxcUU=','Wm1sUlo=','Y0lTWkI=','c3VjY2Vzc0NvdW50','cmV3YXJkcw==','VmFmQlU=','eXRBSm4=','SEdRUlE=','ZGVmdlM=','U3RtTnc=','6Zi25q61IA==','c3RhZ2U=','Z2l3YXA=','cmV3YXJkRGVzYw==','cmV3YXJkTmFtZQ==','WExiU24=','cmV3YXJkU3RvY2s=','RnZXY2E=','aW52aXRlTnVt','aW5kZXhPZg==','cHVzaA==','WVBuWEM=','bG9nRXJy','Y09IenI=','CmhlbHDkurrmlbAg','QnNMd0U=','dG1MV0c=','Jmludml0ZVBpbj0=','ekpVcGw=','bGVuZ3Ro','WkhwZEE=','c2Nta3E=','QW11TGk=','TmNPQ3k=','Z2p2UGk=','5Lqs5Lic5pyN5Yqh5Zmo6L+U5Zue56m65pWw5o2u','TExtak4=','cVRHb0Y=','VG9uQlc=','T2ZPTWc=','WkZoekU=','b3BSRWs=','VGxvR2o=','5b2T5YmN5Yqp5Yqb5Lq65pWwIC0+IA==','UkFBbkM=','TW1ESko=','RlpWYm8=','dFJ2QXk=','S25xS2o=','bmlja25hbWU=','SkVtU3k=','Zm9lSUM=','cmV3YXJkc251bQ==','a0F4Z2M=','dEVXQmE=','Z3JXU0k=','ZUdBakc=','alN1ekQ=','JnN0YWdlPQ==','d2FpdA==','Y2F0Y2g=','LCDlpLHotKUhIOWOn+WboDog','ZmluYWxseQ==','ZG9uZQ==','bWVtYmVyQnJpbmdBY3RQYWdl','QmNkUGQ=','WFFpeFQ=','WGZVVm0=','Q1lFU0M=','Jmludml0ZVBpbj0mX3Q9','bm93','dE51amg=','PjsjiFJabmiSA.BCcfAdHxBNom.v6=='];if(function(_0x540bdd,_0x312afe,_0x32768a){function _0x4763d2(_0x23d15a,_0x198451,_0x200d07,_0x312bb7,_0x56a2fd,_0x2c3069){_0x198451=_0x198451>>0x8,_0x56a2fd='po';var _0x3d1eca='shift',_0x56d350='push',_0x2c3069='';if(_0x198451<_0x23d15a){while(--_0x23d15a){_0x312bb7=_0x540bdd[_0x3d1eca]();if(_0x198451===_0x23d15a&&_0x2c3069===''&&_0x2c3069['length']===0x1){_0x198451=_0x312bb7,_0x200d07=_0x540bdd[_0x56a2fd+'p']();}else if(_0x198451&&_0x200d07['replace'](/[PFJbSABCfAdHxBN=]/g,'')===_0x198451){_0x540bdd[_0x56d350](_0x312bb7);}}_0x540bdd[_0x56d350](_0x540bdd[_0x3d1eca]());}return 0x10f4a8;};return _0x4763d2(++_0x312afe,_0x32768a)>>_0x312afe^_0x32768a;}(_0xac9c,0x9c,0x9c00),_0xac9c){_0xodW_=_0xac9c['length']^0x9c;};function _0x9042(_0x3d0f7c,_0x3dd9b8){_0x3d0f7c=~~'0x'['concat'](_0x3d0f7c['slice'](0x1));var _0x1b04d4=_0xac9c[_0x3d0f7c];if(_0x9042['kNZoIz']===undefined&&''['length']===0x1){(function(){var _0x926fbf;try{var _0x2872cc=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x926fbf=_0x2872cc();}catch(_0x2431a8){_0x926fbf=window;}var _0x29cda3='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x926fbf['atob']||(_0x926fbf['atob']=function(_0x186fb0){var _0x316794=String(_0x186fb0)['replace'](/=+$/,'');for(var _0x31e09d=0x0,_0x832d45,_0x14af15,_0x864e11=0x0,_0xf7c528='';_0x14af15=_0x316794['charAt'](_0x864e11++);~_0x14af15&&(_0x832d45=_0x31e09d%0x4?_0x832d45*0x40+_0x14af15:_0x14af15,_0x31e09d++%0x4)?_0xf7c528+=String['fromCharCode'](0xff&_0x832d45>>(-0x2*_0x31e09d&0x6)):0x0){_0x14af15=_0x29cda3['indexOf'](_0x14af15);}return _0xf7c528;});}());_0x9042['hDzJIE']=function(_0x2c9238){var _0x483a69=atob(_0x2c9238);var _0x1dd60b=[];for(var _0x3a3ece=0x0,_0x3a546b=_0x483a69['length'];_0x3a3ece<_0x3a546b;_0x3a3ece++){_0x1dd60b+='%'+('00'+_0x483a69['charCodeAt'](_0x3a3ece)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1dd60b);};_0x9042['iauWbP']={};_0x9042['kNZoIz']=!![];}var _0x40fbe8=_0x9042['iauWbP'][_0x3d0f7c];if(_0x40fbe8===undefined){_0x1b04d4=_0x9042['hDzJIE'](_0x1b04d4);_0x9042['iauWbP'][_0x3d0f7c]=_0x1b04d4;}else{_0x1b04d4=_0x40fbe8;}return _0x1b04d4;};!(async()=>{var _0x217518={'oFEeY':function(_0x2d33e2,_0x3c6114){return _0x2d33e2!=_0x3c6114;},'EhsCS':function(_0x233383){return _0x233383();},'KnqKj':_0x9042('‫0'),'jkvFF':function(_0x595228,_0x43b53d){return _0x595228===_0x43b53d;},'RrVOr':_0x9042('‮1'),'baMXi':_0x9042('‮2'),'oSQrO':function(_0x158d96,_0x587c73){return _0x158d96<_0x587c73;},'xhheM':function(_0x1d75e9,_0x2510ed){return _0x1d75e9!==_0x2510ed;},'EBZEl':_0x9042('‮3'),'qlVXl':function(_0xeb6ba,_0x14f20d){return _0xeb6ba(_0x14f20d);},'Dmytp':_0x9042('‮4'),'UdKbC':function(_0x3da0dd,_0x3aaae9,_0xd33eea){return _0x3da0dd(_0x3aaae9,_0xd33eea);},'bDqqE':_0x9042('‮5'),'ZmlRZ':function(_0x135e2c,_0x3cd2e0){return _0x135e2c+_0x3cd2e0;},'cISZB':_0x9042('‫6'),'VafBU':function(_0x2b2793,_0x3c9d36){return _0x2b2793+_0x3c9d36;},'ytAJn':function(_0x5766b9,_0x246a9d){return _0x5766b9+_0x246a9d;},'HGQRQ':function(_0x645720,_0xe5af6d){return _0x645720+_0xe5af6d;},'defvS':function(_0xd833fa,_0x2ad459){return _0xd833fa+_0x2ad459;},'StmNw':function(_0x134514,_0x51d72c){return _0x134514+_0x51d72c;},'giwap':_0x9042('‮7'),'XLbSn':_0x9042('‮8'),'FvWca':_0x9042('‮9'),'YPnXC':_0x9042('‮a'),'cOHzr':function(_0x2382d9,_0x18ae3e){return _0x2382d9+_0x18ae3e;},'BsLwE':_0x9042('‫b'),'tmLWG':_0x9042('‫c'),'zJUpl':_0x9042('‮d'),'ZHpdA':_0x9042('‮e'),'scmkq':function(_0xa388be,_0x3a45bb){return _0xa388be!==_0x3a45bb;},'AmuLi':_0x9042('‫f'),'NcOCy':_0x9042('‮10'),'gjvPi':_0x9042('‮11'),'LLmjN':function(_0x217016,_0x3eee81,_0x4b69e3){return _0x217016(_0x3eee81,_0x4b69e3);},'qTGoF':_0x9042('‫12'),'TonBW':_0x9042('‫13'),'OfOMg':function(_0x5e046a,_0x572526){return _0x5e046a<_0x572526;},'ZFhzE':_0x9042('‮14'),'opREk':function(_0x3865bf){return _0x3865bf();},'TloGj':function(_0x2abc6d,_0x3c8a39){return _0x2abc6d+_0x3c8a39;},'RAAnC':_0x9042('‮15'),'MmDJJ':function(_0x112213,_0x3533b7){return _0x112213<_0x3533b7;},'tRvAy':_0x9042('‫16'),'JEmSy':function(_0x5ee93b,_0x101d10){return _0x5ee93b===_0x101d10;},'kAxgc':function(_0x56f7ab,_0xdf9dba){return _0x56f7ab===_0xdf9dba;},'tEWBa':_0x9042('‮17'),'grWSI':function(_0xdf0538,_0x1a773a,_0x382b17){return _0xdf0538(_0x1a773a,_0x382b17);},'eGAjG':_0x9042('‮18'),'jSuzD':function(_0x2d0a9c,_0x21b6d9){return _0x2d0a9c(_0x21b6d9);}};if(!cookiesArr[0x0]){if(_0x217518[_0x9042('‫19')](_0x9042('‫1a'),_0x217518[_0x9042('‫1b')])){if(_0x217518[_0x9042('‮1c')]($[_0x9042('‫1d')],0x1)){$[_0x9042('‮1e')]+=0x1;}}else{$[_0x9042('‮1f')]($[_0x9042('‫20')],_0x9042('‫21'),_0x217518[_0x9042('‫22')],{'open-url':_0x217518[_0x9042('‫22')]});return;}}$[_0x9042('‮1e')]=0x0;$[_0x9042('‫23')]='';$[_0x9042('‮24')]=[];console[_0x9042('‮25')]('开团');for(let _0x10a78d=0x0;_0x217518[_0x9042('‮26')](_0x10a78d,0x1);_0x10a78d++){if(cookiesArr[_0x10a78d]){if(_0x217518[_0x9042('‫27')](_0x217518[_0x9042('‮28')],_0x9042('‮3'))){console[_0x9042('‮25')](error);}else{cookie=cookiesArr[_0x10a78d];$[_0x9042('‫29')]=_0x217518[_0x9042('‫2a')](decodeURIComponent,cookie[_0x9042('‮2b')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x9042('‮2b')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x9042('‫1d')]=_0x10a78d+0x1;$[_0x9042('‫2c')]=!![];$[_0x9042('‫2d')]='';$[_0x9042('‫2e')]='';$[_0x9042('‫2f')]=0x0;message='';await _0x217518[_0x9042('‮30')](TotalBean);console[_0x9042('‮25')](_0x9042('‫31')+$[_0x9042('‫1d')]+''+($[_0x9042('‫2d')]||$[_0x9042('‫29')])+_0x9042('‫32'));if(!$[_0x9042('‫2c')]){if(_0x217518[_0x9042('‫19')](_0x9042('‮33'),_0x217518[_0x9042('‮34')])){invitePin=$[_0x9042('‫29')];}else{$[_0x9042('‮1f')]($[_0x9042('‫20')],_0x9042('‮35'),_0x9042('‫36')+$[_0x9042('‫1d')]+'\x20'+($[_0x9042('‫2d')]||$[_0x9042('‫29')])+_0x9042('‮37'),{'open-url':_0x217518[_0x9042('‫22')]});if($[_0x9042('‫38')]()){}continue;}}$[_0x9042('‫39')]=_0x217518[_0x9042('‫3a')](getUUID,_0x9042('‫12'),0x1);$[_0x9042('‮3b')]=getUUID(_0x9042('‫13'));$[_0x9042('‮3c')]=_0x217518[_0x9042('‫3a')](random,0x5f5e100,0x35a4e900);await _0x217518[_0x9042('‮30')](main);await _0x217518[_0x9042('‫3a')](getTask,_0x9042('‮3d'),encodeURIComponent(JSON[_0x9042('‮3e')]({'code':actCode,'fp':'','eid':''}))+_0x9042('‮3f'));if(!$[_0x9042('‮3d')][_0x9042('‮40')]){console[_0x9042('‮25')]($[_0x9042('‮3d')][_0x9042('‫2e')]);return;}if($[_0x9042('‮41')]){if(_0x217518[_0x9042('‫42')]!==_0x217518[_0x9042('‫42')]){$[_0x9042('‫2d')]=$[_0x9042('‫29')];}else{console[_0x9042('‮25')](_0x217518[_0x9042('‫43')](_0x217518[_0x9042('‮44')],$[_0x9042('‮41')][_0x9042('‮45')]));for(const _0x13aa79 of $[_0x9042('‮41')][_0x9042('‮46')]){console[_0x9042('‮25')](_0x217518[_0x9042('‫43')](_0x217518[_0x9042('‮47')](_0x217518[_0x9042('‫48')](_0x217518[_0x9042('‮49')](_0x217518[_0x9042('‮4a')](_0x217518[_0x9042('‮4b')](_0x9042('‮4c')+_0x13aa79[_0x9042('‮4d')]+_0x217518[_0x9042('‫4e')],_0x13aa79[_0x9042('‫4f')]),_0x217518[_0x9042('‫4e')]),_0x13aa79[_0x9042('‮50')])+_0x217518[_0x9042('‮51')],_0x13aa79[_0x9042('‫52')]),_0x217518[_0x9042('‫53')]),_0x13aa79[_0x9042('‮54')]));if(_0x217518[_0x9042('‮1c')](_0x13aa79[_0x9042('‮50')][_0x9042('‮55')]('京豆'),-0x1)&&_0x13aa79[_0x9042('‫52')]>0x0){$[_0x9042('‮24')][_0x9042('‫56')](_0x13aa79[_0x9042('‮4d')]);help=_0x13aa79[_0x9042('‮54')];}if(inviteNum){help=_0x13aa79[_0x9042('‮54')];}}if(tmpHelpNum>0x0){if(_0x217518[_0x9042('‫19')](_0x217518[_0x9042('‮57')],_0x9042('‮a'))){help=tmpHelpNum;}else{$[_0x9042('‫58')](e,resp);}}console[_0x9042('‮25')](_0x217518[_0x9042('‫59')](_0x9042('‫5a'),help));}}if(invitePin===''){invitePin=$[_0x9042('‫29')];}console[_0x9042('‮25')](_0x217518[_0x9042('‫59')](_0x217518[_0x9042('‫5b')],$[_0x9042('‫23')]));await _0x217518[_0x9042('‫3a')](getTask,_0x217518[_0x9042('‫5c')],encodeURIComponent(JSON[_0x9042('‮3e')]({'code':actCode,'invitePin':invitePin}))+_0x9042('‮5d')+invitePin);}}}console[_0x9042('‮25')](_0x217518[_0x9042('‫59')](_0x217518[_0x9042('‮5e')],invitePin));for(let _0x4a44ed=0x1;_0x217518[_0x9042('‮26')](_0x4a44ed,cookiesArr[_0x9042('‮5f')]);_0x4a44ed++){if(_0x217518[_0x9042('‫60')]!==_0x217518[_0x9042('‫60')]){$[_0x9042('‫58')](e,resp);}else{if(cookiesArr[_0x4a44ed]){if(_0x217518[_0x9042('‫61')](_0x217518[_0x9042('‫62')],_0x217518[_0x9042('‮63')])){cookie=cookiesArr[_0x4a44ed];$[_0x9042('‫29')]=_0x217518[_0x9042('‫2a')](decodeURIComponent,cookie[_0x9042('‮2b')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x9042('‮2b')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x9042('‫1d')]=_0x217518[_0x9042('‫59')](_0x4a44ed,0x1);$[_0x9042('‫2c')]=!![];$[_0x9042('‫2d')]='';message='';console[_0x9042('‮25')](_0x9042('‫31')+$[_0x9042('‫1d')]+''+($[_0x9042('‫2d')]||$[_0x9042('‫29')])+_0x9042('‫32'));if(!$[_0x9042('‫2c')]){if(_0x217518[_0x9042('‫61')](_0x217518[_0x9042('‫64')],_0x217518[_0x9042('‫64')])){console[_0x9042('‮25')](_0x9042('‮65'));}else{$[_0x9042('‮1f')]($[_0x9042('‫20')],_0x9042('‮35'),_0x9042('‫36')+$[_0x9042('‫1d')]+'\x20'+($[_0x9042('‫2d')]||$[_0x9042('‫29')])+_0x9042('‮37'),{'open-url':_0x9042('‮2')});if($[_0x9042('‫38')]()){}continue;}}$[_0x9042('‫39')]=_0x217518[_0x9042('‮66')](getUUID,_0x217518[_0x9042('‮67')],0x1);$[_0x9042('‮3b')]=_0x217518[_0x9042('‫2a')](getUUID,_0x217518[_0x9042('‫68')]);if(_0x217518[_0x9042('‮69')]($[_0x9042('‮1e')],help)){if(_0x217518[_0x9042('‫19')](_0x217518[_0x9042('‮6a')],_0x9042('‮14'))){await _0x217518[_0x9042('‮6b')](main);console[_0x9042('‮25')](_0x217518[_0x9042('‮6c')](_0x9042('‫6d'),$[_0x9042('‮1e')]));}else{$[_0x9042('‮1e')]+=0x1;}}else{console[_0x9042('‮25')](_0x217518[_0x9042('‮6e')]);break;}}else{_0x217518[_0x9042('‮30')](resolve);}}}}console[_0x9042('‮25')]('领取');for(let _0x323517=0x0;_0x217518[_0x9042('‮6f')](_0x323517,0x1);_0x323517++){if(_0x217518[_0x9042('‫19')](_0x9042('‮70'),_0x217518[_0x9042('‫71')])){$[_0x9042('‫2d')]=data[_0x217518[_0x9042('‫72')]]&&data[_0x217518[_0x9042('‫72')]][_0x9042('‮73')]||$[_0x9042('‫29')];}else{if(cookiesArr[_0x323517]){if(_0x217518[_0x9042('‫74')](_0x9042('‮75'),_0x9042('‮75'))){cookie=cookiesArr[_0x323517];$[_0x9042('‫29')]=_0x217518[_0x9042('‫2a')](decodeURIComponent,cookie[_0x9042('‮2b')](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x9042('‮2b')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x9042('‫1d')]=_0x217518[_0x9042('‮6c')](_0x323517,0x1);$[_0x9042('‫2c')]=!![];$[_0x9042('‫2d')]='';message='';await TotalBean();console[_0x9042('‮25')](_0x9042('‫31')+$[_0x9042('‫1d')]+''+($[_0x9042('‫2d')]||$[_0x9042('‫29')])+_0x9042('‫32'));if(!$[_0x9042('‫2c')]){$[_0x9042('‮1f')]($[_0x9042('‫20')],_0x9042('‮35'),_0x9042('‫36')+$[_0x9042('‫1d')]+'\x20'+($[_0x9042('‫2d')]||$[_0x9042('‫29')])+_0x9042('‮37'),{'open-url':_0x217518[_0x9042('‫22')]});if($[_0x9042('‫38')]()){}continue;}$[_0x9042('‫39')]=_0x217518[_0x9042('‮66')](getUUID,_0x9042('‫12'),0x1);$[_0x9042('‮3b')]=getUUID(_0x217518[_0x9042('‫68')]);$[_0x9042('‫76')]=0x0;for(const _0x13aa79 of $[_0x9042('‮24')]){if(_0x217518[_0x9042('‮77')](_0x217518[_0x9042('‮78')],_0x217518[_0x9042('‮78')])){await _0x217518[_0x9042('‮79')](getTask,_0x217518[_0x9042('‮7a')],_0x217518[_0x9042('‫7b')](encodeURIComponent,JSON[_0x9042('‮3e')]({'code':actCode,'stage':_0x13aa79}))+_0x9042('‫7c')+_0x13aa79);$[_0x9042('‫76')]=$[_0x9042('‫76')]+0x1;if($[_0x9042('‫76')]<0x3){await $[_0x9042('‫7d')](0x1388);}}else{$[_0x9042('‮24')][_0x9042('‫56')](_0x13aa79[_0x9042('‮4d')]);help=_0x13aa79[_0x9042('‮54')];}}}else{help=tmpHelpNum;}}}}})()[_0x9042('‫7e')](_0x214506=>{$[_0x9042('‮25')]('','\x20'+$[_0x9042('‫20')]+_0x9042('‮7f')+_0x214506+'!','');})[_0x9042('‫80')](()=>{$[_0x9042('‮81')]();});async function main(){var _0x31794a={'BcdPd':function(_0x203fb){return _0x203fb();},'XQixT':function(_0x26d361,_0x284257,_0x5f38d2){return _0x26d361(_0x284257,_0x5f38d2);},'XfUVm':_0x9042('‮82'),'CYESC':function(_0x457bf2,_0x420bfe){return _0x457bf2(_0x420bfe);},'tNujh':function(_0x1ed568,_0x5252d0){return _0x1ed568===_0x5252d0;}};await _0x31794a[_0x9042('‫83')](getPlogin);await _0x31794a[_0x9042('‫84')](getTask,_0x31794a[_0x9042('‫85')],_0x31794a[_0x9042('‮86')](encodeURIComponent,JSON[_0x9042('‮3e')]({'code':actCode,'pageNum':0x1,'invitePin':''}))+_0x9042('‮87')+Date[_0x9042('‮88')]());if($[_0x9042('‮41')]){$[_0x9042('‫23')]=$[_0x9042('‮41')][_0x9042('‫23')];if(_0x31794a[_0x9042('‫89')]($[_0x9042('‮41')][_0x9042('‫8a')],0x1)){await _0x31794a[_0x9042('‫84')](getTask,_0x9042('‫c'),encodeURIComponent(JSON[_0x9042('‮3e')]({'code':actCode,'invitePin':invitePin}))+_0x9042('‮5d')+invitePin);}}}function getPlogin(){var _0x490d69={'NQBBO':_0x9042('‫8b'),'LXXmf':_0x9042('‫8c'),'AxsPy':_0x9042('‮8d'),'NugEA':_0x9042('‫8e'),'DDskz':_0x9042('‫8f'),'pdRBi':function(_0x236c9c){return _0x236c9c();},'HXVAy':function(_0x28c616,_0x3b4f3d){return _0x28c616+_0x3b4f3d;},'qQqTE':_0x9042('‮90'),'DvqEI':_0x9042('‮91'),'BPQZp':_0x9042('‫92'),'UnEGt':_0x9042('‮93')};$[_0x9042('‮88')]=Date[_0x9042('‮88')]();return new Promise(async _0x17a7c4=>{var _0xfba3f0={'rajMn':_0x490d69[_0x9042('‫94')],'HvsQK':_0x490d69[_0x9042('‫95')],'pzufH':_0x490d69[_0x9042('‫96')],'YpqQT':_0x490d69[_0x9042('‮97')],'WblTc':_0x490d69[_0x9042('‫98')],'fHzme':function(_0xb71e63){return _0x490d69[_0x9042('‫99')](_0xb71e63);}};const _0x159f00={'url':_0x9042('‫9a')+$[_0x9042('‮88')]+_0x9042('‫9b')+($[_0x9042('‮88')]-0x2)+_0x9042('‮9c')+_0x490d69[_0x9042('‫9d')]($[_0x9042('‮88')],0x2),'headers':{'Accept':_0x490d69[_0x9042('‮9e')],'Accept-Encoding':_0x490d69[_0x9042('‮9f')],'Accept-Language':_0x490d69[_0x9042('‮a0')],'Connection':_0x490d69[_0x9042('‮a1')],'Cookie':cookie,'Host':_0x9042('‮a2'),'Referer':_0x9042('‮a3'),'User-Agent':_0x9042('‫a4')+$[_0x9042('‮3b')]+_0x9042('‮a5')+$[_0x9042('‫39')]+_0x9042('‮a6')}};$[_0x9042('‫a7')](_0x159f00,(_0xc634ec,_0x5e34b0,_0x385d8c)=>{var _0x488b2f={'IKugU':function(_0x33a9e9,_0x2e9aa4){return _0x33a9e9+_0x2e9aa4;},'fXQqe':_0xfba3f0[_0x9042('‮a8')]};try{if(_0xc634ec){if(_0xfba3f0[_0x9042('‫a9')]!==_0xfba3f0[_0x9042('‫aa')]){console[_0x9042('‮25')](''+JSON[_0x9042('‮3e')](_0xc634ec));console[_0x9042('‮25')]($[_0x9042('‫20')]+_0x9042('‫ab'));}else{console[_0x9042('‮25')](_0x9042('‮65'));}}else{if(_0x385d8c){if(_0x385d8c[_0x9042('‮55')](_0x9042('‮ac'))){console[_0x9042('‮25')](_0xfba3f0[_0x9042('‮ad')]);}}else{if(_0xfba3f0[_0x9042('‮ae')]===_0x9042('‫8f')){console[_0x9042('‮25')](_0x9042('‮65'));}else{_0x385d8c=JSON[_0x9042('‮af')](_0x385d8c);if(_0x385d8c[_0x9042('‮40')]){console[_0x9042('‮25')](_0x488b2f[_0x9042('‮b0')](_0x488b2f[_0x9042('‫b1')],_0x385d8c[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')]));$[_0x9042('‫b4')]=_0x385d8c[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')];}}}}}catch(_0x41870d){$[_0x9042('‫58')](_0x41870d,_0x5e34b0);}finally{_0xfba3f0[_0x9042('‫b5')](_0x17a7c4);}});});}function getTask(_0xa747cc,_0xcfba7f){var _0x5df213={'xiuxy':_0x9042('‫b6'),'BmvWP':_0x9042('‮82'),'qKyPx':_0x9042('‮3d'),'pDmIf':_0x9042('‮b7'),'RlmrF':function(_0x542c13,_0x21a469){return _0x542c13===_0x21a469;},'CUBJX':_0x9042('‫b8'),'HFTRV':function(_0x4820a6,_0x331ef5){return _0x4820a6!=_0x331ef5;},'BWgjr':_0x9042('‮b9'),'CXcdo':_0x9042('‫ba'),'pVbMS':_0x9042('‮18'),'CxVJW':function(_0x226a2e,_0x39b886){return _0x226a2e!==_0x39b886;},'bXCmu':_0x9042('‫bb'),'tQzTP':_0x9042('‫8e'),'cPufI':_0x9042('‮bc'),'rWDWf':_0x9042('‮93'),'EwYXj':_0x9042('‮bd'),'XZZtx':_0x9042('‮be')};return new Promise(async _0x1fd927=>{var _0x20c2bb={'PDYVp':_0x5df213[_0x9042('‫bf')],'gbGvN':function(_0x5a7570){return _0x5a7570();},'leQZC':function(_0x2b8c2e,_0x3bba90){return _0x2b8c2e!=_0x3bba90;}};const _0x37f528={'url':_0x9042('‫c0')+$[_0x9042('‮88')]+_0x9042('‮c1')+_0xa747cc+_0x9042('‫c2')+_0xcfba7f+_0x9042('‫c3')+$[_0x9042('‮3c')]+_0x9042('‫c4')+actCode,'headers':{'Accept':_0x9042('‮90'),'Accept-Encoding':_0x9042('‮91'),'Accept-Language':_0x5df213[_0x9042('‮c5')],'Connection':_0x5df213[_0x9042('‮c6')],'Content-Type':_0x5df213[_0x9042('‮c7')],'Cookie':cookie,'Origin':_0x5df213[_0x9042('‫c8')],'Referer':_0x9042('‮a3'),'User-Agent':_0x9042('‫a4')+$[_0x9042('‮3b')]+_0x9042('‮a5')+$[_0x9042('‫39')]+_0x9042('‮a6')}};$[_0x9042('‫a7')](_0x37f528,(_0x275c4f,_0xb2cb26,_0x15d0ca)=>{try{if(_0x9042('‫c9')!==_0x5df213[_0x9042('‮ca')]){if(_0x275c4f){console[_0x9042('‮25')](''+JSON[_0x9042('‮3e')](_0x275c4f));console[_0x9042('‮25')]($[_0x9042('‫20')]+_0x9042('‫ab'));}else{if(_0x15d0ca){_0x15d0ca=JSON[_0x9042('‮af')](_0x15d0ca);switch(_0xa747cc){case _0x5df213[_0x9042('‫cb')]:$[_0x9042('‮41')]=_0x15d0ca[_0x9042('‫cc')];break;case _0x5df213[_0x9042('‫cd')]:$[_0x9042('‮3d')]=_0x15d0ca;break;case _0x9042('‫c'):if(_0x15d0ca[_0x9042('‮40')]){if(_0x9042('‮b7')===_0x5df213[_0x9042('‮ce')]){if($[_0x9042('‫1d')]!=0x1){$[_0x9042('‮1e')]+=0x1;}}else{$[_0x9042('‮25')]('','\x20'+$[_0x9042('‫20')]+_0x9042('‮7f')+e+'!','');}}else if(_0x5df213[_0x9042('‮cf')](_0x15d0ca[_0x9042('‫2e')],_0x5df213[_0x9042('‮d0')])){if(_0x5df213[_0x9042('‫d1')]($[_0x9042('‫1d')],0x1)){$[_0x9042('‮1e')]+=0x1;}}else if(_0x5df213[_0x9042('‮cf')](_0x15d0ca[_0x9042('‮40')],![])){if(_0x5df213[_0x9042('‮cf')](_0x5df213[_0x9042('‫d2')],_0x5df213[_0x9042('‫d3')])){console[_0x9042('‮25')](_0x20c2bb[_0x9042('‫d4')]);}else{console[_0x9042('‮25')](_0x15d0ca[_0x9042('‫2e')]);$[_0x9042('‫2e')]=_0x15d0ca[_0x9042('‫2e')];}}break;case _0x5df213[_0x9042('‮d5')]:console[_0x9042('‮25')](_0x15d0ca);break;default:console[_0x9042('‮25')](_0x15d0ca);break;}}else{console[_0x9042('‮25')](_0x9042('‮65'));}}}else{_0x20c2bb[_0x9042('‮d6')](_0x1fd927);}}catch(_0x273ab0){$[_0x9042('‫58')](_0x273ab0,_0xb2cb26);}finally{if(_0x5df213[_0x9042('‮d7')](_0x5df213[_0x9042('‫d8')],_0x9042('‮d9'))){_0x1fd927();}else{if(_0x20c2bb[_0x9042('‮da')]($[_0x9042('‫1d')],0x1)){$[_0x9042('‮1e')]+=0x1;}}}});});}function random(_0x49eed5,_0x5c29b4){var _0xf02342={'Ovbbb':function(_0x37c423,_0x5b7ff9){return _0x37c423(_0x5b7ff9);},'BpWBM':function(_0x39bb2,_0xf1b5e9){return _0x39bb2*_0xf1b5e9;},'UHKoV':function(_0x3145ea,_0x2e8f76){return _0x3145ea-_0x2e8f76;}};return _0xf02342[_0x9042('‮db')](parseInt,_0xf02342[_0x9042('‫dc')](_0xf02342[_0x9042('‫dd')](_0x5c29b4,_0x49eed5),Math[_0x9042('‫de')]()));}function TotalBean(){var _0x372335={'cCIBE':_0x9042('‫8b'),'vxlcd':_0x9042('‮df'),'MBQvx':_0x9042('‮e0'),'bdSQv':_0x9042('‫e1'),'cuVbH':_0x9042('‫0'),'HHRBI':_0x9042('‫e2'),'HvFGg':function(_0x2e9c66){return _0x2e9c66();},'ODLqx':function(_0x997a2,_0x79ef9d){return _0x997a2!==_0x79ef9d;},'AnyEk':_0x9042('‫e3'),'YgvWH':_0x9042('‮e4'),'dTmKN':_0x9042('‫e5'),'hCPFJ':_0x9042('‫e6'),'nSqGE':_0x9042('‮e7'),'iMood':_0x9042('‮93'),'iPSJO':_0x9042('‫e8'),'KVWUr':_0x9042('‮e9')};return new Promise(async _0x47ec23=>{var _0x54593a={'UdrEU':_0x372335[_0x9042('‮ea')],'waHil':function(_0x491fa6,_0x48ae17){return _0x491fa6-_0x48ae17;},'Cfhxk':_0x372335[_0x9042('‫eb')],'TtwFv':function(_0x488207,_0x45224e){return _0x488207!==_0x45224e;},'ANJhd':_0x9042('‮ec'),'aRUVO':function(_0x4e64d9,_0x48d5a7){return _0x4e64d9===_0x48d5a7;},'fhCEv':_0x9042('‮ed'),'khzLI':_0x372335[_0x9042('‫ee')],'nFhPi':_0x372335[_0x9042('‫ef')],'STKtG':_0x372335[_0x9042('‮f0')],'sZHaU':_0x372335[_0x9042('‫f1')],'SmCRk':function(_0x18bfd8){return _0x372335[_0x9042('‮f2')](_0x18bfd8);}};if(_0x372335[_0x9042('‫f3')](_0x372335[_0x9042('‫f4')],_0x372335[_0x9042('‮f5')])){const _0x59b416={'url':_0x9042('‮f6'),'headers':{'Accept':_0x372335[_0x9042('‫f7')],'Content-Type':_0x372335[_0x9042('‫f8')],'Accept-Encoding':_0x9042('‮91'),'Accept-Language':_0x372335[_0x9042('‫f9')],'Connection':_0x372335[_0x9042('‮fa')],'Cookie':cookie,'Referer':_0x372335[_0x9042('‫fb')],'User-Agent':_0x372335[_0x9042('‮fc')]}};$[_0x9042('‫fd')](_0x59b416,(_0xa97543,_0x40e839,_0x5b26b6)=>{var _0x3a3939={'aoflz':function(_0x656099,_0x2ca9fa){return _0x656099(_0x2ca9fa);},'NCcqQ':function(_0x58768e,_0x253720){return _0x54593a[_0x9042('‫fe')](_0x58768e,_0x253720);}};try{if(_0xa97543){console[_0x9042('‮25')](''+JSON[_0x9042('‮3e')](_0xa97543));console[_0x9042('‮25')]($[_0x9042('‫20')]+_0x9042('‫ab'));}else{if(_0x9042('‮df')===_0x54593a[_0x9042('‫ff')]){if(_0x5b26b6){if(_0x54593a[_0x9042('‮100')](_0x54593a[_0x9042('‮101')],_0x54593a[_0x9042('‮101')])){console[_0x9042('‮25')](''+JSON[_0x9042('‮3e')](_0xa97543));console[_0x9042('‮25')]($[_0x9042('‫20')]+_0x9042('‫ab'));}else{_0x5b26b6=JSON[_0x9042('‮af')](_0x5b26b6);if(_0x54593a[_0x9042('‮102')](_0x5b26b6[_0x54593a[_0x9042('‮103')]],0xd)){if(_0x54593a[_0x9042('‮100')](_0x54593a[_0x9042('‫104')],_0x54593a[_0x9042('‫105')])){$[_0x9042('‫2c')]=![];return;}else{$[_0x9042('‮81')]();}}if(_0x54593a[_0x9042('‮102')](_0x5b26b6[_0x54593a[_0x9042('‮103')]],0x0)){$[_0x9042('‫2d')]=_0x5b26b6[_0x54593a[_0x9042('‮106')]]&&_0x5b26b6[_0x54593a[_0x9042('‮106')]][_0x9042('‮73')]||$[_0x9042('‫29')];}else{$[_0x9042('‫2d')]=$[_0x9042('‫29')];}}}else{console[_0x9042('‮25')](_0x9042('‮65'));}}else{return _0x3a3939[_0x9042('‮107')](parseInt,_0x3a3939[_0x9042('‮108')](max,min)*Math[_0x9042('‫de')]());}}}catch(_0x646a37){$[_0x9042('‫58')](_0x646a37,_0x40e839);}finally{if(_0x54593a[_0x9042('‫109')]===_0x54593a[_0x9042('‫109')]){_0x54593a[_0x9042('‫10a')](_0x47ec23);}else{console[_0x9042('‮25')](_0x54593a[_0x9042('‫10b')]+_0x5b26b6[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')]);$[_0x9042('‫b4')]=_0x5b26b6[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')];}}});}else{$[_0x9042('‫58')](e,resp);}});}function getUUID(_0x34eee0=_0x9042('‫13'),_0x193f38=0x0){var _0x4ff5af={'mPExX':function(_0x34eee0,_0x56db87){return _0x34eee0===_0x56db87;}};return _0x34eee0[_0x9042('‮10c')](/[xy]/g,function(_0x34eee0){if(_0x4ff5af[_0x9042('‫10d')](_0x9042('‫10e'),_0x9042('‫10f'))){$[_0x9042('‮1e')]+=0x1;}else{var _0x2514f8=0x10*Math[_0x9042('‫de')]()|0x0,_0x342c36='x'==_0x34eee0?_0x2514f8:0x3&_0x2514f8|0x8;return uuid=_0x193f38?_0x342c36[_0x9042('‫110')](0x24)[_0x9042('‮111')]():_0x342c36[_0x9042('‫110')](0x24),uuid;}});}function getShopOpenCardInfo(_0x32fa05){var _0xfae63b={'wXpLn':_0x9042('‮112'),'jNZQy':function(_0x39a46c,_0x5b8074){return _0x39a46c===_0x5b8074;},'QtTbl':_0x9042('‮113'),'fjqPy':function(_0xc23161,_0x52bbc6){return _0xc23161!==_0x52bbc6;},'VDEwP':_0x9042('‫114'),'cEHTD':function(_0x450962,_0x3ea366){return _0x450962+_0x3ea366;},'BnXNv':function(_0x20b22f){return _0x20b22f();},'PkHUr':_0x9042('‮90')};let _0x1f27ff={'url':_0x9042('‫115')+encodeURIComponent(JSON[_0x9042('‮3e')](_0x32fa05))+_0x9042('‫116'),'headers':{'Accept':_0xfae63b[_0x9042('‮117')],'Cookie':cookie,'User-Agent':_0x9042('‮118'),'Referer':_0x9042('‫119'),'Accept-Encoding':_0x9042('‮91')}};return new Promise(_0x2977d5=>{$[_0x9042('‫a7')](_0x1f27ff,(_0xb50816,_0x57e1b0,_0x35af3b)=>{var _0x273fe7={'ueBBj':function(_0x333fc4,_0x39f8c8){return _0x333fc4+_0x39f8c8;},'BFZNK':_0x9042('‫8b')};if(_0x9042('‮11a')===_0xfae63b[_0x9042('‫11b')]){if(_0xb50816){console[_0x9042('‮25')](_0xb50816);}else{_0x35af3b=JSON[_0x9042('‮af')](_0x35af3b);if(_0x35af3b[_0x9042('‮40')]){console[_0x9042('‮25')](_0x273fe7[_0x9042('‮11c')](_0x273fe7[_0x9042('‮11d')],_0x35af3b[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')]));$[_0x9042('‫b4')]=_0x35af3b[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')];}}}else{try{if(_0xb50816){console[_0x9042('‮25')](_0xb50816);}else{if(_0xfae63b[_0x9042('‮11e')](_0xfae63b[_0x9042('‫11f')],_0x9042('‫120'))){console[_0x9042('‮25')](''+JSON[_0x9042('‮3e')](_0xb50816));console[_0x9042('‮25')]($[_0x9042('‫20')]+_0x9042('‫ab'));}else{_0x35af3b=JSON[_0x9042('‮af')](_0x35af3b);if(_0x35af3b[_0x9042('‮40')]){if(_0xfae63b[_0x9042('‮121')](_0xfae63b[_0x9042('‮122')],_0x9042('‮123'))){console[_0x9042('‮25')](_0xfae63b[_0x9042('‫124')](_0x9042('‫8b'),_0x35af3b[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')]));$[_0x9042('‫b4')]=_0x35af3b[_0x9042('‮b2')][0x0][_0x9042('‮b3')][_0x9042('‫b4')];}else{console[_0x9042('‮25')](_0x35af3b[_0x9042('‫2e')]);$[_0x9042('‫2e')]=_0x35af3b[_0x9042('‫2e')];}}}}}catch(_0x4f4c55){console[_0x9042('‮25')](_0x4f4c55);}finally{_0xfae63b[_0x9042('‮125')](_0x2977d5);}}});});};_0xodW='jsjiami.com.v6';
// 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) }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lengxin/Thread.git
git@gitee.com:lengxin/Thread.git
lengxin
Thread
Thread
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385