mirror of https://github.com/KingRan/KR.git
2052 lines
138 KiB
JavaScript
2052 lines
138 KiB
JavaScript
|
/*
|
|||
|
|
|||
|
一共有2个变量
|
|||
|
jd_zdjr_activityId 活动ID 必需
|
|||
|
jd_zdjr_activityUrl 活动地址 必需
|
|||
|
|
|||
|
已适配docker
|
|||
|
|
|||
|
需要配合重写获取=>活动id、活动地址
|
|||
|
|
|||
|
https://\w+-isv.isvjcloud.com/wxTeam/shopInfo url script-request-body jd_zdjr.js
|
|||
|
|
|||
|
mitm
|
|||
|
*-isv.isvjcloud.com
|
|||
|
[task_local]
|
|||
|
组队瓜分京豆
|
|||
|
40 11 * * * jd_zdjr.js, tag=组队瓜分京豆, enabled=true
|
|||
|
================Loon==============
|
|||
|
[Script]
|
|||
|
cron "40 11 * * *" script-path=jd_zdjr.js,tag=组队瓜分京豆
|
|||
|
|
|||
|
*/
|
|||
|
|
|||
|
let jd_zdjr_activityId = '10b0ec8fb440470d8fc42af4a07ecefe'// 活动ID
|
|||
|
let jd_zdjr_activityUrl = 'https://lzkjdz-isv.isvjcloud.com'// 活动地址
|
|||
|
|
|||
|
|
|||
|
var _0xodx = 'jsjiami.com.v6',
|
|||
|
_0x28b4 = [_0xodx, 'H8KcwqjCvsK1', 'VcOWw4cvaA==', 'wrXDvsK/CF4=', '44O15o6v56eB44Ka6K+z5Yec6Iy65Y6x5Lib5LiI6LeD5Y2q5LmJw6nDqsKyw6jDusOpNeeYu+aOpOS+h+eWksKPVsO+w7JLV+ebs+S5qeS7ueespOWImOiOpuWPlQ==', 'IcOeVUUjw5EtXsOhwrXDvChBw6TDo8K0YMOPw48Dwr55', 'wqXDvgzDlxA=', 'wqI8OiA=', 'wp0xB8K6E8O3VsO0LARsAg==', 'TcOiw5EKZA==', 'YcKgwrXCrjU=', 'aAjCqXI=', 'w6lpwr0/w5IQwo3Cm8KNa8KKFg==', 'w6nDpsKeGMOU', 'w4HDh8Kkwq5Kwr4=', 'wpQ+UQ==', 'w4zDjFTCksKVwpoIY2c+wr9xw5vDoElYw7pPacKwPsOCwqkxI28LEE8/wqcUVEDDkHTDtARTw7gTUwoiwrfDrcKjw7LDkXrCp08gw69jwp82IMK2wp5/wqEDIsOtFUPDpcOfw5pMb8KzDGZdwrjCmMKZXCXDoQAlw5BsNw==', 'Zg1nwrvCsMOjw6/CqRM=', 'CMOINsOHSQvDqQzChUPDo20vV8KJahleKgJJwpNGw4bCqErCilPCuk3ChWHDmSI9w4V+wrPDlXjCiMKMwr7CpcO/e1E1fcOkIsKnamJ8w5tEasOhwpZ1RsOww5pgKcOcdMK/w6h+w7Y0', 'w5HCnQQ7OQ==', 'PBFnw7zDpw==', 'wqfDuCjDlwE=', 'wqrCthnDtA==', 'X8KECcKnw7I=', 'w40CA8KtYA==', 'WsK8wrM=', '5b+d5bqhG+++pg==', 'RcKnwqbCrhpfwozDqyE=', 'w5XDp8KRwqbCtA==', 'TsKpEMKZQA==', 'woDCmcOsAsK2', 'fsOhwr4=', 'wpAGw6rDhMKGXOivqOayveWktOi2te++t+iupuaih+acpee8g+i0uOmGl+iuqQ==', 'wpvDnsKQw5trw63CnyAsw47CrcKrYwwww6xHCA==', 'LMOEVw==', 'd8Ogwq8=', 'w47DnH/CmMKCw4pVE2ctwqI2w4DCp1dFwoFeag==', 'w5vCsn3ChQ==', 'w7p8e1VJw5nDpA==', 'wpPDjcKADA==', 'ZMOvBcOqaSfDiHY=', 'wq5SQ8KRBA==', 'w5zCphY=', 'WMKfEMKrw7IoAwUS', 'wqDCtxnDtMO6WRU=', 'dcOhw4QoWw==', 'w5XCr23Cgg==', 'wpglOMK+Ow==', 'wrPCqRDDhcOW', 'w5/DkcKkwqwuwrvCs8Oww5PCsg==', 'w71jYD5FwpTDpsO2JcOVEzM=', 'wo4ke2rChVk=', 'woARwo0=', 'w7nCtjfCj8OsBxNgS8Khw6tuEQ==', 'w77DsMKewolQwp/CjcOGw6TCkC49wqk=', 'w7/Do8KgwoDCnE3DqA==', 'w4BaUcOowqY=', 'w607MMKuwr0=', 'w5HDsMKXwrFC', 'wqTCksOKDj8=', 'V8K0J2bCgiU0esKy', 'w5t7Rw==', 'M3zDvRg=', 'wrPDtkjDuT9Z', 'wp3DlcKow6R9w7U=', 'woXCsMOrDGg6w6EDw4vDlw==', 'DMOAKGjCgcKGwpLClcOjw57DqDg=', 'w71QdcOi', 'wrXDvU7DjD0QI143aXjCjgghQMKTwopNwpHDhsONw4nCvH3DgAPDp8KHMMKgwp0YRsOJwokZwprDjMKvLcKyw4bCiMKaw7fCpVsTw5bDjMKlQU1PdSdfAzfDkDPDq1wCMsKdwo4uDivCvcK1JjtTTRbDnX7Cvm/Cl3TCg8KuICfCtsKEwoDCucKpw4bDjMOKwo/CosOBw6XCn0HCoRZhdMO+w4xPTcO2wp9Nw43CiAwLw6fDtjLDtjc9w50uMlfDoMKzw4odd1vDiRjDi8KowrJqMcOCKMKBN8OIV8OoUcKfecOvwotnwoDCuMOvwqPClBNrasO5W8K/KFrDrgrCjXbDvcOxw4XCu8OaVh3DmAN+w4ZOAntbw4IPw51Gwr5uCT7Clltlwo7CmHfDmhgQwpERw7PCsgLDgcOtfCM3ciEWw67Ct8KYGsOpw7LDjcKNwp7DvcOkw5TCkl54RU8Qwr5YNVVXwqk5NSg9GhXCvww8RMO6JHrChy3DqcKNwoJjwqjCvVdPJBrDscKIeRnCkwzCp8KoFWULb8KiwodSwrAYw5DDlndbSj8dTwjDgS/CuAXClDTDq8KQwo7CsMO8w4YGw5E2C1B0CsK4wqdLw4bCucO/wo1cHMKaHlvCicKyw5AlVMOPwpYKw7XDh8O0GsKgw5jClkDDsivCkH3CmsKXwonClMKPWcKFwpkSwqnCr8KRwqMtPShOwo8rIU5kOsOdFsK2wq3CtQpdwpLCmMKBI8KJw4rDq1TDuDVuOMOUUsOnwpc4w4Rxd8OcwrPCkVvDl3/CpMKYwok6W8Obwos2EV4YwpbCr8OvfMOoRMOnaj/CoRbDvl9FeiEEw6TCmsO9SiQKH8OMwqzCicKhMcKKEcKxXsKkw6YwwrrCvcOzHhXCmMKywozCtsOtFsO6w67DsVfCvcKxw4QvwqHCjcOkXsO4aMO9w4ZJGV9OHwTDvsKJLw9Owo7CjWh9w7siw6XDixNlVcKYNxnDvcKtScO0w5wdwrHCn27Cp8KpeTsdY8OUw7ICPsO/TXJ/PcOQwoPDlcK1w4F9wrt6I8OPDDzDiTTDs8KYw5EtQsOuTjzCtzFCwrDDixPCnMKgTMO+wrhRacKsEMKWMVZAE1PDsUBQPXBhG8ODw6V4wqPCscOBw7hsTMOlVD93KcKuwrPCv8KKGRFrwqfDl8ORwqzDkhwEw6/CosK0VB3DiRswwpQvZ8KXG8KvWMKN', 'MMKrwpDChMKK', 'wpo1FsKkI8KsC8K/CQBlWC7Digs5woQvJcOyADfChT9lJ8OBw47CiDAIwpPDi1PCtx0VFljChlpFw5XCq8KqMkzDuQnCssOaLMOkCMKZwqfDgWlsw5jCrlvDp8OwGk7CgMKjwqXCo8KGw5UONsKNNsK0w5nCnMOowrEvEVvDpsOtwrrDrMK9Y8KUw4vChAHCjQvDq2/Ctg==', 'DVDDmRpe', 'ZcKDwrHCgCQ=', 'Qi/Cs3AL', 'PcOPQFgewp5v', 'GcOVICvCosOdwpU=', '5Lqa5ouP6Zibw7w=', 'worCicOsEcKN', 'w5zDs8Klwp9H', 'GcKkwqzChhdMwozDojZFG8O0w59zwqLCrnsgKVHDlV1NwqvDkMKJYw==', 'blBvw7Y7', 'wrp8AMKfHg==', 'Y8KSCsKsTA==', 'wqo3FcK/Kg==', 'a8ONw7gWSA==', 'UFxIw6Q6w4RGKMOawrBKwqPCu8KVcCPDqGNWwqzDn20IchTClg7Cn349bMKyw5zDqQ==', 'w49OwrIhw6s=', 'wp/CssO0McO5w4rCjsObdjTDn3TCtyfCosKDcA==', 'wrTCjsO+FMKT', 'wp7CmMOFCsKC', 'dAllwr7Ct8Onw6fCuwPCjgVLfmHDo8O1woEaw4sMYDfDtcKkw53DsMOEw7rDksKyw5Y4YA==', 'wpMuZWTClg==', 'R8OYFMOBSAA=', 'w67DvH/Ct8K1w6V1E0cJwpMRw6I=', 'w5wDHg==', 'w7rCk1vCo8ObbcKvM2zCoCrCoD8=', 'w7xjwok3bg==', 'wp3CsjXDpMOo', 'ScKPO17CiQ==', 'RMKnwozChDk=', 'exh4wrc=', 'wpc9Sw==', 'WMKZDMK/', 'wq/DuF3Djyg=', 'QMKhIW4=', 'w61DfF1+', 'AcKdwpbDlsKa', 'bR3CqWESBsOLVEjDt8Ouwqo=', 'wrEVZUxm', 'w6J4wqww', 'wp4iW0jCiFgCw5nDkcKkwrrCr8Kuw7E=', 'woM2QWQ=', 'NMO
|
|||
|
(function (_0x16d31a, _0x3eb005, _0x16cb53) {
|
|||
|
var _0x429a47 = function (_0x4e4bbf, _0x1a047f, _0x4361f7, _0x2200dd, _0x4254c4) {
|
|||
|
_0x1a047f = _0x1a047f >> 0x8, _0x4254c4 = 'po';
|
|||
|
var _0x2a16ea = 'shift', _0x4a44ea = 'push';
|
|||
|
if (_0x1a047f < _0x4e4bbf) {
|
|||
|
while (--_0x4e4bbf) {
|
|||
|
_0x2200dd = _0x16d31a[_0x2a16ea]();
|
|||
|
if (_0x1a047f === _0x4e4bbf) {
|
|||
|
_0x1a047f = _0x2200dd;
|
|||
|
_0x4361f7 = _0x16d31a[_0x4254c4 + 'p']();
|
|||
|
} else if (_0x1a047f && _0x4361f7['replace'](/[TdeqllJWKpwGhTLGr=]/g, '') === _0x1a047f) {
|
|||
|
_0x16d31a[_0x4a44ea](_0x2200dd);
|
|||
|
}
|
|||
|
}
|
|||
|
_0x16d31a[_0x4a44ea](_0x16d31a[_0x2a16ea]());
|
|||
|
}
|
|||
|
return 0x8edde;
|
|||
|
};
|
|||
|
return _0x429a47(++_0x3eb005, _0x16cb53) >> _0x3eb005 ^ _0x16cb53;
|
|||
|
}(_0x28b4, 0x1e0, 0x1e000));
|
|||
|
var _0xc184 = function (_0x16aaa9, _0x1b8ed3) {
|
|||
|
_0x16aaa9 = ~~'0x'['concat'](_0x16aaa9);
|
|||
|
var _0x27e9de = _0x28b4[_0x16aaa9];
|
|||
|
if (_0xc184['zOWJcE'] === undefined) {
|
|||
|
(function () {
|
|||
|
var _0x5300c2 = function () {
|
|||
|
var _0x44949f;
|
|||
|
try {
|
|||
|
_0x44949f = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');')();
|
|||
|
} catch (_0x581299) {
|
|||
|
_0x44949f = window;
|
|||
|
}
|
|||
|
return _0x44949f;
|
|||
|
};
|
|||
|
var _0x275897 = _0x5300c2();
|
|||
|
var _0x38812f = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|||
|
_0x275897['atob'] || (_0x275897['atob'] = function (_0x9d19a4) {
|
|||
|
var _0x1adc4b = String(_0x9d19a4)['replace'](/=+$/, '');
|
|||
|
for (var _0x3a36d5 = 0x0, _0x1845d8, _0x1bd2ec, _0x4fee08 = 0x0, _0x387b88 = ''; _0x1bd2ec = _0x1adc4b['charAt'](_0x4fee08++); ~_0x1bd2ec && (_0x1845d8 = _0x3a36d5 % 0x4 ? _0x1845d8 * 0x40 + _0x1bd2ec : _0x1bd2ec, _0x3a36d5++ % 0x4) ? _0x387b88 += String['fromCharCode'](0xff & _0x1845d8 >> (-0x2 * _0x3a36d5 & 0x6)) : 0x0) {
|
|||
|
_0x1bd2ec = _0x38812f['indexOf'](_0x1bd2ec);
|
|||
|
}
|
|||
|
return _0x387b88;
|
|||
|
});
|
|||
|
}());
|
|||
|
var _0x13b66 = function (_0x9d717c, _0x1b8ed3) {
|
|||
|
var _0x211197 = [], _0x566f03 = 0x0, _0x4af72b, _0x2e6b57 = '', _0x2d9beb = '';
|
|||
|
_0x9d717c = atob(_0x9d717c);
|
|||
|
for (var _0x5ba1a2 = 0x0, _0x2077cd = _0x9d717c['length']; _0x5ba1a2 < _0x2077cd; _0x5ba1a2++) {
|
|||
|
_0x2d9beb += '%' + ('00' + _0x9d717c['charCodeAt'](_0x5ba1a2)['toString'](0x10))['slice'](-0x2);
|
|||
|
}
|
|||
|
_0x9d717c = decodeURIComponent(_0x2d9beb);
|
|||
|
for (var _0x1326b8 = 0x0; _0x1326b8 < 0x100; _0x1326b8++) {
|
|||
|
_0x211197[_0x1326b8] = _0x1326b8;
|
|||
|
}
|
|||
|
for (_0x1326b8 = 0x0; _0x1326b8 < 0x100; _0x1326b8++) {
|
|||
|
_0x566f03 = (_0x566f03 + _0x211197[_0x1326b8] + _0x1b8ed3['charCodeAt'](_0x1326b8 % _0x1b8ed3['length'])) % 0x100;
|
|||
|
_0x4af72b = _0x211197[_0x1326b8];
|
|||
|
_0x211197[_0x1326b8] = _0x211197[_0x566f03];
|
|||
|
_0x211197[_0x566f03] = _0x4af72b;
|
|||
|
}
|
|||
|
_0x1326b8 = 0x0;
|
|||
|
_0x566f03 = 0x0;
|
|||
|
for (var _0x599b30 = 0x0; _0x599b30 < _0x9d717c['length']; _0x599b30++) {
|
|||
|
_0x1326b8 = (_0x1326b8 + 0x1) % 0x100;
|
|||
|
_0x566f03 = (_0x566f03 + _0x211197[_0x1326b8]) % 0x100;
|
|||
|
_0x4af72b = _0x211197[_0x1326b8];
|
|||
|
_0x211197[_0x1326b8] = _0x211197[_0x566f03];
|
|||
|
_0x211197[_0x566f03] = _0x4af72b;
|
|||
|
_0x2e6b57 += String['fromCharCode'](_0x9d717c['charCodeAt'](_0x599b30) ^ _0x211197[(_0x211197[_0x1326b8] + _0x211197[_0x566f03]) % 0x100]);
|
|||
|
}
|
|||
|
return _0x2e6b57;
|
|||
|
};
|
|||
|
_0xc184['tJaLZq'] = _0x13b66;
|
|||
|
_0xc184['UcsyPy'] = {};
|
|||
|
_0xc184['zOWJcE'] = !![];
|
|||
|
}
|
|||
|
var _0x2e72bd = _0xc184['UcsyPy'][_0x16aaa9];
|
|||
|
if (_0x2e72bd === undefined) {
|
|||
|
if (_0xc184['keUGEz'] === undefined) {
|
|||
|
_0xc184['keUGEz'] = !![];
|
|||
|
}
|
|||
|
_0x27e9de = _0xc184['tJaLZq'](_0x27e9de, _0x1b8ed3);
|
|||
|
_0xc184['UcsyPy'][_0x16aaa9] = _0x27e9de;
|
|||
|
} else {
|
|||
|
_0x27e9de = _0x2e72bd;
|
|||
|
}
|
|||
|
return _0x27e9de;
|
|||
|
};
|
|||
|
const $ = new Env('组队瓜分京豆');
|
|||
|
const notify = $['isNode']() ? require(_0xc184('0', 'hmBa')) : '';
|
|||
|
const jdCookieNode = $[_0xc184('1', 'd**I')]() ? require('./jdCookie.js') : '';
|
|||
|
let cookiesArr = [], cookie = '', message = '', messageTitle = '';
|
|||
|
activityId = $['getdata'](_0xc184('2', '5ICC')) ? $[_0xc184('3', '0pm[')]('jd_smiek_zdjr_activityId') : jd_zdjr_activityId;
|
|||
|
activityUrl = $['getdata']('jd_smiek_zdjr_activityUrl') ? $[_0xc184('4', 'X([P')]('jd_smiek_zdjr_activityUrl') : jd_zdjr_activityUrl;
|
|||
|
let activityCookie = '';
|
|||
|
if ($[_0xc184('5', 'k2o4')]()) {
|
|||
|
var nsbZrP = _0xc184('6', '#MMq')['split']('|'), pKPxGS = 0x0;
|
|||
|
while (!![]) {
|
|||
|
switch (nsbZrP[pKPxGS++]) {
|
|||
|
case'0':
|
|||
|
if (JSON[_0xc184('7', 'C9Ry')](process['env'])['indexOf']('GITHUB') > -0x1) process['exit'](0x0);
|
|||
|
continue;
|
|||
|
case'1':
|
|||
|
if (process[_0xc184('8', 'UOyb')][_0xc184('9', 'edM%')]) activityId = process[_0xc184('a', 'hmBa')][_0xc184('b', 's6me')];
|
|||
|
continue;
|
|||
|
case'2':
|
|||
|
Object[_0xc184('c', 'zQMN')](jdCookieNode)['forEach'](_0x3a3a91 => {
|
|||
|
cookiesArr[_0xc184('d', 'X#Sy')](jdCookieNode[_0x3a3a91]);
|
|||
|
});
|
|||
|
continue;
|
|||
|
case'3':
|
|||
|
if (process[_0xc184('e', 'zmGP')][_0xc184('f', '#6(@')]) activityUrl = process['env'][_0xc184('10', 'C@de')];
|
|||
|
continue;
|
|||
|
case'4':
|
|||
|
if (process[_0xc184('11', 'd**I')][_0xc184('12', ']EUy')] && process[_0xc184('13', 'Ch!B')][_0xc184('14', 'C9Ry')] === 'false') console[_0xc184('15', 'X([P')] = () => {
|
|||
|
};
|
|||
|
continue;
|
|||
|
}
|
|||
|
break;
|
|||
|
}
|
|||
|
} else {
|
|||
|
let cookiesData = $[_0xc184('16', 'k2o4')](_0xc184('17', 'pCC1')) || '[]';
|
|||
|
cookiesData = jsonParse(cookiesData);
|
|||
|
cookiesArr = cookiesData[_0xc184('18', 'GnBx')](_0x452c83 => _0x452c83[_0xc184('19', 'T8Gy')]);
|
|||
|
cookiesArr[_0xc184('1a', 'd**I')]();
|
|||
|
cookiesArr[_0xc184('1b', 'C9Ry')](...[$[_0xc184('1c', 'pZgn')](_0xc184('1d', 'vw8y')), $['getdata'](_0xc184('1e', 'C9Ry'))]);
|
|||
|
cookiesArr[_0xc184('1f', 'O[HT')]();
|
|||
|
cookiesArr = cookiesArr[_0xc184('20', 'zmGP')](_0x7f89dd => _0x7f89dd !== '' && _0x7f89dd !== null && _0x7f89dd !== undefined);
|
|||
|
}
|
|||
|
const JD_API_HOST = 'https://api.m.jd.com/client.action';
|
|||
|
let isGetCookie = typeof $request !== _0xc184('21', 'UOyb');
|
|||
|
if (isGetCookie) {
|
|||
|
GetCookie();
|
|||
|
$[_0xc184('22', '#MMq')]();
|
|||
|
}
|
|||
|
!(async () => {
|
|||
|
var _0x35c223 = {
|
|||
|
'HzUUv': 'hLTYH',
|
|||
|
'zKHsd': '【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取',
|
|||
|
'pUyyi': _0xc184('23', 'x8iA'),
|
|||
|
'dubFr': function (_0x46c83f, _0x156a29) {
|
|||
|
return _0x46c83f < _0x156a29;
|
|||
|
},
|
|||
|
'UOMIN': function (_0x4408e0, _0x301fa7) {
|
|||
|
return _0x4408e0 !== _0x301fa7;
|
|||
|
},
|
|||
|
'YNkKP': _0xc184('24', 'C@de'),
|
|||
|
'sQrWx': function (_0x44f3e6, _0x3887de) {
|
|||
|
return _0x44f3e6 !== _0x3887de;
|
|||
|
},
|
|||
|
'RhFQH': _0xc184('25', ']EUy'),
|
|||
|
'cQdlH': function (_0x46439b) {
|
|||
|
return _0x46439b();
|
|||
|
}
|
|||
|
};
|
|||
|
if (!activityId) {
|
|||
|
$[_0xc184('26', 'Dsp6')]($[_0xc184('27', 'w9jT')], '', _0xc184('28', '(a)r'));
|
|||
|
$['done']();
|
|||
|
return;
|
|||
|
}
|
|||
|
if (!cookiesArr[0x0]) {
|
|||
|
if (_0x35c223[_0xc184('29', '&hsV')] !== _0x35c223['HzUUv']) {
|
|||
|
console['log'](e);
|
|||
|
console[_0xc184('2a', '0v]z')](_0xc184('2b', 'x8iA'));
|
|||
|
return ![];
|
|||
|
} else {
|
|||
|
$[_0xc184('2c', 'zmGP')]($[_0xc184('2d', 'xhD7')], _0x35c223[_0xc184('2e', 'pZgn')], _0x35c223['pUyyi'], {'open-url': _0xc184('2f', ')]HD')});
|
|||
|
return;
|
|||
|
}
|
|||
|
}
|
|||
|
$['memberCount'] = 0x0;
|
|||
|
messageTitle += '活动id:\x20' + activityId + '\x0a';
|
|||
|
$[_0xc184('30', 'zr[&')] = !![];
|
|||
|
|
|||
|
$.retry=true
|
|||
|
while (cookiesArr.length>0 && $.retry)
|
|||
|
{
|
|||
|
$.retry=false
|
|||
|
for (let _0x41e762 = 0x0; _0x35c223[_0xc184('31', 'z3#)')](_0x41e762, cookiesArr[_0xc184('32', 'w9jT')]); _0x41e762++) {
|
|||
|
if (_0x35c223[_0xc184('33', 'jf%L')](_0x35c223[_0xc184('34', '0v]z')], _0xc184('35', ')]HD'))) {
|
|||
|
if (cookiesArr[_0x41e762]) {
|
|||
|
cookie = cookiesArr[_0x41e762];
|
|||
|
$['UserName'] = decodeURIComponent(cookie[_0xc184('36', 'vw8y')](/pt_pin=(.+?);/) && cookie[_0xc184('37', 'X([P')](/pt_pin=(.+?);/)[0x1]);
|
|||
|
$[_0xc184('38', '0pm[')] = _0x41e762 + 0x1;
|
|||
|
$['isLogin'] = !![];
|
|||
|
$[_0xc184('39', 'z3#)')] = '';
|
|||
|
console[_0xc184('3a', 'RRnJ')](_0xc184('3b', 'edM%') + $['index'] + '】' + ($[_0xc184('3c', '&hsV')] || $[_0xc184('3d', 'Ekn*')]) + _0xc184('3e', 'N8KU'));
|
|||
|
if (!$[_0xc184('3f', 'T8Gy')]) {
|
|||
|
$['msg']($['name'], _0xc184('40', 'C3(S'), '京东账号' + $['index'] + '\x20' + ($[_0xc184('41', 's6me')] || $[_0xc184('42', 'C3(S')]) + _0xc184('43', '#6(@'), {'open-url': _0x35c223[_0xc184('44', 'RRnJ')]});
|
|||
|
if ($[_0xc184('45', 'x8iA')]()) {
|
|||
|
if (_0x35c223[_0xc184('46', 'Ch!B')](_0x35c223[_0xc184('47', 'QCpG')], _0xc184('48', 'GnBx'))) {
|
|||
|
await notify[_0xc184('49', 'w9jT')]($['name'] + _0xc184('4a', 'xhD7') + $[_0xc184('4b', '(wta')], _0xc184('4c', 'w9jT') + $[_0xc184('4d', ')]HD')] + '\x20' + $['UserName'] + _0xc184('4e', 'RRnJ'));
|
|||
|
} else {
|
|||
|
console[_0xc184('4f', '@9Xe')]('异常1:' + JSON['stringify'](data));
|
|||
|
}
|
|||
|
}
|
|||
|
continue;
|
|||
|
}
|
|||
|
await _0x35c223[_0xc184('50', 'C@de')](jrzd);
|
|||
|
|
|||
|
await $.wait(2000)
|
|||
|
|
|||
|
if (!$.signUuid || !$[_0xc184('51', 'RRnJ')] || $['maxTeam']) {
|
|||
|
console.log('重新一轮!!!!!!!!!!!!!!!!!!!!!!!!')
|
|||
|
$.signUuid=undefined
|
|||
|
$.maxTeam=false
|
|||
|
$.retry=true
|
|||
|
cookiesArr.splice(0,1)
|
|||
|
await $.wait(10000)
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('52', '(a)r')]('' + JSON['stringify'](err));
|
|||
|
console[_0xc184('53', 'Ch!B')]($[_0xc184('54', 'RRnJ')] + _0xc184('55', 'edM%'));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
// $.signUuid
|
|||
|
messageTitle += _0xc184('56', 'X#Sy') + $[_0xc184('57', 'zQMN')] + '\x0a';
|
|||
|
await showMsg();
|
|||
|
})()['catch'](_0x4160a2 => {
|
|||
|
$[_0xc184('58', '5ICC')]('', '❌\x20' + $[_0xc184('59', 'QCpG')] + ',\x20失败!\x20原因:\x20' + _0x4160a2 + '!', '');
|
|||
|
})[_0xc184('5a', 'x8iA')](() => {
|
|||
|
$[_0xc184('5b', '#6(@')]();
|
|||
|
});
|
|||
|
|
|||
|
async function jrzd() {
|
|||
|
var _0x3c1ba3 = {
|
|||
|
'gRgxo': 'jd_smiek_zdjr_activityId',
|
|||
|
'myUbH': _0xc184('5c', 'jf%L'),
|
|||
|
'pxxlq': function (_0x1bd427) {
|
|||
|
return _0x1bd427();
|
|||
|
},
|
|||
|
'mBVBz': function (_0x42da36) {
|
|||
|
return _0x42da36();
|
|||
|
},
|
|||
|
'Mizwa': function (_0xfb1c7b, _0x5e5b70) {
|
|||
|
return _0xfb1c7b + _0x5e5b70;
|
|||
|
},
|
|||
|
'taeIP': _0xc184('5d', 'z3#)'),
|
|||
|
'TIMAc': function (_0xd86a9c) {
|
|||
|
return _0xd86a9c();
|
|||
|
},
|
|||
|
'uoOCA': function (_0x38dc74, _0x52b026) {
|
|||
|
return _0x38dc74 === _0x52b026;
|
|||
|
},
|
|||
|
'bIkJf': _0xc184('5e', 'w9jT'),
|
|||
|
'dZnQd': _0xc184('5f', 'zr[&')
|
|||
|
};
|
|||
|
$[_0xc184('60', 'zr[&')] = '', $[_0xc184('61', 'X([P')] = '', $[_0xc184('62', 'Dsp6')] = '', $['Pin'] = '';
|
|||
|
$[_0xc184('63', 'k2o4')] = ![];
|
|||
|
await getCk();
|
|||
|
await _0x3c1ba3[_0xc184('64', 'N8KU')](getshopInfo);
|
|||
|
if ($[_0xc184('65', ')]HD')] && $[_0xc184('66', 'X#Sy')]) {
|
|||
|
await _0x3c1ba3['mBVBz'](getToken);
|
|||
|
if ($[_0xc184('67', 'x8iA')]) await getPin();
|
|||
|
console[_0xc184('68', 'sb0O')](_0x3c1ba3[_0xc184('69', 'QCpG')](_0x3c1ba3['taeIP'], $['Pin']));
|
|||
|
await _0x3c1ba3[_0xc184('6a', 'eWPk')](getUserInfo);
|
|||
|
await _0x3c1ba3[_0xc184('6b', 'C9Ry')](getTeam);
|
|||
|
await $['wait'](0x3e8);
|
|||
|
if ($[_0xc184('6c', 'w9jT')]) {
|
|||
|
if (_0x3c1ba3[_0xc184('6d', '@9Xe')](_0x3c1ba3[_0xc184('6e', 'Dsp6')], _0xc184('6f', ']EUy'))) {
|
|||
|
console[_0xc184('70', 'UOyb')](_0x3c1ba3[_0xc184('71', 'x8iA')]);
|
|||
|
return;
|
|||
|
} else {
|
|||
|
if ($request[_0xc184('72', 'X#Sy')]) {
|
|||
|
let _0x2540e6 = $request[_0xc184('73', 'RRnJ')][_0xc184('74', '#6(@')](/activityId=([a-zA-Z0-9._-]+)/);
|
|||
|
if (_0x2540e6) {
|
|||
|
let _0x3cd53a = $request[_0xc184('75', '@9Xe')][_0xc184('76', 'e!tR')]('/');
|
|||
|
console[_0xc184('77', 'C9Ry')](_0xc184('78', 'RRnJ') + _0x2540e6[0x1]);
|
|||
|
console['log']('activityUrl:\x20' + _0x3cd53a[0x0] + '//' + _0x3cd53a[0x2]);
|
|||
|
$[_0xc184('79', '0v]z')](_0x2540e6[0x1], _0x3c1ba3[_0xc184('7a', '(wta')]);
|
|||
|
$[_0xc184('7b', 'o&(u')](_0x3cd53a[0x0] + '//' + _0x3cd53a[0x2], _0x3c1ba3[_0xc184('7c', 'mIrc')]);
|
|||
|
$[_0xc184('7d', 'QCpG')]($[_0xc184('7e', 'UOyb')], _0xc184('7f', 's6me'), _0xc184('80', 'Ekn*') + _0x2540e6[0x1] + '\x0aactivityUrl:' + _0x3cd53a[0x0] + '//' + _0x3cd53a[0x2]);
|
|||
|
} else {
|
|||
|
$[_0xc184('81', 'pCC1')]($['name'], '找不到activityId', '');
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('82', 'w9jT')](_0xc184('83', 'eWPk') + $[_0xc184('84', 'Ekn*')] + _0xc184('85', 'vw8y'));
|
|||
|
message += '【京东账号' + $['index'] + _0xc184('86', 'sb0O');
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
function showMsg() {
|
|||
|
var _0x595fc0 = {
|
|||
|
'YLoGD': function (_0x517613) {
|
|||
|
return _0x517613();
|
|||
|
}
|
|||
|
};
|
|||
|
return new Promise(_0x5e1092 => {
|
|||
|
let _0x3f1238 = _0x595fc0[_0xc184('87', 'jf%L')](openAppUrl);
|
|||
|
console[_0xc184('82', 'w9jT')](_0xc184('88', 'zr[&'));
|
|||
|
console[_0xc184('89', 'GnBx')](_0x3f1238);
|
|||
|
$[_0xc184('2c', 'zmGP')]($[_0xc184('8a', 'O[HT')], '' + $[_0xc184('8b', 'yl6y')], '' + messageTitle + message + _0xc184('8c', 'z3#)'), {'open-url': _0x3f1238});
|
|||
|
_0x595fc0[_0xc184('8d', 'edM%')](_0x5e1092);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function openAppUrl() {
|
|||
|
var _0x1feb91 = {
|
|||
|
'xVdDq': function (_0x3c2c10, _0x5d0f75) {
|
|||
|
return _0x3c2c10 === _0x5d0f75;
|
|||
|
},
|
|||
|
'DCBgj': _0xc184('8e', ')]HD'),
|
|||
|
'tfKmN': _0xc184('8f', 'k2o4'),
|
|||
|
'BYZlg': _0xc184('90', 'p(a&'),
|
|||
|
'izqVn': function (_0x51e2c2, _0x2945db) {
|
|||
|
return _0x51e2c2(_0x2945db);
|
|||
|
},
|
|||
|
'mOcGT': function (_0x390807, _0x4ff69a) {
|
|||
|
return _0x390807 === _0x4ff69a;
|
|||
|
},
|
|||
|
'tYLqB': _0xc184('91', 'd**I')
|
|||
|
};
|
|||
|
let _0x2736f1 = activityUrl + _0xc184('92', 'Ch!B') + activityId;
|
|||
|
let _0x1cda78 = _0x2736f1;
|
|||
|
if (_0x1feb91[_0xc184('93', 'sb0O')](_0x2736f1['substr'](0x0, 0x5), _0x1feb91['DCBgj'])) {
|
|||
|
let _0x53f3b9 = {
|
|||
|
'category': _0x1feb91[_0xc184('94', '#6(@')],
|
|||
|
'des': _0x1feb91[_0xc184('95', '0v]z')],
|
|||
|
'url': _0x2736f1[_0xc184('96', 'sb0O')](0x8)
|
|||
|
};
|
|||
|
_0x1cda78 = _0xc184('97', '&hsV') + _0x1feb91['izqVn'](encodeURIComponent, JSON[_0xc184('98', '(a)r')](_0x53f3b9));
|
|||
|
} else if (_0x1feb91[_0xc184('99', 'zmGP')](_0x2736f1['substr'](0x0, 0x4), _0x1feb91[_0xc184('9a', '0pm[')])) {
|
|||
|
let _0x1c5b66 = {
|
|||
|
'category': _0xc184('9b', 'Dsp6'),
|
|||
|
'des': _0x1feb91['BYZlg'],
|
|||
|
'url': _0x2736f1[_0xc184('9c', 'vw8y')](0x7)
|
|||
|
};
|
|||
|
_0x1cda78 = _0xc184('9d', '#MMq') + encodeURIComponent(JSON[_0xc184('9e', 'zmGP')](_0x1c5b66));
|
|||
|
}
|
|||
|
return _0x1cda78;
|
|||
|
}
|
|||
|
|
|||
|
function getCk() {
|
|||
|
var _0x3416fd = {
|
|||
|
'goUoq': 'gzip,\x20deflate,\x20br',
|
|||
|
'uvuaw': _0xc184('9f', 'Ekn*'),
|
|||
|
'XKRHJ': _0xc184('a0', 'p(a&'),
|
|||
|
'MjLaW': 'application/x-www-form-urlencoded',
|
|||
|
'JyUpf': function (_0x29deb8, _0x915d92) {
|
|||
|
return _0x29deb8 + _0x915d92;
|
|||
|
},
|
|||
|
'ourFf': _0xc184('a1', '#6(@'),
|
|||
|
'ijByC': function (_0x5f5cfe, _0x5a5200) {
|
|||
|
return _0x5f5cfe == _0x5a5200;
|
|||
|
},
|
|||
|
'dvvle': function (_0x490018, _0x35e9d7) {
|
|||
|
return _0x490018 && _0x35e9d7;
|
|||
|
},
|
|||
|
'AonzE': function (_0x5084a7, _0x4fb10c) {
|
|||
|
return _0x5084a7 !== _0x4fb10c;
|
|||
|
},
|
|||
|
'TLVLJ': function (_0x4b16d8, _0x582f82) {
|
|||
|
return _0x4b16d8 === _0x582f82;
|
|||
|
},
|
|||
|
'LzenF': _0xc184('a2', 'edM%'),
|
|||
|
'UocVz': function (_0x4d2017, _0x3ec525) {
|
|||
|
return _0x4d2017 == _0x3ec525;
|
|||
|
},
|
|||
|
'JbbhN': _0xc184('a3', 'X#Sy'),
|
|||
|
'aIssq': _0xc184('a4', '0pm['),
|
|||
|
'wMqFf': 'siGVG',
|
|||
|
'LdAkP': function (_0x107f13) {
|
|||
|
return _0x107f13();
|
|||
|
},
|
|||
|
'Fbofi': _0xc184('a5', 'p(a&'),
|
|||
|
'OKLzl': 'sLWQi',
|
|||
|
'PGCup': _0xc184('a6', 'k2o4')
|
|||
|
};
|
|||
|
return new Promise(_0x5c0114 => {
|
|||
|
var _0x3cf605 = {
|
|||
|
'oVOtK': _0xc184('a7', 'sb0O'),
|
|||
|
'GOCjN': _0x3416fd[_0xc184('a8', 'k2o4')],
|
|||
|
'rSWGA': _0x3416fd[_0xc184('a9', 'xhD7')],
|
|||
|
'tClaB': _0x3416fd['XKRHJ'],
|
|||
|
'oaLwX': _0x3416fd['MjLaW'],
|
|||
|
'lBUPJ': function (_0x364fb8, _0x58a1e0) {
|
|||
|
return _0x3416fd[_0xc184('aa', 'hmBa')](_0x364fb8, _0x58a1e0);
|
|||
|
},
|
|||
|
'qfVqj': _0xc184('ab', 'zQMN'),
|
|||
|
'EHNvC': _0x3416fd[_0xc184('ac', ']EUy')],
|
|||
|
'vGKmQ': function (_0x125a16, _0x54a179) {
|
|||
|
return _0x3416fd[_0xc184('ad', 'Ekn*')](_0x125a16, _0x54a179);
|
|||
|
},
|
|||
|
'HmcTU': function (_0x21cd1e, _0x3e4e3c) {
|
|||
|
return _0x3416fd[_0xc184('ae', 'x8iA')](_0x21cd1e, _0x3e4e3c);
|
|||
|
},
|
|||
|
'kcxOe': _0xc184('af', 'jf%L'),
|
|||
|
'oGXzV': function (_0x27ee3b, _0x5278e4) {
|
|||
|
return _0x3416fd[_0xc184('b0', 'zmGP')](_0x27ee3b, _0x5278e4);
|
|||
|
},
|
|||
|
'ziotb': 'LVfdJ',
|
|||
|
'ttuTi': function (_0x173c5b, _0x550cf0) {
|
|||
|
return _0x3416fd[_0xc184('b1', 'p(a&')](_0x173c5b, _0x550cf0);
|
|||
|
},
|
|||
|
'jWdpS': _0x3416fd[_0xc184('b2', 'T8Gy')],
|
|||
|
'SBuRb': function (_0x1f1cca, _0xb19733) {
|
|||
|
return _0x3416fd[_0xc184('b3', ']EUy')](_0x1f1cca, _0xb19733);
|
|||
|
},
|
|||
|
'PfAms': _0x3416fd[_0xc184('b4', 'sb0O')],
|
|||
|
'ZTufL': function (_0xebcfa7, _0x2b157d) {
|
|||
|
return _0x3416fd[_0xc184('b5', 'vw8y')](_0xebcfa7, _0x2b157d);
|
|||
|
},
|
|||
|
'VicwM': _0x3416fd['aIssq'],
|
|||
|
'OfasK': _0x3416fd[_0xc184('b6', ']EUy')],
|
|||
|
'NcrfG': function (_0x4981c6) {
|
|||
|
return _0x3416fd['LdAkP'](_0x4981c6);
|
|||
|
}
|
|||
|
};
|
|||
|
if (_0x3416fd[_0xc184('b0', 'zmGP')](_0x3416fd[_0xc184('b7', 'UOyb')], _0x3416fd[_0xc184('b8', 'z3#)')])) {
|
|||
|
let _0x1421ee = {
|
|||
|
'url': activityUrl + _0xc184('b9', 'd**I') + activityId,
|
|||
|
'headers': {
|
|||
|
'Cookie': cookie,
|
|||
|
'User-Agent': $[_0xc184('ba', '(wta')]() ? process[_0xc184('bb', '#6(@')][_0xc184('bc', 'x8iA')] ? process[_0xc184('bd', 'w9jT')]['JD_USER_AGENT'] : _0x3416fd[_0xc184('be', 'QCpG')] : $['getdata'](_0xc184('bf', 'zmGP')) ? $[_0xc184('c0', 'd**I')](_0xc184('c1', 'C@de')) : _0x3416fd[_0xc184('c2', '#6(@')]
|
|||
|
}
|
|||
|
};
|
|||
|
$['get'](_0x1421ee, async (_0x58d7c7, _0xcd85c5, _0x3f505b) => {
|
|||
|
if ('LkUYc' === _0x3cf605[_0xc184('c3', 'pZgn')]) {
|
|||
|
try {
|
|||
|
if (_0x3cf605['oGXzV'](_0x3cf605['ziotb'], _0x3cf605[_0xc184('c4', '0pm[')])) {
|
|||
|
return {
|
|||
|
'url': '' + activityUrl + url,
|
|||
|
'body': body,
|
|||
|
'headers': {
|
|||
|
'Accept': _0x3cf605['oVOtK'],
|
|||
|
'Accept-Encoding': _0x3cf605[_0xc184('c5', 'vw8y')],
|
|||
|
'Accept-Language': _0x3cf605[_0xc184('c6', 'w9jT')],
|
|||
|
'Connection': _0x3cf605[_0xc184('c7', 'jf%L')],
|
|||
|
'Content-Type': _0x3cf605['oaLwX'],
|
|||
|
'Referer': activityUrl + _0xc184('c8', 'x8iA') + activityId,
|
|||
|
'Cookie': _0x3cf605[_0xc184('c9', '5ICC')](cookie, activityCookie),
|
|||
|
'User-Agent': $[_0xc184('ca', 'z3#)')]() ? process[_0xc184('cb', 'p(a&')][_0xc184('cc', 'QCpG')] ? process[_0xc184('e', 'zmGP')][_0xc184('cd', 'T8Gy')] : _0x3cf605['qfVqj'] : $[_0xc184('ce', '(a)r')](_0x3cf605[_0xc184('cf', 'xhD7')]) ? $[_0xc184('d0', 'edM%')]('JDUA') : _0xc184('d1', 'C9Ry')
|
|||
|
}
|
|||
|
};
|
|||
|
} else {
|
|||
|
if (_0x58d7c7) {
|
|||
|
if (_0x3cf605[_0xc184('d2', 'Ch!B')](_0x3cf605[_0xc184('d3', 'UOyb')], _0x3cf605[_0xc184('d4', ']EUy')])) {
|
|||
|
console[_0xc184('d5', 'k2o4')]('' + JSON['stringify'](_0x58d7c7));
|
|||
|
console[_0xc184('d6', 'hmBa')]($[_0xc184('59', 'QCpG')] + _0xc184('d7', '0pm['));
|
|||
|
} else {
|
|||
|
$['done']();
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x3cf605[_0xc184('d8', 'T8Gy')](_0xcd85c5[_0xc184('d9', '(wta')], 0xc8)) {
|
|||
|
if (_0x3cf605[_0xc184('da', 'w9jT')] === _0x3cf605[_0xc184('db', 'e!tR')]) {
|
|||
|
let _0x38a232 = JSON['stringify'](_0xcd85c5)[_0xc184('dc', 'd**I')](/LZ_TOKEN_KEY=[a-zA-Z0-9._-]+;/);
|
|||
|
let _0x1dccee = JSON['stringify'](_0xcd85c5)[_0xc184('dd', 'C@de')](/LZ_TOKEN_VALUE=[\+a-zA-Z0-9._-]+/);
|
|||
|
if (_0x3cf605[_0xc184('de', 's6me')](_0x38a232, _0x1dccee)) activityCookie = '' + _0x38a232 + _0x1dccee + '==';
|
|||
|
} else {
|
|||
|
console['log'](_0xc184('df', '0v]z') + JSON[_0xc184('e0', 'pZgn')](_0x3f505b));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x2b4965) {
|
|||
|
if (_0x3cf605[_0xc184('e1', '#6(@')] !== _0x3cf605['OfasK']) {
|
|||
|
$[_0xc184('e2', 'RRnJ')](_0x2b4965, _0xcd85c5);
|
|||
|
} else {
|
|||
|
_0x5c0114();
|
|||
|
}
|
|||
|
} finally {
|
|||
|
_0x3cf605['NcrfG'](_0x5c0114);
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x3cf605[_0xc184('e3', '&hsV')](_0xcd85c5[_0xc184('e4', '5ICC')], 0xc8)) {
|
|||
|
let _0x3b983f = JSON[_0xc184('7', 'C9Ry')](_0xcd85c5)[_0xc184('e5', 'jf%L')](/LZ_TOKEN_KEY=[a-zA-Z0-9._-]+;/);
|
|||
|
let _0x2f86c3 = JSON['stringify'](_0xcd85c5)[_0xc184('e6', '(a)r')](/LZ_TOKEN_VALUE=[\+a-zA-Z0-9._-]+/);
|
|||
|
if (_0x3cf605['HmcTU'](_0x3b983f, _0x2f86c3)) activityCookie = '' + _0x3b983f + _0x2f86c3 + '==';
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
} else {
|
|||
|
console[_0xc184('e7', 'pZgn')]('' + JSON[_0xc184('e8', 'z3#)')](err));
|
|||
|
console[_0xc184('e9', 'zmGP')]($[_0xc184('ea', 'pZgn')] + '\x205\x20API请求失败,请检查网路重试');
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function getToken() {
|
|||
|
var _0x12a6be = {
|
|||
|
'UUhsc': function (_0x4e274a) {
|
|||
|
return _0x4e274a();
|
|||
|
}, 'cEiqA': _0xc184('eb', 'x8iA'), 'fIedn': _0xc184('ec', 'zr[&'), 'tDwJO': function (_0x105bc1, _0x478bca) {
|
|||
|
return _0x105bc1 !== _0x478bca;
|
|||
|
}, 'pzcNg': 'yCnPe', 'STqNz': function (_0x27c4fc, _0xc4683c) {
|
|||
|
return _0x27c4fc(_0xc4683c);
|
|||
|
}, 'ehSaT': function (_0x1a6776, _0xf43249) {
|
|||
|
return _0x1a6776 === _0xf43249;
|
|||
|
}, 'dUJFY': _0xc184('ed', 'zmGP'), 'aDamP': function (_0x5c29f9, _0xe6d54a) {
|
|||
|
return _0x5c29f9 == _0xe6d54a;
|
|||
|
}, 'jdPHe': 'UiCYv'
|
|||
|
};
|
|||
|
return new Promise(_0x109c10 => {
|
|||
|
var _0x21a602 = {
|
|||
|
'waBHc': function (_0x73f93a) {
|
|||
|
return _0x12a6be['UUhsc'](_0x73f93a);
|
|||
|
},
|
|||
|
'GYdzA': _0x12a6be['cEiqA'],
|
|||
|
'sXgEq': _0x12a6be[_0xc184('ee', 'd**I')],
|
|||
|
'nynuL': function (_0xb72f7b, _0x1ad085) {
|
|||
|
return _0x12a6be[_0xc184('ef', 'RRnJ')](_0xb72f7b, _0x1ad085);
|
|||
|
},
|
|||
|
'HvMAw': _0x12a6be[_0xc184('f0', 's6me')],
|
|||
|
'ylMWm': function (_0x2af415, _0x1fe454) {
|
|||
|
return _0x12a6be['STqNz'](_0x2af415, _0x1fe454);
|
|||
|
},
|
|||
|
'uDKpd': function (_0x1714d1, _0x3551e5) {
|
|||
|
return _0x12a6be[_0xc184('f1', 'Ekn*')](_0x1714d1, _0x3551e5);
|
|||
|
},
|
|||
|
'ulUwM': _0x12a6be['dUJFY'],
|
|||
|
'AsFKn': _0xc184('f2', 's6me'),
|
|||
|
'HzCXB': function (_0x137722, _0x5d6fee) {
|
|||
|
return _0x12a6be[_0xc184('f3', 'RRnJ')](_0x137722, _0x5d6fee);
|
|||
|
},
|
|||
|
'pLghj': function (_0x559e44, _0x5b994f) {
|
|||
|
return _0x12a6be[_0xc184('f4', 'QCpG')](_0x559e44, _0x5b994f);
|
|||
|
},
|
|||
|
'UMJHC': _0x12a6be[_0xc184('f5', '#6(@')]
|
|||
|
};
|
|||
|
let _0x26a814 = _0xc184('f6', 'UOyb');
|
|||
|
$['post'](taskUrl('?functionId=isvObfuscator', _0x26a814), async (_0x31d790, _0x447d8a, _0x2343f2) => {
|
|||
|
try {
|
|||
|
if (_0x31d790) {
|
|||
|
if (_0x21a602[_0xc184('f7', 'eWPk')](_0xc184('f8', 'edM%'), _0x21a602[_0xc184('f9', 'mIrc')])) {
|
|||
|
_0x21a602[_0xc184('fa', 'zr[&')](_0x109c10);
|
|||
|
} else {
|
|||
|
console[_0xc184('d6', 'hmBa')]('' + JSON['stringify'](_0x31d790));
|
|||
|
console['log']($[_0xc184('fb', 'X([P')] + _0xc184('fc', 'Dsp6'));
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x21a602[_0xc184('fd', 'T8Gy')](safeGet, _0x2343f2)) {
|
|||
|
if (_0x21a602[_0xc184('fe', '#MMq')](_0x21a602['ulUwM'], _0x21a602[_0xc184('ff', '5ICC')])) {
|
|||
|
let _0x26e794 = $request[_0xc184('72', 'X#Sy')][_0xc184('100', 's6me')](/activityId=([a-zA-Z0-9._-]+)/);
|
|||
|
if (_0x26e794) {
|
|||
|
let _0x56bfd1 = $request[_0xc184('101', 'X([P')][_0xc184('102', 'pZgn')]('/');
|
|||
|
console['log'](_0xc184('103', 'k2o4') + _0x26e794[0x1]);
|
|||
|
console['log'](_0xc184('104', 'x8iA') + _0x56bfd1[0x0] + '//' + _0x56bfd1[0x2]);
|
|||
|
$['setdata'](_0x26e794[0x1], _0x21a602[_0xc184('105', '(wta')]);
|
|||
|
$['setdata'](_0x56bfd1[0x0] + '//' + _0x56bfd1[0x2], _0x21a602[_0xc184('106', 'RRnJ')]);
|
|||
|
$[_0xc184('107', 'xhD7')]($[_0xc184('108', 'z3#)')], '获取activityId:\x20成功🎉', 'activityId:' + _0x26e794[0x1] + _0xc184('109', 'Ekn*') + _0x56bfd1[0x0] + '//' + _0x56bfd1[0x2]);
|
|||
|
} else {
|
|||
|
$['msg']($[_0xc184('10a', 'X#Sy')], '找不到activityId', '');
|
|||
|
}
|
|||
|
} else {
|
|||
|
_0x2343f2 = JSON[_0xc184('10b', 'X([P')](_0x2343f2);
|
|||
|
if (_0x21a602[_0xc184('10c', 'hmBa')](_0x2343f2[_0xc184('10d', '5ICC')], 0x0) && _0x2343f2[_0xc184('10e', 'cX#!')]) {
|
|||
|
if (_0x21a602[_0xc184('10f', '0pm[')](_0xc184('110', 'pZgn'), _0x21a602[_0xc184('111', 'o&(u')])) {
|
|||
|
console[_0xc184('2a', '0v]z')]('' + JSON[_0xc184('112', 'Dsp6')](_0x31d790));
|
|||
|
console[_0xc184('113', 'Ekn*')]($['name'] + _0xc184('114', 'edM%'));
|
|||
|
} else {
|
|||
|
$['Token'] = _0x2343f2[_0xc184('115', '#6(@')];
|
|||
|
}
|
|||
|
} else {
|
|||
|
console['log'](_0xc184('116', 'vw8y') + JSON['stringify'](_0x2343f2));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0xa4cde0) {
|
|||
|
$['logErr'](_0xa4cde0, _0x447d8a);
|
|||
|
} finally {
|
|||
|
_0x21a602['waBHc'](_0x109c10);
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function getPin() {
|
|||
|
var _0x4b8c4e = {
|
|||
|
'ddqdb': function (_0xa40847) {
|
|||
|
return _0xa40847();
|
|||
|
}, 'PSBry': _0xc184('117', 'e!tR'), 'bhIma': function (_0x339ca8, _0x57fb71) {
|
|||
|
return _0x339ca8 === _0x57fb71;
|
|||
|
}, 'Bmofv': _0xc184('118', 'Dsp6'), 'DTRJv': function (_0x176277, _0x1fcea9) {
|
|||
|
return _0x176277(_0x1fcea9);
|
|||
|
}, 'iaeNY': 'TJoMk', 'gQbbU': _0xc184('119', 'T8Gy'), 'OWbLS': function (_0x2a5032, _0x1749b3, _0xf9faaf) {
|
|||
|
return _0x2a5032(_0x1749b3, _0xf9faaf);
|
|||
|
}, 'zWTFG': _0xc184('11a', ')]HD')
|
|||
|
};
|
|||
|
return new Promise(_0x24dbe7 => {
|
|||
|
var _0x506943 = {
|
|||
|
'MlSrT': function (_0x4b5409, _0x17fdc5) {
|
|||
|
return _0x4b5409 === _0x17fdc5;
|
|||
|
},
|
|||
|
'tZruy': _0xc184('11b', 'N8KU'),
|
|||
|
'fEPfw': _0x4b8c4e[_0xc184('11c', 'vw8y')],
|
|||
|
'Xuhoi': function (_0x270220, _0x154ad9) {
|
|||
|
return _0x4b8c4e[_0xc184('11d', 'eWPk')](_0x270220, _0x154ad9);
|
|||
|
},
|
|||
|
'QePmg': _0x4b8c4e['Bmofv'],
|
|||
|
'kDhIF': function (_0x2d00c6, _0x4fa794) {
|
|||
|
return _0x4b8c4e[_0xc184('11e', 'zQMN')](_0x2d00c6, _0x4fa794);
|
|||
|
},
|
|||
|
'SMHaD': function (_0x5373f2, _0x1bb86d) {
|
|||
|
return _0x4b8c4e[_0xc184('11f', '@9Xe')](_0x5373f2, _0x1bb86d);
|
|||
|
},
|
|||
|
'WdelH': 'fdfBs',
|
|||
|
'wszsQ': function (_0x116b45) {
|
|||
|
return _0x4b8c4e[_0xc184('120', 'T8Gy')](_0x116b45);
|
|||
|
}
|
|||
|
};
|
|||
|
if (_0x4b8c4e['iaeNY'] === _0x4b8c4e['gQbbU']) {
|
|||
|
_0x4b8c4e[_0xc184('120', 'T8Gy')](_0x24dbe7);
|
|||
|
} else {
|
|||
|
let _0x17c57b = _0xc184('121', '5ICC') + $[_0xc184('122', 'k2o4')] + '&token=' + $[_0xc184('123', '@9Xe')] + _0xc184('124', 'cX#!');
|
|||
|
$['post'](_0x4b8c4e[_0xc184('125', 'cX#!')](taskPostUrl, _0x4b8c4e[_0xc184('126', 'sb0O')], _0x17c57b), async (_0x39696a, _0x49556b, _0x1ca88f) => {
|
|||
|
try {
|
|||
|
if (_0x506943[_0xc184('127', 'e!tR')](_0x506943[_0xc184('128', ')]HD')], _0x506943['fEPfw'])) {
|
|||
|
$[_0xc184('129', 'X#Sy')](e, _0x49556b);
|
|||
|
} else {
|
|||
|
if (_0x39696a) {
|
|||
|
if (_0x506943[_0xc184('12a', 'e!tR')](_0xc184('12b', 'O[HT'), _0x506943['QePmg'])) {
|
|||
|
console['log']('' + JSON[_0xc184('12c', 'X#Sy')](_0x39696a));
|
|||
|
console[_0xc184('82', 'w9jT')]($[_0xc184('12d', 'zr[&')] + _0xc184('12e', 'hmBa'));
|
|||
|
} else {
|
|||
|
console['log'](_0xc184('12f', '(wta') + JSON[_0xc184('130', 'e!tR')](_0x1ca88f));
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x506943[_0xc184('131', 'zr[&')](safeGet, _0x1ca88f)) {
|
|||
|
_0x1ca88f = JSON[_0xc184('132', 'z3#)')](_0x1ca88f);
|
|||
|
if (_0x1ca88f['result'] && _0x1ca88f[_0xc184('133', 's6me')]) {
|
|||
|
if (_0x506943[_0xc184('134', '(wta')](_0xc184('135', 'X([P'), _0x506943[_0xc184('136', 'edM%')])) {
|
|||
|
$[_0xc184('137', 'jf%L')] = _0x1ca88f[_0xc184('138', '@9Xe')][_0xc184('139', ']EUy')];
|
|||
|
} else {
|
|||
|
$[_0xc184('3a', 'RRnJ')]('', '❌\x20' + $[_0xc184('13a', 'jf%L')] + _0xc184('13b', 'xhD7') + e + '!', '');
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('13c', '#MMq')]('异常3:' + JSON['stringify'](_0x1ca88f));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x884b80) {
|
|||
|
$[_0xc184('13d', 'jf%L')](_0x884b80, _0x49556b);
|
|||
|
} finally {
|
|||
|
_0x506943['wszsQ'](_0x24dbe7);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function getshopInfo() {
|
|||
|
var _0x1d9b4f = {
|
|||
|
'cZUOK': function (_0x2c1d11) {
|
|||
|
return _0x2c1d11();
|
|||
|
},
|
|||
|
'EbGYz': function (_0x5c1764, _0xbc8c33) {
|
|||
|
return _0x5c1764 === _0xbc8c33;
|
|||
|
},
|
|||
|
'CYHQt': _0xc184('13e', 'vw8y'),
|
|||
|
'WFSRI': _0xc184('13f', 'pZgn'),
|
|||
|
'mssvF': 'Hnlry',
|
|||
|
'joyxF': function (_0x4a3436, _0x4335f7) {
|
|||
|
return _0x4a3436 !== _0x4335f7;
|
|||
|
},
|
|||
|
'kBlrm': _0xc184('140', 'xhD7'),
|
|||
|
'ypKbq': function (_0x5b4dbe, _0x305f7a, _0x2124da) {
|
|||
|
return _0x5b4dbe(_0x305f7a, _0x2124da);
|
|||
|
}
|
|||
|
};
|
|||
|
return new Promise(_0x55df75 => {
|
|||
|
var _0xd98dc7 = {
|
|||
|
'sxQzp': function (_0x227298) {
|
|||
|
return _0x1d9b4f[_0xc184('141', 'zQMN')](_0x227298);
|
|||
|
},
|
|||
|
'ysSAY': function (_0x54cbfb, _0x25c3ac) {
|
|||
|
return _0x1d9b4f['EbGYz'](_0x54cbfb, _0x25c3ac);
|
|||
|
},
|
|||
|
'EiNFE': _0x1d9b4f['CYHQt'],
|
|||
|
'tDQZG': _0x1d9b4f[_0xc184('142', 'xhD7')],
|
|||
|
'Kjlld': _0xc184('143', 'yl6y'),
|
|||
|
'rLDzO': _0x1d9b4f['mssvF']
|
|||
|
};
|
|||
|
if (_0x1d9b4f[_0xc184('144', 'k2o4')](_0x1d9b4f[_0xc184('145', '#MMq')], _0xc184('146', 'X#Sy'))) {
|
|||
|
$[_0xc184('147', 'o&(u')](_0x1d9b4f[_0xc184('148', 'pCC1')](taskPostUrl, _0xc184('149', '(wta'), 'activityId=' + activityId), async (_0x36e0ae, _0x40da01, _0x22237a) => {
|
|||
|
var _0x447dab = {
|
|||
|
'FZKsO': function (_0x3209e3) {
|
|||
|
return _0xd98dc7['sxQzp'](_0x3209e3);
|
|||
|
}
|
|||
|
};
|
|||
|
if (_0xd98dc7['ysSAY'](_0xd98dc7['EiNFE'], _0xd98dc7['tDQZG'])) {
|
|||
|
$[_0xc184('14a', '(wta')](e, _0x40da01);
|
|||
|
} else {
|
|||
|
try {
|
|||
|
if (_0xc184('14b', 'Ch!B') !== _0xd98dc7['Kjlld']) {
|
|||
|
console[_0xc184('14c', ')]HD')]('' + JSON[_0xc184('14d', 'p(a&')](_0x36e0ae));
|
|||
|
console[_0xc184('14c', ')]HD')]($[_0xc184('14e', 'cX#!')] + _0xc184('14f', 'pCC1'));
|
|||
|
} else {
|
|||
|
if (_0x36e0ae) {
|
|||
|
if (_0xd98dc7[_0xc184('150', 'eWPk')]('Hnlry', _0xd98dc7[_0xc184('151', '(a)r')])) {
|
|||
|
console['log']('' + JSON[_0xc184('152', 'hmBa')](_0x36e0ae));
|
|||
|
console[_0xc184('82', 'w9jT')]($[_0xc184('27', 'w9jT')] + _0xc184('153', 'C@de'));
|
|||
|
} else {
|
|||
|
$[_0xc184('154', 'pCC1')](e, _0x40da01);
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x22237a && safeGet(_0x22237a)) {
|
|||
|
_0x22237a = JSON[_0xc184('155', 'yl6y')](_0x22237a);
|
|||
|
if (_0x22237a[_0xc184('156', 'zQMN')]) {
|
|||
|
$['sid'] = _0x22237a[_0xc184('157', 'eWPk')]['sid'];
|
|||
|
$['userId'] = _0x22237a[_0xc184('158', 'd**I')]['userId'];
|
|||
|
$[_0xc184('159', 'UOyb')] = _0x22237a[_0xc184('15a', 'X#Sy')][_0xc184('15b', 'pCC1')];
|
|||
|
} else {
|
|||
|
console[_0xc184('15c', 'yl6y')](_0xc184('15d', 'cX#!') + JSON['stringify'](_0x22237a));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x53e118) {
|
|||
|
$[_0xc184('15e', 'C9Ry')](_0x53e118, _0x40da01);
|
|||
|
} finally {
|
|||
|
if (_0xc184('15f', 'GnBx') === _0xc184('160', 'edM%')) {
|
|||
|
_0x447dab['FZKsO'](_0x55df75);
|
|||
|
} else {
|
|||
|
_0x55df75();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
} else {
|
|||
|
return JSON[_0xc184('161', 'Dsp6')](str);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function joinShop() {
|
|||
|
var _0x44ddd5 = {
|
|||
|
'fHkvy': function (_0x140d2f, _0x103cba) {
|
|||
|
return _0x140d2f != _0x103cba;
|
|||
|
}, 'xBpvm': _0xc184('162', 'zr[&'), 'zDPtH': function (_0x5d06c1, _0x7e5396) {
|
|||
|
return _0x5d06c1 == _0x7e5396;
|
|||
|
}, 'uSeeb': function (_0x53cafb, _0x475c12) {
|
|||
|
return _0x53cafb === _0x475c12;
|
|||
|
}, 'VOQyl': function (_0x5c7f3d, _0x52620e) {
|
|||
|
return _0x5c7f3d !== _0x52620e;
|
|||
|
}, 'RQnoR': function (_0x3bd61b, _0x4f8cfb) {
|
|||
|
return _0x3bd61b === _0x4f8cfb;
|
|||
|
}, 'LTbiP': 'rNVRO', 'xhECR': function (_0x299520, _0x39c94c) {
|
|||
|
return _0x299520 === _0x39c94c;
|
|||
|
}, 'DXuMc': _0xc184('163', 'GnBx'), 'DYPgx': function (_0x20f29b, _0xe4e2d7) {
|
|||
|
return _0x20f29b > _0xe4e2d7;
|
|||
|
}, 'niNHz': 'GITHUB', 'GzyAj': _0xc184('164', 'X#Sy'), 'yhFLp': function (_0x52c93c, _0xae0fa0) {
|
|||
|
return _0x52c93c(_0xae0fa0);
|
|||
|
}
|
|||
|
};
|
|||
|
return new Promise(_0xad9328 => {
|
|||
|
var _0xd93107 = {
|
|||
|
'iRBNx': function (_0x4efdb2, _0xaa5fb6) {
|
|||
|
return _0x4efdb2(_0xaa5fb6);
|
|||
|
},
|
|||
|
'hTHau': function (_0x3e4aa4, _0x544eeb) {
|
|||
|
return _0x44ddd5[_0xc184('165', 'T8Gy')](_0x3e4aa4, _0x544eeb);
|
|||
|
},
|
|||
|
'pfseL': _0x44ddd5['xBpvm'],
|
|||
|
'BWYJK': function (_0x4dd5f5, _0x5801cf) {
|
|||
|
return _0x44ddd5[_0xc184('166', 'eWPk')](_0x4dd5f5, _0x5801cf);
|
|||
|
},
|
|||
|
'qNIKN': function (_0xd38f9d, _0xa2f23c) {
|
|||
|
return _0x44ddd5['uSeeb'](_0xd38f9d, _0xa2f23c);
|
|||
|
},
|
|||
|
'VFLlP': function (_0x556671, _0x2f6172) {
|
|||
|
return _0x44ddd5[_0xc184('167', 'cX#!')](_0x556671, _0x2f6172);
|
|||
|
},
|
|||
|
'vBuHm': function (_0x1883ee, _0x5012d2) {
|
|||
|
return _0x44ddd5[_0xc184('168', '5ICC')](_0x1883ee, _0x5012d2);
|
|||
|
},
|
|||
|
'setPs': 'DFZsQ',
|
|||
|
'VSPcv': _0xc184('169', 'd**I'),
|
|||
|
'WQCys': _0xc184('16a', 'Dsp6'),
|
|||
|
'hUdVi': function (_0x59b0ee, _0x22c9a2) {
|
|||
|
return _0x44ddd5['RQnoR'](_0x59b0ee, _0x22c9a2);
|
|||
|
},
|
|||
|
'SvNET': _0x44ddd5[_0xc184('16b', 'X([P')],
|
|||
|
'WsaiA': _0xc184('16c', 'X#Sy'),
|
|||
|
'CEnte': 'ByBjk',
|
|||
|
'uUMlg': _0xc184('16d', 'QCpG'),
|
|||
|
'MaEBI': function (_0x2fb2be, _0x46250c) {
|
|||
|
return _0x44ddd5[_0xc184('16e', 'Ekn*')](_0x2fb2be, _0x46250c);
|
|||
|
},
|
|||
|
'xQqCc': _0xc184('16f', 'X([P'),
|
|||
|
'uEeIN': function (_0x2af2ec) {
|
|||
|
return _0x2af2ec();
|
|||
|
},
|
|||
|
'nFnmt': function (_0xe37611, _0x52741f) {
|
|||
|
return _0x44ddd5[_0xc184('170', 'vw8y')](_0xe37611, _0x52741f);
|
|||
|
},
|
|||
|
'jHuFP': _0x44ddd5[_0xc184('171', 'O[HT')],
|
|||
|
'DgHPb': function (_0x2746a8, _0x4917d0) {
|
|||
|
return _0x44ddd5['DYPgx'](_0x2746a8, _0x4917d0);
|
|||
|
},
|
|||
|
'PVqtV': _0x44ddd5['niNHz']
|
|||
|
};
|
|||
|
if (_0x44ddd5[_0xc184('172', '5ICC')](_0x44ddd5[_0xc184('173', 'N8KU')], _0xc184('174', 'o&(u'))) {
|
|||
|
let _0x4e7b5a = 'venderId=' + $[_0xc184('175', 's6me')] + _0xc184('176', 'QCpG') + _0x44ddd5[_0xc184('177', 'X#Sy')](encodeURIComponent, $[_0xc184('178', 'C9Ry')]);
|
|||
|
$[_0xc184('179', '0v]z')](taskPostUrl('/mc/new/brandCard/common/shopAndBrand/getOpenCardInfo', _0x4e7b5a), async (_0x57cdf5, _0x53f161, _0x1ac107) => {
|
|||
|
var _0x4776c4 = {
|
|||
|
'rgVst': 'https://bean.m.jd.com/', 'jzjXS': function (_0x3d3bf8, _0x5a0d26) {
|
|||
|
return _0xd93107['BWYJK'](_0x3d3bf8, _0x5a0d26);
|
|||
|
}
|
|||
|
};
|
|||
|
if (_0xd93107[_0xc184('17a', 'cX#!')]('xZPbj', _0xc184('17b', '#6(@'))) {
|
|||
|
if (_0xd93107['iRBNx'](safeGet, _0x1ac107)) {
|
|||
|
_0x1ac107 = JSON[_0xc184('17c', 'hmBa')](_0x1ac107);
|
|||
|
if (_0x1ac107[_0xc184('17d', 'yl6y')] && _0x1ac107[_0xc184('157', 'eWPk')]) {
|
|||
|
$[_0xc184('17e', 'UOyb')] = _0xd93107['hTHau'](_0x1ac107[_0xc184('17f', 'sb0O')][_0xc184('180', 'xhD7')], _0x1ac107[_0xc184('156', 'zQMN')][_0xc184('181', '#6(@')]) ? $[_0xc184('182', 'x8iA')] = _0x1ac107['data']['yunMidImageUrl'] : $['attrTouXiang'] = _0xd93107[_0xc184('183', 'Dsp6')];
|
|||
|
} else {
|
|||
|
console[_0xc184('184', 'mIrc')](_0xc184('12f', '(wta') + JSON[_0xc184('185', 'UOyb')](_0x1ac107));
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
try {
|
|||
|
if (_0x57cdf5) {
|
|||
|
if (_0xd93107['VFLlP'](_0xc184('186', 'zmGP'), _0xc184('187', 'QCpG'))) {
|
|||
|
$[_0xc184('188', 'k2o4')](e, _0x53f161);
|
|||
|
} else {
|
|||
|
console['log']('' + JSON[_0xc184('189', 'pCC1')](_0x57cdf5));
|
|||
|
console[_0xc184('15', 'X([P')]($['name'] + '\x204\x20API请求失败,请检查网路重试');
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (safeGet(_0x1ac107)) {
|
|||
|
if (_0xd93107['vBuHm'](_0xd93107[_0xc184('18a', 'edM%')], _0xc184('18b', '#6(@'))) {
|
|||
|
$[_0xc184('6c', 'w9jT')] = !![];
|
|||
|
} else {
|
|||
|
_0x1ac107 = JSON[_0xc184('18c', 'X#Sy')](_0x1ac107);
|
|||
|
if (_0x1ac107['result'] && _0x1ac107['data']) {
|
|||
|
if (_0xd93107[_0xc184('18d', 'sb0O')](_0xd93107['VSPcv'], _0xd93107['WQCys'])) {
|
|||
|
$['msg']($['name'], _0xc184('18e', '#MMq'), _0xc184('18f', '@9Xe'), {'open-url': _0x4776c4[_0xc184('190', 'zmGP')]});
|
|||
|
return;
|
|||
|
} else {
|
|||
|
if (_0x1ac107[_0xc184('191', 'O[HT')][_0xc184('192', 'hmBa')]) {
|
|||
|
if (_0xd93107[_0xc184('193', 'X#Sy')](_0xd93107['SvNET'], _0xd93107[_0xc184('194', 'd**I')])) {
|
|||
|
return !![];
|
|||
|
} else {
|
|||
|
let _0x2b47ad = _0x1ac107[_0xc184('195', ')]HD')][_0xc184('196', '(wta')][_0xc184('197', 'x8iA')](/channel=(\d+)/);
|
|||
|
const _0x326ed3 = {
|
|||
|
'venderId': $[_0xc184('198', '(a)r')],
|
|||
|
'shopId': $[_0xc184('199', ']EUy')],
|
|||
|
'bindByVerifyCodeFlag': 0x1,
|
|||
|
'registerExtend': {},
|
|||
|
'writeChildFlag': 0x0,
|
|||
|
'channel': _0x2b47ad[0x1]
|
|||
|
};
|
|||
|
let _0x1324f5 = _0xc184('19a', 'X([P') + encodeURIComponent(JSON[_0xc184('19b', 'GnBx')](_0x326ed3)) + _0xc184('19c', 'pCC1');
|
|||
|
let _0x21c3ee = '' + _0x1ac107['data']['openCardLink'];
|
|||
|
await jiaru(_0x1324f5, _0x21c3ee);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0xd93107[_0xc184('19d', 'cX#!')](_0xd93107[_0xc184('19e', 'edM%')], _0xd93107['uUMlg'])) {
|
|||
|
if (safeGet(_0x1ac107)) {
|
|||
|
_0x1ac107 = JSON[_0xc184('19f', 'zmGP')](_0x1ac107);
|
|||
|
if (_0x4776c4['jzjXS'](_0x1ac107[_0xc184('1a0', 's6me')], 0x0) && _0x1ac107[_0xc184('1a1', 'k2o4')]) {
|
|||
|
$[_0xc184('123', '@9Xe')] = _0x1ac107[_0xc184('1a2', 'Dsp6')];
|
|||
|
} else {
|
|||
|
console['log']('异常2:' + JSON['stringify'](_0x1ac107));
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('1a3', 'd**I')](_0xc184('1a4', 'mIrc') + JSON[_0xc184('1a5', 'd**I')](_0x1ac107));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x14db99) {
|
|||
|
$['logErr'](_0x14db99, _0x53f161);
|
|||
|
} finally {
|
|||
|
if (_0xd93107[_0xc184('1a6', 'z3#)')](_0xd93107[_0xc184('1a7', 'vw8y')], _0xd93107[_0xc184('1a8', 'eWPk')])) {
|
|||
|
console[_0xc184('13c', '#MMq')]('' + JSON['stringify'](_0x57cdf5));
|
|||
|
console[_0xc184('1a9', '0pm[')]($[_0xc184('13a', 'jf%L')] + _0xc184('1aa', '5ICC'));
|
|||
|
} else {
|
|||
|
_0xd93107['uEeIN'](_0xad9328);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
} else {
|
|||
|
if (process['env'][_0xc184('1ab', 'pZgn')]) activityId = process[_0xc184('1ac', '@9Xe')]['jd_zdjr_activityId'];
|
|||
|
if (process[_0xc184('1ad', '0pm[')]['jd_zdjr_activityUrl']) activityUrl = process[_0xc184('1ad', '0pm[')][_0xc184('1ae', 'X([P')];
|
|||
|
Object[_0xc184('1af', 'jf%L')](jdCookieNode)[_0xc184('1b0', '0v]z')](_0xab312e => {
|
|||
|
cookiesArr[_0xc184('1b1', 'sb0O')](jdCookieNode[_0xab312e]);
|
|||
|
});
|
|||
|
if (process['env'][_0xc184('1b2', 'pCC1')] && _0xd93107[_0xc184('1b3', 'e!tR')](process[_0xc184('1b4', 'cX#!')]['JD_DEBUG'], _0xd93107['jHuFP'])) console[_0xc184('d5', 'k2o4')] = () => {
|
|||
|
};
|
|||
|
if (_0xd93107['DgHPb'](JSON[_0xc184('1b5', 'k2o4')](process['env'])[_0xc184('1b6', 's6me')](_0xd93107[_0xc184('1b7', 'X#Sy')]), -0x1)) process[_0xc184('1b8', 'jf%L')](0x0);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function jiaru(_0x44818b, _0x18f4bb) {
|
|||
|
var _0x24b01d = {'jdZjk': 'ExPGF', 'BBHfO': '*/*', 'zpmTT': 'gzip,\x20deflate,\x20br', 'wNqKa': 'JDUA'};
|
|||
|
return new Promise(_0x1159f9 => {
|
|||
|
var _0x13c79e = {
|
|||
|
'eDVmA': function (_0xd84e68, _0x107282) {
|
|||
|
return _0xd84e68 === _0x107282;
|
|||
|
}, 'JGDrz': _0x24b01d[_0xc184('1b9', 'hmBa')]
|
|||
|
};
|
|||
|
let _0x1ffa51 = {
|
|||
|
'url': _0x44818b, 'headers': {
|
|||
|
'Accept': _0x24b01d['BBHfO'],
|
|||
|
'Accept-Encoding': _0x24b01d[_0xc184('1ba', 's6me')],
|
|||
|
'Accept-Language': 'zh-cn',
|
|||
|
'Connection': _0xc184('1bb', '(a)r'),
|
|||
|
'Host': _0xc184('1bc', '0v]z'),
|
|||
|
'Referer': _0x18f4bb,
|
|||
|
'Cookie': cookie,
|
|||
|
'User-Agent': $[_0xc184('1bd', ']EUy')]() ? process[_0xc184('1be', '#MMq')][_0xc184('1bf', 'zr[&')] ? process[_0xc184('11', 'd**I')][_0xc184('1c0', '(a)r')] : 'jdapp;iPhone;9.4.0;13.1.2;2f7578cb634065f9beae94d013f172e197d62283;network/wifi;ADID/7B411CD9-D62C-425B-B083-9AFC49B94228;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone8,1;addressid/2474290248;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;pv/80.1;apprpd/Home_Main;ref/JDMainPageViewController;psq/1;ads/;psn/2f7578cb634065f9beae94d013f172e197d62283|138;jdv/0|kong|t_1000170135|tuiguang|notset|1611219732062|1611219732;adk/;app_device/IOS;pap/JA2015_311210|9.4.0|IOS\x2013.1.2;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_1_2\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1' : $[_0xc184('1c1', 'z3#)')](_0x24b01d[_0xc184('1c2', 'N8KU')]) ? $['getdata'](_0x24b01d[_0xc184('1c3', 'zQMN')]) : 'jdapp;iPhone;9.4.0;13.1.2;2f7578cb634065f9beae94d013f172e197d62283;network/wifi;ADID/7B411CD9-D62C-425B-B083-9AFC49B94228;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone8,1;addressid/2474290248;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;pv/80.1;apprpd/Home_Main;ref/JDMainPageViewController;psq/1;ads/;psn/2f7578cb634065f9beae94d013f172e197d62283|138;jdv/0|kong|t_1000170135|tuiguang|notset|1611219732062|1611219732;adk/;app_device/IOS;pap/JA2015_311210|9.4.0|IOS\x2013.1.2;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_1_2\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1'
|
|||
|
}
|
|||
|
};
|
|||
|
$['get'](_0x1ffa51, async (_0x1b6eb6, _0x33d202, _0x2235d4) => {
|
|||
|
try {
|
|||
|
if (_0x1b6eb6) {
|
|||
|
if (_0x13c79e[_0xc184('1c4', '(a)r')](_0x13c79e['JGDrz'], _0x13c79e[_0xc184('1c5', 'w9jT')])) {
|
|||
|
console[_0xc184('3a', 'RRnJ')]('' + JSON[_0xc184('1c6', 'yl6y')](_0x1b6eb6));
|
|||
|
console[_0xc184('1c7', 'N8KU')]($[_0xc184('1c8', 'C@de')] + '\x20入会\x20API请求失败,请检查网路重试');
|
|||
|
} else {
|
|||
|
$[_0xc184('1c9', 'mIrc')](e, _0x33d202);
|
|||
|
}
|
|||
|
} else {
|
|||
|
$[_0xc184('184', 'mIrc')](_0x2235d4);
|
|||
|
}
|
|||
|
} catch (_0x2454de) {
|
|||
|
$[_0xc184('1ca', 'pZgn')](_0x2454de, _0x33d202);
|
|||
|
} finally {
|
|||
|
_0x1159f9();
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function getUserInfo() {
|
|||
|
var _0x78e031 = {
|
|||
|
'VxSbr': '*/*',
|
|||
|
'Ujkvo': _0xc184('1cb', 'w9jT'),
|
|||
|
'Xvwkz': _0xc184('1cc', 'xhD7'),
|
|||
|
'NzMJE': _0xc184('1cd', 'N8KU'),
|
|||
|
'QhTaw': _0xc184('1ce', 'mIrc'),
|
|||
|
'FkLcV': _0xc184('1cf', '#6(@'),
|
|||
|
'TkHuj': function (_0x6975db, _0x40dc02) {
|
|||
|
return _0x6975db !== _0x40dc02;
|
|||
|
},
|
|||
|
'mOnQe': 'rtXCM',
|
|||
|
'DEcbi': function (_0x41a3b2, _0x143ebb) {
|
|||
|
return _0x41a3b2(_0x143ebb);
|
|||
|
},
|
|||
|
'qPuMV': function (_0x1e9ec9, _0xe34516) {
|
|||
|
return _0x1e9ec9 === _0xe34516;
|
|||
|
},
|
|||
|
'HWPeH': 'LNkEK',
|
|||
|
'JGIPj': function (_0x34e8eb, _0x3917e1) {
|
|||
|
return _0x34e8eb != _0x3917e1;
|
|||
|
},
|
|||
|
'VlHyl': _0xc184('1d0', 'hmBa'),
|
|||
|
'snXcw': _0xc184('1d1', 'C@de'),
|
|||
|
'poQjc': function (_0x4aeac8) {
|
|||
|
return _0x4aeac8();
|
|||
|
},
|
|||
|
'NFncM': _0xc184('1d2', 'd**I'),
|
|||
|
'rAqPX': function (_0x50bf1f, _0x3b6d17) {
|
|||
|
return _0x50bf1f(_0x3b6d17);
|
|||
|
},
|
|||
|
'hGdCD': function (_0x2b87d4, _0x33eb9c, _0x361a59) {
|
|||
|
return _0x2b87d4(_0x33eb9c, _0x361a59);
|
|||
|
}
|
|||
|
};
|
|||
|
return new Promise(_0x4f6b7a => {
|
|||
|
if (_0x78e031[_0xc184('1d3', ')]HD')] !== _0x78e031['NFncM']) {
|
|||
|
$['teamNum'] = $[_0xc184('1d4', '@9Xe')][0x1];
|
|||
|
messageTitle += '最多可以组建' + $[_0xc184('1d5', 'xhD7')] + _0xc184('1d6', 'jf%L');
|
|||
|
} else {
|
|||
|
let _0x3f860c = 'pin=' + _0x78e031[_0xc184('1d7', 'eWPk')](encodeURIComponent, $[_0xc184('137', 'jf%L')]);
|
|||
|
$['post'](_0x78e031[_0xc184('1d8', '(a)r')](taskPostUrl, _0xc184('1d9', 'd**I'), _0x3f860c), async (_0x1040f0, _0x5b65b4, _0x5b3351) => {
|
|||
|
var _0x5c296a = {
|
|||
|
'IWjpz': _0x78e031[_0xc184('1da', 'UOyb')],
|
|||
|
'LFcUF': _0xc184('1db', 'e!tR'),
|
|||
|
'fPXKW': _0x78e031[_0xc184('1dc', 'vw8y')],
|
|||
|
'tyPaw': _0x78e031[_0xc184('1dd', 'hmBa')],
|
|||
|
'nEbDb': _0x78e031[_0xc184('1de', 'X#Sy')],
|
|||
|
'nSngQ': _0x78e031['QhTaw']
|
|||
|
};
|
|||
|
try {
|
|||
|
if ('atlwS' === _0x78e031['FkLcV']) {
|
|||
|
return {
|
|||
|
'url': _0xc184('1df', 'UOyb') + url, 'body': _0x3f860c, 'headers': {
|
|||
|
'Accept': _0x5c296a[_0xc184('1e0', '(wta')],
|
|||
|
'Accept-Encoding': _0xc184('1e1', 'eWPk'),
|
|||
|
'Accept-Language': _0x5c296a[_0xc184('1e2', 'eWPk')],
|
|||
|
'Connection': _0x5c296a[_0xc184('1e3', 'eWPk')],
|
|||
|
'Content-Type': _0xc184('1e4', 'GnBx'),
|
|||
|
'Host': _0x5c296a[_0xc184('1e5', ']EUy')],
|
|||
|
'Cookie': cookie,
|
|||
|
'User-Agent': $[_0xc184('1e6', 'pCC1')]() ? process[_0xc184('1ad', '0pm[')][_0xc184('1e7', 'X([P')] ? process[_0xc184('1e8', 'Dsp6')][_0xc184('1e9', 'jf%L')] : 'jdapp;iPhone;9.4.0;13.1.2;2f7578cb634065f9beae94d013f172e197d62283;network/wifi;ADID/7B411CD9-D62C-425B-B083-9AFC49B94228;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone8,1;addressid/2474290248;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;pv/80.1;apprpd/Home_Main;ref/JDMainPageViewController;psq/1;ads/;psn/2f7578cb634065f9beae94d013f172e197d62283|138;jdv/0|kong|t_1000170135|tuiguang|notset|1611219732062|1611219732;adk/;app_device/IOS;pap/JA2015_311210|9.4.0|IOS\x2013.1.2;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_1_2\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1' : $[_0xc184('1c', 'pZgn')](_0x5c296a['nEbDb']) ? $['getdata'](_0x5c296a['nEbDb']) : _0x5c296a[_0xc184('1ea', 'Ekn*')]
|
|||
|
}
|
|||
|
};
|
|||
|
} else {
|
|||
|
if (_0x1040f0) {
|
|||
|
if (_0x78e031[_0xc184('1eb', 's6me')](_0x78e031[_0xc184('1ec', 'yl6y')], _0xc184('1ed', 'd**I'))) {
|
|||
|
console['log']('' + JSON['stringify'](_0x1040f0));
|
|||
|
console[_0xc184('77', 'C9Ry')]($[_0xc184('1ee', 'GnBx')] + '\x207\x20API请求失败,请检查网路重试');
|
|||
|
} else {
|
|||
|
console[_0xc184('1ef', '&hsV')]('' + JSON[_0xc184('e0', 'pZgn')](_0x1040f0));
|
|||
|
console['log']($[_0xc184('1f0', 'vw8y')] + '\x206-1\x20API请求失败,请检查网路重试');
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x78e031['DEcbi'](safeGet, _0x5b3351)) {
|
|||
|
_0x5b3351 = JSON[_0xc184('1f1', 'mIrc')](_0x5b3351);
|
|||
|
if (_0x5b3351['result'] && _0x5b3351[_0xc184('1f2', 'yl6y')]) {
|
|||
|
if (_0x78e031[_0xc184('1f3', '0v]z')](_0x78e031['HWPeH'], _0xc184('1f4', 'C9Ry'))) {
|
|||
|
_0x4f6b7a();
|
|||
|
} else {
|
|||
|
$[_0xc184('1f5', ')]HD')] = _0x78e031[_0xc184('1f6', '&hsV')](_0x5b3351[_0xc184('1f7', '(wta')][_0xc184('1f8', ']EUy')], _0x5b3351[_0xc184('1f9', ']EUy')][_0xc184('1fa', 'RRnJ')]) ? $[_0xc184('1fb', ']EUy')] = _0x5b3351[_0xc184('1fc', 'C9Ry')][_0xc184('1fd', 'hmBa')] : $[_0xc184('1fe', 'T8Gy')] = _0x78e031[_0xc184('1ff', 'C3(S')];
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x78e031[_0xc184('200', 'w9jT')] === 'PMIgb') {
|
|||
|
console[_0xc184('201', 'o&(u')]('异常6-2:' + JSON[_0xc184('202', ']EUy')](_0x5b3351));
|
|||
|
} else {
|
|||
|
_0x4f6b7a();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x15a33d) {
|
|||
|
$[_0xc184('e2', 'RRnJ')](_0x15a33d, _0x5b65b4);
|
|||
|
} finally {
|
|||
|
_0x78e031['poQjc'](_0x4f6b7a);
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function getTeam() {
|
|||
|
var _0x16367e = {
|
|||
|
'iHRed': '不要在BoxJS手动复制粘贴修改cookie',
|
|||
|
'OZaFt': 'https://img10.360buyimg.com/imgzone/jfs/t1/21383/2/6633/3879/5c5138d8E0967ccf2/91da57c5e2166005.jpg',
|
|||
|
'kkvRH': _0xc184('203', 'edM%'),
|
|||
|
'bGcdn': 'jd_smiek_zdjr_activityUrl',
|
|||
|
'lhQtO': function (_0x2873f4, _0x2a339f) {
|
|||
|
return _0x2873f4 !== _0x2a339f;
|
|||
|
},
|
|||
|
'ihYdC': _0xc184('204', 'eWPk'),
|
|||
|
'QOqwe': 'usmXA',
|
|||
|
'zRrxG': _0xc184('205', 'xhD7'),
|
|||
|
'LDNin': function (_0x391c88, _0x217409) {
|
|||
|
return _0x391c88 === _0x217409;
|
|||
|
},
|
|||
|
'fxMpn': _0xc184('206', '@9Xe'),
|
|||
|
'NatvH': function (_0x36ef46, _0x371738) {
|
|||
|
return _0x36ef46 < _0x371738;
|
|||
|
},
|
|||
|
'MLYnB': '活动结束',
|
|||
|
'taVWY': _0xc184('207', 'C9Ry'),
|
|||
|
'tMmyv': function (_0xc7f0fb, _0x230867) {
|
|||
|
return _0xc7f0fb + _0x230867;
|
|||
|
},
|
|||
|
'qCQxt': function (_0xbfa896, _0xc1b18b, _0x55474b) {
|
|||
|
return _0xbfa896(_0xc1b18b, _0x55474b);
|
|||
|
},
|
|||
|
'Nacpk': _0xc184('208', 'cX#!'),
|
|||
|
'shHQe': _0xc184('209', 'cX#!'),
|
|||
|
'CFsGd': function (_0x2024bd, _0x9481f0) {
|
|||
|
return _0x2024bd(_0x9481f0);
|
|||
|
},
|
|||
|
'XWAmK': function (_0x39a385, _0x1c87e0, _0x5273f9) {
|
|||
|
return _0x39a385(_0x1c87e0, _0x5273f9);
|
|||
|
},
|
|||
|
'VTdPT': '/wxTeam/activityContent'
|
|||
|
};
|
|||
|
return new Promise(_0x33a3ce => {
|
|||
|
var _0x37250d = {
|
|||
|
'VfACV': _0x16367e['iHRed'],
|
|||
|
'ENdur': _0x16367e[_0xc184('20a', 'hmBa')],
|
|||
|
'bInDr': function (_0x2c6c97) {
|
|||
|
return _0x2c6c97();
|
|||
|
},
|
|||
|
'oXBtE': _0x16367e[_0xc184('20b', 'pCC1')],
|
|||
|
'koPLi': _0x16367e[_0xc184('20c', 'w9jT')],
|
|||
|
'hwHyy': function (_0x1abb0b, _0x3f7b99) {
|
|||
|
return _0x16367e['lhQtO'](_0x1abb0b, _0x3f7b99);
|
|||
|
},
|
|||
|
'mQHIV': _0x16367e['ihYdC'],
|
|||
|
'hOauG': _0x16367e['QOqwe'],
|
|||
|
'pkyxW': _0x16367e[_0xc184('20d', 'zQMN')],
|
|||
|
'oLuwO': function (_0xd7cfcd, _0x27414a) {
|
|||
|
return _0xd7cfcd(_0x27414a);
|
|||
|
},
|
|||
|
'fBqeo': function (_0x339991, _0x3ecf60) {
|
|||
|
return _0x16367e[_0xc184('20e', 'pCC1')](_0x339991, _0x3ecf60);
|
|||
|
},
|
|||
|
'HylQo': function (_0x47c827, _0x5c41ba) {
|
|||
|
return _0x16367e[_0xc184('20f', '#6(@')](_0x47c827, _0x5c41ba);
|
|||
|
},
|
|||
|
'AmSNj': _0x16367e[_0xc184('210', 's6me')],
|
|||
|
'ScoDf': function (_0x112203, _0xc5f71b) {
|
|||
|
return _0x16367e['NatvH'](_0x112203, _0xc5f71b);
|
|||
|
},
|
|||
|
'gvQdM': _0x16367e[_0xc184('211', 'vw8y')],
|
|||
|
'qeZcF': function (_0x320127) {
|
|||
|
return _0x320127();
|
|||
|
},
|
|||
|
'CQyPE': function (_0xaa7a39, _0x413d59) {
|
|||
|
return _0xaa7a39 == _0x413d59;
|
|||
|
},
|
|||
|
'wJCNm': function (_0x5c9ea7, _0x27cbf9) {
|
|||
|
return _0x5c9ea7 == _0x27cbf9;
|
|||
|
},
|
|||
|
'PitVg': _0x16367e['taVWY'],
|
|||
|
'jAWDy': function (_0x526dda, _0x3542c9) {
|
|||
|
return _0x16367e[_0xc184('212', '&hsV')](_0x526dda, _0x3542c9);
|
|||
|
},
|
|||
|
'gmEcn': function (_0x3be96f, _0x1f8f8e, _0x203095) {
|
|||
|
return _0x16367e[_0xc184('213', 's6me')](_0x3be96f, _0x1f8f8e, _0x203095);
|
|||
|
},
|
|||
|
'NIPvF': function (_0x5448a5, _0x4b11cc) {
|
|||
|
return _0x5448a5 != _0x4b11cc;
|
|||
|
},
|
|||
|
'muiGu': _0xc184('214', 'mIrc'),
|
|||
|
'UymOv': _0x16367e[_0xc184('215', 'zr[&')],
|
|||
|
'AAxGC': _0x16367e['shHQe'],
|
|||
|
'wjlQr': function (_0x17e887, _0x5b5fbf) {
|
|||
|
return _0x16367e[_0xc184('216', 'pZgn')](_0x17e887, _0x5b5fbf);
|
|||
|
},
|
|||
|
'xklHs': _0xc184('217', ']EUy')
|
|||
|
};
|
|||
|
let _0x979688 = 'activityId=' + activityId + _0xc184('218', '&hsV') + _0x16367e[_0xc184('219', 'C3(S')](encodeURIComponent, $['Pin']);
|
|||
|
if ($[_0xc184('21a', 'd**I')]) _0x979688 += _0xc184('21b', 'zmGP') + $[_0xc184('21c', 'C3(S')];
|
|||
|
$[_0xc184('21d', '5ICC')](_0x16367e['XWAmK'](taskPostUrl, _0x16367e[_0xc184('21e', 'z3#)')], _0x979688), async (_0x4b830d, _0xfcd685, _0x28a585) => {
|
|||
|
var _0x2e962f = {
|
|||
|
'xKdil': function (_0x2d0bdb) {
|
|||
|
return _0x2d0bdb();
|
|||
|
},
|
|||
|
'KXBDI': '队伍已满员',
|
|||
|
'KksJe': _0x37250d[_0xc184('21f', '&hsV')],
|
|||
|
'gkWWw': _0x37250d[_0xc184('220', ')]HD')]
|
|||
|
};
|
|||
|
if (_0x37250d[_0xc184('221', '#6(@')]('YYFKa', _0x37250d['mQHIV'])) {
|
|||
|
_0x2e962f[_0xc184('222', 'w9jT')](GetCookie);
|
|||
|
$['done']();
|
|||
|
} else {
|
|||
|
try {
|
|||
|
if (_0x37250d[_0xc184('223', 's6me')] !== _0xc184('224', '@9Xe')) {
|
|||
|
if (_0x4b830d) {
|
|||
|
if ('LdhCz' !== _0x37250d[_0xc184('225', 'vw8y')]) {
|
|||
|
console[_0xc184('58', '5ICC')]('' + JSON['stringify'](_0x4b830d));
|
|||
|
console['log']($[_0xc184('226', '0v]z')] + _0xc184('227', 'zr[&'));
|
|||
|
} else {
|
|||
|
$[_0xc184('228', 'sb0O')](e, _0xfcd685);
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x37250d[_0xc184('229', 's6me')](safeGet, _0x28a585)) {
|
|||
|
if (_0x37250d['fBqeo'](_0xc184('22a', 'Ekn*'), _0xc184('22b', 'xhD7'))) {
|
|||
|
try {
|
|||
|
return JSON[_0xc184('22c', ']EUy')](str);
|
|||
|
} catch (_0x249c60) {
|
|||
|
console['log'](_0x249c60);
|
|||
|
$[_0xc184('22d', 'p(a&')]($[_0xc184('22e', '(wta')], '', _0x37250d[_0xc184('22f', 'T8Gy')]);
|
|||
|
return [];
|
|||
|
}
|
|||
|
} else {
|
|||
|
_0x28a585 = JSON['parse'](_0x28a585);
|
|||
|
if (_0x28a585[_0xc184('230', 'cX#!')] && _0x28a585[_0xc184('231', 'C3(S')]) {
|
|||
|
if (_0x37250d['HylQo'](_0x37250d[_0xc184('232', 'Ch!B')], _0xc184('233', 'vw8y'))) {
|
|||
|
if (_0x37250d['ScoDf'](new Date(_0x28a585['data'][_0xc184('234', 'UOyb')]['endTimeStr'][_0xc184('235', 'N8KU')](/-/g, '/'))[_0xc184('236', 'pZgn')](), new Date()['getTime']())) {
|
|||
|
$[_0xc184('237', '(a)r')] = ![];
|
|||
|
console[_0xc184('238', 'zr[&')](_0x37250d[_0xc184('239', 'eWPk')]);
|
|||
|
messageTitle += _0xc184('23a', 'X#Sy');
|
|||
|
_0x37250d[_0xc184('23b', '0pm[')](_0x33a3ce);
|
|||
|
} else {
|
|||
|
if (_0x37250d['CQyPE'](_0x28a585[_0xc184('158', 'd**I')]['canCreate'], ![]) && _0x37250d[_0xc184('23c', 'Dsp6')](_0x28a585['data']['list'], null)) message += _0xc184('23d', 'x8iA');
|
|||
|
if (_0x28a585['data'][_0xc184('23e', 'd**I')]) {
|
|||
|
if (_0x37250d[_0xc184('23f', 'zQMN')](_0xc184('240', 'x8iA'), _0x37250d[_0xc184('241', 'p(a&')])) {
|
|||
|
$[_0xc184('242', 'Dsp6')] = _0x37250d[_0xc184('243', 'o&(u')](_0x37250d['gmEcn'](parseInt, _0x28a585['data'][_0xc184('244', 'QCpG')][_0xc184('245', 'N8KU')], 0xa), 0x1);
|
|||
|
} else {
|
|||
|
$[_0xc184('246', '(a)r')](e, _0xfcd685);
|
|||
|
}
|
|||
|
} else {
|
|||
|
$['memberCount'] = 0x0;
|
|||
|
}
|
|||
|
if ($['index'] == 0x1) {
|
|||
|
$[_0xc184('247', 'N8KU')] = !![];
|
|||
|
$[_0xc184('248', 'hmBa')] = _0x28a585[_0xc184('249', 'vw8y')][_0xc184('24a', 'd**I')][_0xc184('24b', 'eWPk')]['match'](/最多可以组建(\d+)个战队/);
|
|||
|
if ($[_0xc184('24c', 'zmGP')]) {
|
|||
|
$['teamNum'] = $['teamNum'][0x1];
|
|||
|
messageTitle += _0xc184('24d', 'eWPk') + $[_0xc184('24e', 'C9Ry')] + '个战队\x0a';
|
|||
|
}
|
|||
|
}
|
|||
|
if ($[_0xc184('24f', 'Ekn*')] && _0x37250d[_0xc184('250', 'Ekn*')]($[_0xc184('251', 'e!tR')], 0x1)) {
|
|||
|
if (_0x37250d[_0xc184('252', 'eWPk')] === _0x37250d[_0xc184('253', 'T8Gy')]) {
|
|||
|
_0x28a585 = JSON[_0xc184('254', 'xhD7')](_0x28a585);
|
|||
|
if (_0x28a585[_0xc184('255', 'z3#)')] && _0x28a585[_0xc184('256', 'Dsp6')]) {
|
|||
|
$[_0xc184('1fb', ']EUy')] = _0x28a585['data'][_0xc184('257', '0pm[')] != _0x28a585[_0xc184('17f', 'sb0O')][_0xc184('180', 'xhD7')] ? $['attrTouXiang'] = _0x28a585['data']['yunMidImageUrl'] : $[_0xc184('258', 'e!tR')] = _0x37250d[_0xc184('259', 'd**I')];
|
|||
|
} else {
|
|||
|
console['log'](_0xc184('25a', 'xhD7') + JSON[_0xc184('25b', 'vw8y')](_0x28a585));
|
|||
|
}
|
|||
|
} else {
|
|||
|
$['log'](_0xc184('25c', '0pm[') + $['signUuid']);
|
|||
|
await joinTeam();
|
|||
|
}
|
|||
|
}
|
|||
|
if ($[_0xc184('25d', 'RRnJ')]) {
|
|||
|
if (_0x28a585['data'][_0xc184('25e', '0v]z')]) {
|
|||
|
if (_0x37250d[_0xc184('25f', '(wta')](_0xc184('260', 'd**I'), 'xrThz')) {
|
|||
|
await _0x37250d[_0xc184('261', 'z3#)')](saveTeam);
|
|||
|
} else {
|
|||
|
console[_0xc184('4f', '@9Xe')](_0x2e962f['KXBDI']);
|
|||
|
return;
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0x37250d['fBqeo']('HssHc', _0x37250d['AAxGC'])) {
|
|||
|
$[_0xc184('262', 'jf%L')] = _0x28a585['data'][_0xc184('263', 'X#Sy')];
|
|||
|
messageTitle += _0xc184('264', 'O[HT') + $[_0xc184('265', 'vw8y')] + '\x0a';
|
|||
|
message += '【京东账号' + $[_0xc184('266', 'UOyb')] + _0xc184('267', 'zr[&') + $['signUuid'] + '\x0a';
|
|||
|
$[_0xc184('268', 'C3(S')](_0xc184('269', '0v]z') + $[_0xc184('26a', 'cX#!')]);
|
|||
|
} else {
|
|||
|
_0x37250d['bInDr'](_0x33a3ce);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
let _0x122201 = $request['url'][_0xc184('26b', 'C@de')]('/');
|
|||
|
console['log']('activityId:\x20' + activityId[0x1]);
|
|||
|
console[_0xc184('13c', '#MMq')](_0xc184('26c', 'T8Gy') + _0x122201[0x0] + '//' + _0x122201[0x2]);
|
|||
|
$[_0xc184('26d', '5ICC')](activityId[0x1], _0x2e962f['KksJe']);
|
|||
|
$[_0xc184('26e', 'w9jT')](_0x122201[0x0] + '//' + _0x122201[0x2], _0x2e962f[_0xc184('26f', 'N8KU')]);
|
|||
|
$[_0xc184('270', '@9Xe')]($[_0xc184('13a', 'jf%L')], '获取activityId:\x20成功🎉', _0xc184('271', 'jf%L') + activityId[0x1] + _0xc184('272', 'X#Sy') + _0x122201[0x0] + '//' + _0x122201[0x2]);
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('273', 'xhD7')](_0xc184('274', 'C@de') + JSON[_0xc184('275', 'O[HT')](_0x28a585));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
cookiesArr[_0xc184('276', '0pm[')](jdCookieNode[item]);
|
|||
|
}
|
|||
|
} catch (_0x3c19ca) {
|
|||
|
$[_0xc184('277', 'edM%')](_0x3c19ca, _0xfcd685);
|
|||
|
} finally {
|
|||
|
if (_0x37250d[_0xc184('278', 'Ekn*')](_0xc184('279', '(a)r'), _0x37250d[_0xc184('27a', 'z3#)')])) {
|
|||
|
_0x37250d[_0xc184('27b', 'pCC1')](_0x33a3ce);
|
|||
|
} else {
|
|||
|
_0x37250d[_0xc184('27c', ')]HD')](_0x33a3ce);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function saveTeam(_0x3b216f = 0x0) {
|
|||
|
var _0x18a1e4 = {
|
|||
|
'qEdqj': 'ykYYg', 'KDUxB': 'wTRIh', 'Etqlc': function (_0x2f4135, _0x4d4b43) {
|
|||
|
return _0x2f4135 > _0x4d4b43;
|
|||
|
}, 'oNEBe': _0xc184('27d', 'w9jT'), 'GReNK': _0xc184('27e', 'cX#!'), 'OmyFw': function (_0x574123, _0x452697) {
|
|||
|
return _0x574123 == _0x452697;
|
|||
|
}, 'RXMlw': function (_0x95ef01, _0x36adca) {
|
|||
|
return _0x95ef01(_0x36adca);
|
|||
|
}, 'AZpGe': _0xc184('27f', '0v]z'), 'msoXa': function (_0x4aa2c7) {
|
|||
|
return _0x4aa2c7();
|
|||
|
}, 'nhDhM': function (_0x538904, _0x47fac5) {
|
|||
|
return _0x538904 === _0x47fac5;
|
|||
|
}, 'RjKLP': _0xc184('280', 'p(a&'), 'ywkbW': function (_0x83fcbf, _0x2f6dfd) {
|
|||
|
return _0x83fcbf(_0x2f6dfd);
|
|||
|
}, 'CdWgb': function (_0x197778, _0x54d8cd, _0x193f8d) {
|
|||
|
return _0x197778(_0x54d8cd, _0x193f8d);
|
|||
|
}, 'szoMN': _0xc184('281', 'pZgn')
|
|||
|
};
|
|||
|
return new Promise(_0x26e343 => {
|
|||
|
var _0x31d091 = {
|
|||
|
'IUmhS': function (_0x489bb6) {
|
|||
|
return _0x489bb6();
|
|||
|
},
|
|||
|
'xuohr': function (_0x194de1, _0x5119d0) {
|
|||
|
return _0x194de1 === _0x5119d0;
|
|||
|
},
|
|||
|
'altKr': _0x18a1e4[_0xc184('282', 'z3#)')],
|
|||
|
'DpBNC': _0x18a1e4[_0xc184('283', 'C9Ry')],
|
|||
|
'djLqs': function (_0x135070, _0x9d6036) {
|
|||
|
return _0x18a1e4['Etqlc'](_0x135070, _0x9d6036);
|
|||
|
},
|
|||
|
'qMSox': _0x18a1e4[_0xc184('284', 'k2o4')],
|
|||
|
'SyUCo': function (_0x52c7ce, _0x514399) {
|
|||
|
return _0x52c7ce != _0x514399;
|
|||
|
},
|
|||
|
'ztflx': _0x18a1e4[_0xc184('285', '@9Xe')],
|
|||
|
'bEegh': function (_0x178e8e, _0x5e7c21) {
|
|||
|
return _0x18a1e4['OmyFw'](_0x178e8e, _0x5e7c21);
|
|||
|
},
|
|||
|
'CStnI': function (_0x507b95, _0x307e08) {
|
|||
|
return _0x18a1e4[_0xc184('286', 'GnBx')](_0x507b95, _0x307e08);
|
|||
|
},
|
|||
|
'joSpZ': _0x18a1e4['AZpGe'],
|
|||
|
'AMWWP': function (_0x1f66cd) {
|
|||
|
return _0x18a1e4[_0xc184('287', 'C3(S')](_0x1f66cd);
|
|||
|
}
|
|||
|
};
|
|||
|
if (_0x18a1e4['nhDhM'](_0x18a1e4['RjKLP'], _0x18a1e4[_0xc184('288', 'C@de')])) {
|
|||
|
let _0x5a4995 = encodeURIComponent($[_0xc184('289', 'Ch!B')]);
|
|||
|
if (_0x3b216f == 0x1) _0x5a4995 = encodeURIComponent(encodeURIComponent($[_0xc184('28a', 'sb0O')]));
|
|||
|
let _0x598a25 = _0xc184('28b', 'N8KU') + activityId + _0xc184('28c', 'UOyb') + _0x5a4995 + _0xc184('28d', 'zr[&') + _0x18a1e4[_0xc184('28e', '#MMq')](encodeURIComponent, $['attrTouXiang']);
|
|||
|
$[_0xc184('28f', ')]HD')](_0x18a1e4[_0xc184('290', 'o&(u')](taskPostUrl, _0x18a1e4['szoMN'], _0x598a25), async (_0x44a0af, _0x284baf, _0x3b79c1) => {
|
|||
|
if (_0x31d091['xuohr'](_0x31d091['altKr'], _0x31d091['DpBNC'])) {
|
|||
|
if (safeGet(_0x3b79c1)) {
|
|||
|
_0x3b79c1 = JSON[_0xc184('291', 'T8Gy')](_0x3b79c1);
|
|||
|
if (_0x3b79c1[_0xc184('292', 'e!tR')] && _0x3b79c1[_0xc184('293', 'e!tR')]) {
|
|||
|
$['Pin'] = _0x3b79c1[_0xc184('294', 'UOyb')][_0xc184('295', 'x8iA')];
|
|||
|
} else {
|
|||
|
console[_0xc184('296', ']EUy')]('异常3:' + JSON[_0xc184('98', '(a)r')](_0x3b79c1));
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
try {
|
|||
|
if (_0x44a0af) {
|
|||
|
console[_0xc184('201', 'o&(u')]('' + JSON[_0xc184('7', 'C9Ry')](_0x44a0af));
|
|||
|
console[_0xc184('297', 'vw8y')]($[_0xc184('8a', 'O[HT')] + '\x206\x20API请求失败,请检查网路重试');
|
|||
|
} else {
|
|||
|
if (safeGet(_0x3b79c1)) {
|
|||
|
_0x3b79c1 = JSON[_0xc184('298', 'w9jT')](_0x3b79c1);
|
|||
|
if (_0x3b79c1['result'] && _0x3b79c1[_0xc184('299', '#6(@')]) {
|
|||
|
message += _0xc184('29a', 'QCpG') + $[_0xc184('29b', 'vw8y')] + '】\x20创建队伍id:\x20' + _0x3b79c1['data']['signUuid'] + '\x0a';
|
|||
|
console[_0xc184('29c', 'Dsp6')](_0xc184('29d', 'yl6y') + _0x3b79c1['data'][_0xc184('29e', 'p(a&')]);
|
|||
|
$['signUuid'] = _0x3b79c1[_0xc184('1fc', 'C9Ry')][_0xc184('29f', 'X([P')];
|
|||
|
messageTitle += _0xc184('2a0', 'edM%') + $['signUuid'] + '\x0a';
|
|||
|
} else {
|
|||
|
console[_0xc184('e7', 'pZgn')]('异常6:' + JSON[_0xc184('152', 'hmBa')](_0x3b79c1));
|
|||
|
if (_0x31d091[_0xc184('2a1', '(a)r')](_0x3b79c1['errorMessage']['indexOf'](_0x31d091[_0xc184('2a2', 'jf%L')]), -0x1) && _0x31d091[_0xc184('2a3', 'UOyb')](_0x3b216f, 0x3)) {
|
|||
|
await joinShop();
|
|||
|
await saveTeam(0x3);
|
|||
|
} else if (_0x31d091[_0xc184('2a4', 'Ch!B')](_0x3b79c1['errorMessage'][_0xc184('2a5', '0v]z')](_0x31d091['ztflx']), -0x1) && _0x31d091['bEegh'](_0x3b216f, 0x0)) {
|
|||
|
await _0x31d091[_0xc184('2a6', 'xhD7')](saveTeam, 0x1);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x51bd62) {
|
|||
|
$[_0xc184('2a7', 'X([P')](_0x51bd62, _0x284baf);
|
|||
|
} finally {
|
|||
|
if (_0x31d091[_0xc184('2a8', 'o&(u')](_0xc184('2a9', 'edM%'), _0x31d091['joSpZ'])) {
|
|||
|
$[_0xc184('2aa', 'sb0O')] = ![];
|
|||
|
console[_0xc184('2ab', 'edM%')]('活动结束');
|
|||
|
messageTitle += _0xc184('2ac', 'jf%L');
|
|||
|
_0x31d091[_0xc184('2ad', 'C3(S')](_0x26e343);
|
|||
|
} else {
|
|||
|
_0x31d091['AMWWP'](_0x26e343);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
} else {
|
|||
|
if (data && safeGet(data)) {
|
|||
|
data = JSON[_0xc184('18c', 'X#Sy')](data);
|
|||
|
if (data[_0xc184('299', '#6(@')]) {
|
|||
|
$[_0xc184('2ae', 'pZgn')] = data[_0xc184('293', 'e!tR')][_0xc184('2af', 'pCC1')];
|
|||
|
$[_0xc184('2b0', 'pCC1')] = data['data'][_0xc184('175', 's6me')];
|
|||
|
$[_0xc184('2b1', 'd**I')] = data[_0xc184('2b2', 'zmGP')]['shopName'];
|
|||
|
} else {
|
|||
|
console[_0xc184('2a', '0v]z')](_0xc184('2b3', '#MMq') + JSON[_0xc184('1a5', 'd**I')](data));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function joinTeam(_0x5d5fb6 = 0x0) {
|
|||
|
var _0x2e7fb6 = {
|
|||
|
'JmwET': function (_0x5bf22b) {
|
|||
|
return _0x5bf22b();
|
|||
|
},
|
|||
|
'Dqfmb': 'jump',
|
|||
|
'SjIVq': function (_0x3bc4d2, _0x3621dd) {
|
|||
|
return _0x3bc4d2(_0x3621dd);
|
|||
|
},
|
|||
|
'OBVfY': function (_0x4af82, _0x44f335) {
|
|||
|
return _0x4af82(_0x44f335);
|
|||
|
},
|
|||
|
'XbfPg': 'CookieJD2',
|
|||
|
'YXQDR': function (_0x39271c, _0x24eb4f) {
|
|||
|
return _0x39271c === _0x24eb4f;
|
|||
|
},
|
|||
|
'UwsYK': function (_0x273f89, _0x184ff3) {
|
|||
|
return _0x273f89 !== _0x184ff3;
|
|||
|
},
|
|||
|
'NaGLB': _0xc184('2b4', 'd**I'),
|
|||
|
'XCUBz': _0xc184('2b5', 'p(a&'),
|
|||
|
'pbodv': _0xc184('2b6', 'edM%'),
|
|||
|
'kXXSH': _0xc184('2b7', 'cX#!'),
|
|||
|
'JWqgf': function (_0x286e2f, _0x22cc52) {
|
|||
|
return _0x286e2f > _0x22cc52;
|
|||
|
},
|
|||
|
'MzDCI': _0xc184('2b8', 'UOyb'),
|
|||
|
'LwgKu': _0xc184('2b9', 'sb0O'),
|
|||
|
'ogEwv': _0xc184('2ba', 'eWPk'),
|
|||
|
'lmwud': _0xc184('2bb', 'zQMN'),
|
|||
|
'iysGP': function (_0x59c48c, _0xf7148b) {
|
|||
|
return _0x59c48c == _0xf7148b;
|
|||
|
},
|
|||
|
'BjBPi': function (_0x32c296, _0x2285ff) {
|
|||
|
return _0x32c296(_0x2285ff);
|
|||
|
},
|
|||
|
'wmOvq': function (_0x98781, _0x48e34e, _0x332cc4) {
|
|||
|
return _0x98781(_0x48e34e, _0x332cc4);
|
|||
|
},
|
|||
|
'gKnTl': '/wxTeam/saveMember'
|
|||
|
};
|
|||
|
return new Promise(_0x3471e7 => {
|
|||
|
var _0x1464df = {
|
|||
|
'aukpX': function (_0x303ef4) {
|
|||
|
return _0x2e7fb6['JmwET'](_0x303ef4);
|
|||
|
},
|
|||
|
'OZxWv': _0x2e7fb6['Dqfmb'],
|
|||
|
'Fnnzp': function (_0x13e770, _0x476714) {
|
|||
|
return _0x2e7fb6[_0xc184('2bc', 'C9Ry')](_0x13e770, _0x476714);
|
|||
|
},
|
|||
|
'Bvqjd': function (_0x224fd1, _0x505a30) {
|
|||
|
return _0x224fd1 === _0x505a30;
|
|||
|
},
|
|||
|
'ykEBM': function (_0x69e974, _0x383694) {
|
|||
|
return _0x2e7fb6[_0xc184('2bd', 'C9Ry')](_0x69e974, _0x383694);
|
|||
|
},
|
|||
|
'rouKD': _0x2e7fb6[_0xc184('2be', 'w9jT')],
|
|||
|
'GasZA': function (_0x24dfff, _0x5e9ca2) {
|
|||
|
return _0x2e7fb6[_0xc184('2bf', 'UOyb')](_0x24dfff, _0x5e9ca2);
|
|||
|
},
|
|||
|
'chZdH': _0xc184('2c0', 'zQMN'),
|
|||
|
'HfBpS': function (_0x1f2654, _0xf41321) {
|
|||
|
return _0x2e7fb6[_0xc184('2c1', '(wta')](_0x1f2654, _0xf41321);
|
|||
|
},
|
|||
|
'SKyBg': _0x2e7fb6[_0xc184('2c2', 'C3(S')],
|
|||
|
'OvHKo': _0x2e7fb6[_0xc184('2c3', 'zr[&')],
|
|||
|
'jdDhm': _0x2e7fb6[_0xc184('2c4', 'zmGP')],
|
|||
|
'JrtJi': _0xc184('2c5', 'pZgn'),
|
|||
|
'aKHWA': _0x2e7fb6[_0xc184('2c6', '0v]z')],
|
|||
|
'GdMew': function (_0x1f5942, _0x1a1377) {
|
|||
|
return _0x2e7fb6['JWqgf'](_0x1f5942, _0x1a1377);
|
|||
|
},
|
|||
|
'UXMmS': _0x2e7fb6[_0xc184('2c7', 'k2o4')],
|
|||
|
'auroB': function (_0x471258, _0x429888) {
|
|||
|
return _0x471258 !== _0x429888;
|
|||
|
},
|
|||
|
'ZTNWe': _0x2e7fb6['LwgKu'],
|
|||
|
'NOhZx': _0x2e7fb6[_0xc184('2c8', 'mIrc')]
|
|||
|
};
|
|||
|
if (_0x2e7fb6[_0xc184('2c9', 'C9Ry')](_0x2e7fb6[_0xc184('2ca', 'pCC1')], 'CyTRJ')) {
|
|||
|
_0x1464df[_0xc184('2cb', '#6(@')](_0x3471e7);
|
|||
|
} else {
|
|||
|
let _0x1b200c = _0x2e7fb6[_0xc184('2cc', 'pCC1')](encodeURIComponent, encodeURIComponent($[_0xc184('2cd', 'Ekn*')]));
|
|||
|
if (_0x2e7fb6[_0xc184('2ce', 'jf%L')](_0x5d5fb6, 0x1)) _0x1b200c = encodeURIComponent($['Pin']);
|
|||
|
let _0x1bd3fe = _0xc184('2cf', 'zmGP') + activityId + '&signUuid=' + $[_0xc184('2d0', '(wta')] + '&pin=' + _0x1b200c + _0xc184('2d1', 'z3#)') + _0x2e7fb6[_0xc184('2d2', ']EUy')](encodeURIComponent, $[_0xc184('2d3', 'pCC1')]);
|
|||
|
$[_0xc184('2d4', 'xhD7')](_0x2e7fb6[_0xc184('2d5', 'C@de')](taskPostUrl, _0x2e7fb6['gKnTl'], _0x1bd3fe), async (_0x163909, _0x39e7e5, _0x32054d) => {
|
|||
|
var _0x107dc1 = {
|
|||
|
'enJXV': function (_0x5f3ea1, _0x5de5a9) {
|
|||
|
return _0x1464df['Bvqjd'](_0x5f3ea1, _0x5de5a9);
|
|||
|
}, 'mFrLD': 'retcode', 'BdZDw': function (_0x5537ed, _0x754f0d) {
|
|||
|
return _0x1464df[_0xc184('2d6', 'zQMN')](_0x5537ed, _0x754f0d);
|
|||
|
}, 'KCOWl': _0x1464df[_0xc184('2d7', 'x8iA')]
|
|||
|
};
|
|||
|
if (_0x1464df[_0xc184('2d8', 'N8KU')](_0x1464df[_0xc184('2d9', 'Dsp6')], _0x1464df['chZdH'])) {
|
|||
|
try {
|
|||
|
if (_0x1464df['HfBpS'](_0x1464df[_0xc184('2da', 'z3#)')], _0x1464df[_0xc184('2db', '#MMq')])) {
|
|||
|
if (_0x163909) {
|
|||
|
console['log']('' + JSON[_0xc184('2dc', 'cX#!')](_0x163909));
|
|||
|
console['log']($[_0xc184('2dd', 'N8KU')] + '\x207\x20API请求失败,请检查网路重试');
|
|||
|
} else {
|
|||
|
if (_0x1464df['GasZA'](_0x1464df[_0xc184('2de', 'Dsp6')], 'Wndsg')) {
|
|||
|
if (_0x1464df[_0xc184('2df', 's6me')](safeGet, _0x32054d)) {
|
|||
|
_0x32054d = JSON[_0xc184('2e0', 'Ch!B')](_0x32054d);
|
|||
|
if (_0x32054d[_0xc184('2e1', 'X#Sy')] && _0x32054d[_0xc184('2e2', 'pZgn')]) {
|
|||
|
message += _0xc184('2e3', 'xhD7') + $[_0xc184('2e4', '(wta')] + _0xc184('2e5', 'mIrc');
|
|||
|
$['log'](_0xc184('2e6', ')]HD'));
|
|||
|
} else {
|
|||
|
if (_0x32054d['errorMessage'][_0xc184('2a5', '0v]z')](_0x1464df[_0xc184('2e7', 'GnBx')]) > -0x1 && _0x5d5fb6 != 0x3) {
|
|||
|
await joinShop();
|
|||
|
await _0x1464df[_0xc184('2e8', 'z3#)')](joinTeam, 0x3);
|
|||
|
} else if (_0x32054d['errorMessage']['indexOf'](_0x1464df['aKHWA']) > -0x1) {
|
|||
|
$[_0xc184('2e9', '@9Xe')] = !![];
|
|||
|
} else if (_0x1464df[_0xc184('2ea', 'Ekn*')](_0x32054d[_0xc184('2eb', 'd**I')][_0xc184('2ec', 'O[HT')](_0x1464df['UXMmS']), -0x1) && _0x5d5fb6 == 0x0) {
|
|||
|
if (_0x1464df[_0xc184('2ed', '(a)r')](_0xc184('2ee', '5ICC'), _0x1464df['ZTNWe'])) {
|
|||
|
await joinTeam(0x1);
|
|||
|
} else {
|
|||
|
if (_0x32054d) {
|
|||
|
_0x32054d = JSON[_0xc184('2ef', '5ICC')](_0x32054d);
|
|||
|
if (_0x107dc1[_0xc184('2f0', '5ICC')](_0x32054d[_0x107dc1['mFrLD']], 0xd)) {
|
|||
|
$[_0xc184('2f1', '@9Xe')] = ![];
|
|||
|
return;
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('1a3', 'd**I')](_0xc184('2f2', 'o&(u'));
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
if (_0xc184('2f3', 'C9Ry') !== _0x1464df[_0xc184('2f4', 'Ch!B')]) {
|
|||
|
let _0xf6b9ed = $[_0xc184('2f5', '#MMq')](_0xc184('2f6', '(a)r')) || '[]';
|
|||
|
_0xf6b9ed = _0x107dc1[_0xc184('2f7', 'Ekn*')](jsonParse, _0xf6b9ed);
|
|||
|
cookiesArr = _0xf6b9ed[_0xc184('2f8', 'o&(u')](_0x2038e6 => _0x2038e6[_0xc184('2f9', 'o&(u')]);
|
|||
|
cookiesArr[_0xc184('2fa', ')]HD')]();
|
|||
|
cookiesArr['push'](...[$[_0xc184('4', 'X([P')](_0x107dc1[_0xc184('2fb', 'hmBa')]), $[_0xc184('1c1', 'z3#)')](_0xc184('2fc', 'GnBx'))]);
|
|||
|
cookiesArr[_0xc184('2fd', '#MMq')]();
|
|||
|
cookiesArr = cookiesArr[_0xc184('2fe', 'QCpG')](_0x4007cc => _0x4007cc !== '' && _0x4007cc !== null && _0x4007cc !== undefined);
|
|||
|
} else {
|
|||
|
console[_0xc184('184', 'mIrc')]('异常7:' + JSON['stringify'](_0x32054d));
|
|||
|
message += _0xc184('2ff', 'z3#)') + $[_0xc184('300', 'z3#)')] + '】\x20' + _0x32054d[_0xc184('301', '@9Xe')] + '\x0a';
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
let _0x2bffc3 = {
|
|||
|
'category': _0x1464df['OZxWv'],
|
|||
|
'des': _0xc184('302', 'Dsp6'),
|
|||
|
'url': url[_0xc184('303', 'X([P')](0x7)
|
|||
|
};
|
|||
|
openUrl = _0xc184('304', 'X#Sy') + _0x1464df['Fnnzp'](encodeURIComponent, JSON['stringify'](_0x2bffc3));
|
|||
|
}
|
|||
|
}
|
|||
|
} else {
|
|||
|
console['log'](e);
|
|||
|
$['msg']($[_0xc184('305', 'hmBa')], '', _0xc184('306', 'zQMN'));
|
|||
|
return [];
|
|||
|
}
|
|||
|
} catch (_0x3b40cd) {
|
|||
|
$[_0xc184('307', '5ICC')](_0x3b40cd, _0x39e7e5);
|
|||
|
} finally {
|
|||
|
_0x3471e7();
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('308', 'C@de')](_0xc184('309', 'w9jT') + JSON[_0xc184('30a', 'edM%')](_0x32054d));
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function taskPostUrl(_0x4e85b6, _0x1f0e72) {
|
|||
|
var _0x291590 = {
|
|||
|
'DOPQX': 'application/json',
|
|||
|
'KRtvl': _0xc184('30b', 'cX#!'),
|
|||
|
'wPIUL': 'application/x-www-form-urlencoded',
|
|||
|
'INIZv': function (_0xfffa53, _0x3e82ed) {
|
|||
|
return _0xfffa53 + _0x3e82ed;
|
|||
|
},
|
|||
|
'QMayw': _0xc184('30c', 'GnBx'),
|
|||
|
'YvGpY': _0xc184('30d', 'jf%L')
|
|||
|
};
|
|||
|
return {
|
|||
|
'url': '' + activityUrl + _0x4e85b6,
|
|||
|
'body': _0x1f0e72,
|
|||
|
'headers': {
|
|||
|
'Accept': _0x291590[_0xc184('30e', 'UOyb')],
|
|||
|
'Accept-Encoding': _0x291590['KRtvl'],
|
|||
|
'Accept-Language': 'zh-cn',
|
|||
|
'Connection': 'keep-alive',
|
|||
|
'Content-Type': _0x291590[_0xc184('30f', 'edM%')],
|
|||
|
'Referer': activityUrl + _0xc184('310', 'k2o4') + activityId,
|
|||
|
'Cookie': _0x291590[_0xc184('311', 'pZgn')](cookie, activityCookie),
|
|||
|
'User-Agent': $['isNode']() ? process[_0xc184('312', 'yl6y')][_0xc184('313', 'w9jT')] ? process[_0xc184('314', 'o&(u')][_0xc184('315', 'Ch!B')] : _0x291590[_0xc184('316', 'w9jT')] : $[_0xc184('317', 'o&(u')](_0xc184('318', 'pCC1')) ? $[_0xc184('319', 'zQMN')](_0x291590[_0xc184('31a', 'QCpG')]) : _0xc184('31b', 'RRnJ')
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
function taskUrl(_0x4a2b20, _0x290f26) {
|
|||
|
var _0x10c7c5 = {
|
|||
|
'jjdtV': _0xc184('31c', 'zr[&'),
|
|||
|
'vbcMe': _0xc184('31d', '0v]z'),
|
|||
|
'FPOpB': 'jdapp;iPhone;9.4.0;13.1.2;2f7578cb634065f9beae94d013f172e197d62283;network/wifi;ADID/7B411CD9-D62C-425B-B083-9AFC49B94228;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone8,1;addressid/2474290248;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;pv/80.1;apprpd/Home_Main;ref/JDMainPageViewController;psq/1;ads/;psn/2f7578cb634065f9beae94d013f172e197d62283|138;jdv/0|kong|t_1000170135|tuiguang|notset|1611219732062|1611219732;adk/;app_device/IOS;pap/JA2015_311210|9.4.0|IOS\x2013.1.2;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_1_2\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1',
|
|||
|
'HPNEy': _0xc184('31e', 'UOyb')
|
|||
|
};
|
|||
|
return {
|
|||
|
'url': _0xc184('31f', 'O[HT') + _0x4a2b20,
|
|||
|
'body': _0x290f26,
|
|||
|
'headers': {
|
|||
|
'Accept': _0xc184('320', 'k2o4'),
|
|||
|
'Accept-Encoding': _0x10c7c5[_0xc184('321', 'x8iA')],
|
|||
|
'Accept-Language': _0xc184('322', 'k2o4'),
|
|||
|
'Connection': 'keep-alive',
|
|||
|
'Content-Type': _0x10c7c5[_0xc184('323', 'RRnJ')],
|
|||
|
'Host': 'api.m.jd.com',
|
|||
|
'Cookie': cookie,
|
|||
|
'User-Agent': $[_0xc184('324', 'p(a&')]() ? process[_0xc184('325', 'X#Sy')][_0xc184('326', 'xhD7')] ? process[_0xc184('327', 'zr[&')]['JD_USER_AGENT'] : _0x10c7c5['FPOpB'] : $['getdata'](_0x10c7c5[_0xc184('328', 'edM%')]) ? $['getdata'](_0x10c7c5['HPNEy']) : _0x10c7c5[_0xc184('329', 'jf%L')]
|
|||
|
}
|
|||
|
};
|
|||
|
}
|
|||
|
|
|||
|
function TotalBean() {
|
|||
|
var _0x5f18a7 = {
|
|||
|
'RLKFg': function (_0x211d34, _0x29f52d) {
|
|||
|
return _0x211d34 === _0x29f52d;
|
|||
|
},
|
|||
|
'ilcee': 'yLtJL',
|
|||
|
'mImmL': 'BywBZ',
|
|||
|
'rivFo': _0xc184('32a', 'X([P'),
|
|||
|
'hBFDV': _0xc184('32b', 'k2o4'),
|
|||
|
'gIPNt': 'gzip,\x20deflate,\x20br',
|
|||
|
'kEzFL': 'zh-cn',
|
|||
|
'WvVqS': 'https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2',
|
|||
|
'qJLtW': _0xc184('32c', 'x8iA')
|
|||
|
};
|
|||
|
return new Promise(async _0x4d5146 => {
|
|||
|
var _0x1d14db = {
|
|||
|
'ugogt': function (_0x2f91cc, _0x5aefb4) {
|
|||
|
return _0x5f18a7[_0xc184('32d', 'C3(S')](_0x2f91cc, _0x5aefb4);
|
|||
|
}, 'qmeoK': _0x5f18a7['ilcee']
|
|||
|
};
|
|||
|
if (_0x5f18a7[_0xc184('32e', '&hsV')] === _0xc184('32f', 'yl6y')) {
|
|||
|
const _0x25151 = {
|
|||
|
'url': _0xc184('330', 'T8Gy'),
|
|||
|
'headers': {
|
|||
|
'Accept': _0x5f18a7['rivFo'],
|
|||
|
'Content-Type': _0x5f18a7[_0xc184('331', 'X([P')],
|
|||
|
'Accept-Encoding': _0x5f18a7[_0xc184('332', 'mIrc')],
|
|||
|
'Accept-Language': _0x5f18a7[_0xc184('333', 'C3(S')],
|
|||
|
'Connection': _0xc184('334', '#MMq'),
|
|||
|
'Cookie': cookie,
|
|||
|
'Referer': _0x5f18a7[_0xc184('335', 'cX#!')],
|
|||
|
'User-Agent': $[_0xc184('336', 'C3(S')]() ? process[_0xc184('337', 'x8iA')][_0xc184('338', '#6(@')] ? process[_0xc184('339', 'Ekn*')][_0xc184('33a', 'sb0O')] : _0x5f18a7['qJLtW'] : $['getdata'](_0xc184('33b', 'Ekn*')) ? $[_0xc184('33c', 'x8iA')](_0xc184('33d', '0v]z')) : 'jdapp;iPhone;9.4.0;13.1.2;2f7578cb634065f9beae94d013f172e197d62283;network/wifi;ADID/7B411CD9-D62C-425B-B083-9AFC49B94228;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone8,1;addressid/2474290248;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;pv/80.1;apprpd/Home_Main;ref/JDMainPageViewController;psq/1;ads/;psn/2f7578cb634065f9beae94d013f172e197d62283|138;jdv/0|kong|t_1000170135|tuiguang|notset|1611219732062|1611219732;adk/;app_device/IOS;pap/JA2015_311210|9.4.0|IOS\x2013.1.2;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2013_1_2\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1'
|
|||
|
}
|
|||
|
};
|
|||
|
$['post'](_0x25151, (_0x6dc3a7, _0x542754, _0x51b420) => {
|
|||
|
try {
|
|||
|
if (_0x6dc3a7) {
|
|||
|
console[_0xc184('33e', 'x8iA')]('' + JSON[_0xc184('1b5', 'k2o4')](_0x6dc3a7));
|
|||
|
console[_0xc184('33f', 'z3#)')]($[_0xc184('226', '0v]z')] + '\x20API请求失败,请检查网路重试');
|
|||
|
} else {
|
|||
|
if (_0x51b420) {
|
|||
|
_0x51b420 = JSON[_0xc184('340', 'k2o4')](_0x51b420);
|
|||
|
if (_0x51b420[_0xc184('341', 'T8Gy')] === 0xd) {
|
|||
|
$['isLogin'] = ![];
|
|||
|
return;
|
|||
|
}
|
|||
|
} else {
|
|||
|
console[_0xc184('342', 'p(a&')](_0xc184('343', 'vw8y'));
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x36cdb2) {
|
|||
|
$[_0xc184('344', 'yl6y')](_0x36cdb2, _0x542754);
|
|||
|
} finally {
|
|||
|
if (_0x1d14db['ugogt'](_0x1d14db[_0xc184('345', 'xhD7')], _0xc184('346', 'z3#)'))) {
|
|||
|
_0x4d5146();
|
|||
|
} else {
|
|||
|
console[_0xc184('53', 'Ch!B')]('' + JSON['stringify'](_0x6dc3a7));
|
|||
|
console['log']($[_0xc184('347', 'p(a&')] + '\x20cookie\x20API请求失败,请检查网路重试');
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
} else {
|
|||
|
$['msg']($[_0xc184('348', 'eWPk')], _0xc184('349', '(a)r'), '');
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
function safeGet(_0x480f9b) {
|
|||
|
var _0x13119b = {
|
|||
|
'ygwmJ': _0xc184('34a', ']EUy'), 'ApeVF': function (_0xed43a8, _0x3ca044) {
|
|||
|
return _0xed43a8 !== _0x3ca044;
|
|||
|
}, 'JQQzU': _0xc184('34b', 'UOyb')
|
|||
|
};
|
|||
|
try {
|
|||
|
if (typeof JSON['parse'](_0x480f9b) == _0x13119b[_0xc184('34c', 'X([P')]) {
|
|||
|
if (_0x13119b['ApeVF']('XZrxz', _0x13119b[_0xc184('34d', 'cX#!')])) {
|
|||
|
return !![];
|
|||
|
} else {
|
|||
|
$['logErr'](e, resp);
|
|||
|
}
|
|||
|
}
|
|||
|
} catch (_0x1f914e) {
|
|||
|
console[_0xc184('297', 'vw8y')](_0x1f914e);
|
|||
|
console[_0xc184('273', 'xhD7')](_0xc184('34e', 'Ch!B'));
|
|||
|
return ![];
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
function jsonParse(_0x9ce96) {
|
|||
|
var _0x4caaed = {
|
|||
|
'hsSBh': function (_0x35b704, _0x4370f9) {
|
|||
|
return _0x35b704 == _0x4370f9;
|
|||
|
}, 'kPDpU': _0xc184('34f', 'C9Ry'), 'QLVwa': function (_0x1f14f6, _0x30cbf9) {
|
|||
|
return _0x1f14f6 === _0x30cbf9;
|
|||
|
}, 'cSaqy': 'tLDGs', 'rsIgw': _0xc184('350', 'Ekn*')
|
|||
|
};
|
|||
|
if (_0x4caaed['hsSBh'](typeof _0x9ce96, _0x4caaed[_0xc184('351', 'GnBx')])) {
|
|||
|
try {
|
|||
|
if (_0x4caaed[_0xc184('352', 'z3#)')](_0x4caaed[_0xc184('353', 'C9Ry')], _0x4caaed[_0xc184('354', 'd**I')])) {
|
|||
|
return JSON[_0xc184('355', 'cX#!')](_0x9ce96);
|
|||
|
} else {
|
|||
|
console[_0xc184('201', 'o&(u')](_0xc184('356', '&hsV') + JSON[_0xc184('185', 'UOyb')](data));
|
|||
|
}
|
|||
|
} catch (_0x3cda17) {
|
|||
|
console['log'](_0x3cda17);
|
|||
|
$[_0xc184('357', 'w9jT')]($[_0xc184('14e', 'cX#!')], '', _0x4caaed[_0xc184('358', 'Ch!B')]);
|
|||
|
return [];
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
function GetCookie() {
|
|||
|
var _0x15dc54 = {
|
|||
|
'DbpkS': function (_0x425e8e, _0x56bb71) {
|
|||
|
return _0x425e8e > _0x56bb71;
|
|||
|
}, 'WtvLn': '/wxTeam/shopInfo', 'lYaUQ': function (_0x4565ab, _0x198056) {
|
|||
|
return _0x4565ab === _0x198056;
|
|||
|
}, 'EyNXl': _0xc184('359', 'e!tR')
|
|||
|
};
|
|||
|
if (_0x15dc54[_0xc184('35a', '@9Xe')]($request['url'][_0xc184('35b', 'e!tR')](_0x15dc54[_0xc184('35c', 'C@de')]), -0x1)) {
|
|||
|
if ($request['body']) {
|
|||
|
let _0x20d309 = $request['body']['match'](/activityId=([a-zA-Z0-9._-]+)/);
|
|||
|
if (_0x20d309) {
|
|||
|
if (_0x15dc54['lYaUQ']('pLSKw', _0xc184('35d', 'jf%L'))) {
|
|||
|
$[_0xc184('1ef', '&hsV')](data);
|
|||
|
} else {
|
|||
|
let _0x3ed1f9 = $request[_0xc184('35e', '&hsV')][_0xc184('35f', 'zr[&')]('/');
|
|||
|
console[_0xc184('360', 'X#Sy')](_0xc184('361', 'N8KU') + _0x20d309[0x1]);
|
|||
|
console['log'](_0xc184('362', 'X([P') + _0x3ed1f9[0x0] + '//' + _0x3ed1f9[0x2]);
|
|||
|
$[_0xc184('363', '(wta')](_0x20d309[0x1], _0x15dc54[_0xc184('364', 'X([P')]);
|
|||
|
$['setdata'](_0x3ed1f9[0x0] + '//' + _0x3ed1f9[0x2], _0xc184('365', 'Ekn*'));
|
|||
|
$[_0xc184('366', 'RRnJ')]($['name'], _0xc184('367', '5ICC'), 'activityId:' + _0x20d309[0x1] + _0xc184('368', 'GnBx') + _0x3ed1f9[0x0] + '//' + _0x3ed1f9[0x2]);
|
|||
|
}
|
|||
|
} else {
|
|||
|
$[_0xc184('369', 'mIrc')]($['name'], _0xc184('36a', '@9Xe'), '');
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
};_0xodx = '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)
|
|||
|
}
|