1 Star 0 Fork 3

sltalex/i-chenzhe

forked from mengnimen/i-chenzhe 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
z_mother_jump.js 61.44 KB
一键复制 编辑 原始数据 按行查看 历史
陈柘 提交于 2021-03-21 21:01 . Update z_mother_jump.js
/*
母婴-跳一跳
活动入口: 首页-母婴馆-跳一跳
新手写脚本,难免有bug,能用且用。
已支持IOS双京东账号,Node.js支持N个京东账号
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
============Quantumultx===============
[task_local]
#母婴-跳一跳
5 8,14,20 17-25 3 * https://raw.githubusercontent.com/i-chenzhe/qx/main/z_mother_jump.js, tag=母婴-跳一跳, enabled=true
================Loon==============
[Script]
cron "5 8,14,20 17-25 3 *" script-path=https://raw.githubusercontent.com/i-chenzhe/qx/main/z_mother_jump.js,tag=母婴-跳一跳
===============Surge=================
母婴-跳一跳 = type=cron,cronexp="5 8,14,20 17-25 3 *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/i-chenzhe/qx/main/z_mother_jump.js
============小火箭=========
母婴-跳一跳 = type=cron,script-path=https://raw.githubusercontent.com/i-chenzhe/qx/main/z_mother_jump.js, cronexpr="5 8,14,20 17-25 3 *", timeout=3600, enable=true
*/
const $ = new Env('母婴跳一跳');
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const notify = $.isNode() ? require('./sendNotify') : '';
const path = $.isNode() ? require('path') : '';
let cookiesArr = [], cookie = '', message = '';
let helpAuthor = true;//为作者助力的开关
const ACT_API = 'https://sendbeans.jd.com/jump/';
if ($.isNode()) {
Object.keys(jdCookieNode).forEach((item) => {
cookiesArr.push(jdCookieNode[item])
})
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
} else {
let cookiesData = $.getdata('CookiesJD') || "[]";
cookiesData = JSON.parse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => !!item);
}
$.log('脚本版本 v0.4\n更新时间:2021-03-21 21:00\n仓库:https://www.github.com/i-chenzhe/qx');
var _0xodh='jsjiami.com.v6',_0x5df7=[_0xodh,'ecK9w7PCiRY=','cEXCoFEY','dcONwpg8dw==','wqhgwrMi','fcKrw4XCjBw=','YnDCn3Uv','WGxz','5pCF5YuZ5Lq9','w60/DHA=','JMKSGwvDnHbCtibDtw==','54Ozw4vlvJLlia7moorml4M=','b31OwpAKw4/Dpw==','Sxoewqk=','wpbCo8KPQMOqwqrCjgA=','w4/DvcOGw4Bd','wolzBiNp','w61Wwo5zfw==','wpI2D8Kxfw==','w63DhsOjw5A=','w6TDiF0bw4c=','UFvCmkcm','w7HDm10Hw5DCnXHDuUM=','5oqr6KGE5Lub5Yqs','w4TCshLCjMOVwrzCsw==','L1jCnA==','wqQEw4LDunxfbsKuGl/DuMKb','w5tLwoLCn38=','wps/JSA=','wovCtiHCg8Ks','wq7CkMObw4XDjg==','OsKUDTw=','w6U7FnZwwqc=','a2bCmUQp','w5PCpgXCjg==','YQRywo8u','OsOHVMOSBw==','w7HDtVd3','w7zDisOkw5dXw5M=','RUjClFg8','WBoDwrw=','bMOvRg==','acOMwqsJYDg=','w4hAwrV1','wqbCmBfCssKrfQI=','5Lir5Lqg6L6Y5ZqS5Lmw56uI5pea5oyb','wogvwrHDnGvCk8OgdzVMfy/DosOLUHbCtsKrM11zw7LDtxHDrxfCosKnwoLDtMODwqJ5w73Cs8O5Vg==','bcOpwo42fw==','wprDmMObwqtA','wrMBWcO8w44=','w6FUwp56QQ==','w6/DjMOzw4F3w6HDgg==','BkPCjBzDpQ==','acK3w4BJVQ==','OFfDs2gA','cMOJwo4KUg==','6Lym5rOA5p2S5pKk6aqF5a+S55ie5p+S5L+F772a56uL5ZG85YWD5bO56K2h','MHfDqnI=','5by+5aSv5oiI5b2z','dcKtX8KEMQ==','wooew6rDk0k=','wqhtU3nCjQbCsxbCtQQu','NcKIUho=','wrXCghzCocKOfx3CmA==','UsO+wpI6YQ==','wrZLwoYcwpk=','cXdjFSY=','w7/DoU5mw7vDjcO8HsOfDlMHPGhqXcO1w6Y=','VMO/WMKHM8KmwqfDusOWACLDlMKAfMK7NUF3','f8Oqw58LaMKZVsKu','WggPwrrCr2klNg==','RsKNZcKUJMK4wpNFY8KDQw==','WsOrQcKW','wrfCocOIw4PDinfCu8Oow7VuCg==','VTETwofCkQ==','fcKIw7xbOcO4w4kw','wpPCiA/ClsK/','dMKcw6fCqQ4=','PnfDolozcg==','WS08wqfCsw==','f8KSw6DCtws=','w4LDukcaw6A=','wqttVA==','BcKrFnbDpw==','RRQDwqbCq2IuOxfDrA==','wq4fwovDgHU=','w77DrlYnw4M=','eMOBw60xUw==','5oin6KOP5LuO5YiH','YlfCm1Mtf1Y=','wqV4Q3jClA==','wq0RPF/CoQ==','DcK3wqrDjsK2','cMKPRMKIEQ==','TcO/VsKUF8K2wqA=','LMOsUg==','5oi+6KGL5Lm45Yik5oqF5Yu+','wqTCu8OJw4U=','w7HDhsO3w6Fsw6U=','wp4LU8O6w7A=','b8OLwq8PXCXCghU=','UsKLwqk=','55eX5omp5L6w5oCu6Iyg5Y6w5oij5Yi4wo/mrI/ov503','wpUowqDDnlHDh8KpNw==','dMORwqkWWyrCiR8=','aeW9l+Wll1o=','XnZ5KRXDqjRYPkrCmcO4w7nDssOXw5rDg8Op','wq7CkBTCtg==','EOi0vuS4vOi1kcKn5byS5Ym25L2W572S77+BwpE=','asKOw79PJMO3w5w0','wqIDw4LDp2t8f8KaG1fDu8KwwrvCjg==','MeagnsOy5pG36au45a2c5qyE5pWi77+R','wrjDtcO6woFWOl4c','fcKuwq8Zw7s=','w6DDp0Zkw7PDgMOuGA==','wp0UKcKRUMOsw67Cr8KtP8KiPMK7wok=','woPCvzfCkMKI','TA3DvsK8GEYtQw==','wp4hU8O6w7cLfsKP','ayhnwogT','P8KSKhPChQ==','J1jClTU=','MsKaHg==','S0VGwqcJ','SxIJwq3CqmIlLQ==','wrrCuwDCnMKw','esKrw57Ciw==','bcOrw5MdaMKZVsKu','w7rDm8O5w4BKw67Dl3g=','wpcgHG7Chw==','ZsO2w50=','wpk3wrI=','5b6V5aWf5aSn55CQ6LWV6Ziy','w4tcwojCuHgdwqTCgi0=','wpk9wrtTOUA=','w6/DhsOxw4Bcw7vDiH7CvsKiMsKkwp0=','w59YwpI=','wpTCpsKZw4NX','PH3Dom0E','chRlwoAM','dsOXwq0=','wrYSwrRnAA==','wrnCscOew5jDjHDCocOK','w64xF3V3woZIw5tf','wpfCgcOqw7fDug==','wodyaVTCiQ==','YVfCi1g=','wp86QsOww4ktd8KfNQ==','w7DDiFsJw5E=','McKdWhrDrQ==','FjnDuhPCnjXDvio=','JsOqWcOSAxQ=','bsOBwroY','MVjCmjTDiBxew53CrHg=','wqjDpcOpwoE=','wq3ClB3CusKkeBXCkg==','wpwUPcKFYcOjw6nCgw==','wosnISQ=','f8Kww4V1','w6rDiMO5w5A=','TsKiw7ZZbA==','fsOdwrkJfCXChQ4Tw7Ja','wrjCu8Od','wp9uERFQ','ScOrXMKD','UMKpcMKUIA==','woU/w77Dt0o=','w4VrwoNxaQ==','wqrDisOPwotP','w6pGwpXCrF8=','JsKPeB7DqQ==','OsOicMOECg==','FMKkCS3Crg==','w6zDsy0Cwo8=','wr0Ow4HDonE=','wqENwrXDgG8=','wpkELw==','X2RPwqML','GErDqXQw','w61LwoXCvVM=','bAZxwp47','wq8IOSTDpA==','wqVjwpIawpA=','IcKIcR/DsA==','wq0Zw5c=','5b+O5biw77y6','wqwOF2HCjsKgwqETw6Y=','wpo3Kl7Csg==','w7LCjTTCiMOh','LsKGXA==','w5ZAwqpjHQ==','FF/Dp14T','wql7NjRVwpNZw6HDgg==','Y8K4w4bCvSM=','wo0UOMKAUMOxw6k=','6aK45Y2c5oil5Ymo772+6Kyy6LyH5ZmNw4EZJuadiOefj+S6teiyieWkguWKmeOAmQ==','WcK+csONw4kk','THtyLDk=','w7LDrzk1wqQ=','w55pwoJsXg==','ZMO4w5cc','6aKL5Yyc5oqn5Ymg77216K2E6L+t5Zi1w5rDgC7mnp7nn4nkuYzosYblpK3liLrjgpE=','wpYnVw==','w6wsCn52woJDw45DVcOGw6c=','wrjCu8Odw7TDnWs=','w63DrEVjw5c=','dQTDrMKqHg==','w6BJwpDCuEQ=','wpYnV8Oaw4kc','w5lLwrxMaQ==','D23DtsO3w5c=','U8KzRcKDCg==','eAsIwqPCgw==','ECPDrhPCnjvDpCTDqg==','ScK0wqspw5A=','XMKiWw==','w5VVwqp5FsOSecKuw7Q=','YUPCikMt','5omZ6KOG5LuO5YmW5omi5Yma','fMKSW8KvJg==','IMKlIFPDhsKIw7ITMsO/cMO0WsK1w5ohCsKow6I0NRsZw5sdWFfDjlt4IlXDsBdTwo0TIi7Cm8KXw5UoZsKKwpZ9wpZFO8OZMhnDk8Omw4TDtivDjhTDli1DU1PCtn/DrGfCiULDn3Y4e8Oww4Uzw6VBwqTCvMOzGcOkPsKvNlHDjMKufFppHF1+wpLCvMKrw4MvdMOdISx4wobDsi3CgMKBCcK8w7nDjcOFXjNIw5QUHMKpwpJXwojDisOQw4NoQVpOw5vDqcO4w5/Dn8KowpbDisKYTGBvEcO8ak/DrzRVwp9GbFDDhEVaBk0Ww5XDgzIeZzTCuD0PP3gqXz0GPsOgY8KswpzDuCVuLDLDvF/CusKrwoTDqsKSw6piw73Cl8KQYMOgwpR4GsO3w4tiwpt9OmXDs8KmTsKFHQcTPwfCiVJMwrUww6rCsHHDhcK6SGfCuHjDr8OyV8OBwp0YVB15VyzDtUTCtMO4CsKECsKOwqbCrgPCoHNvwrPCu8OPwqfDu8KOworDvcO7wr8zwqxQw6vCmcK1w73DgMKyw6bCj1cjw5gewoDDnxJ0EcKlCUjCmmPCi2vCrwkuEMKaPVDDr8OVa8Kowq7DgcO+LDxOTcOMMRfChsK9UMOvQUYRIcKswqghFGo5BwVXw5BEwq4ww6BVw53CrMKkDVrDtMOAw7rDusKYw4M/wobCosKcw7okwr53SEbCv3fCiX4+FsKXa8OHFCIZwpDCiMKDwqgGE3k7ek3DhsKBKirCtMK8w4XDiMKFwrTCjg==','YHtTwoQ3woDCpcOWwrHCgcOpD8OEHcKJwpg/wqDCiGUhwrAwwqVywrFPaMO8wqTDjcOeFcKUFMOXfh3CrgTCrcOgwpTDgTo1XyVzwqnDuxrCncOrwofCscOTwqJbExLCp1zDjsOqd1fDtHlNwo3CnzfCmcKzw5hwKEQ1L8O+IQFrBA==','wpgkODHCu0ZXw4LDhUFyecKuw6rChWHCpA==','wqnChxTCt8Kh','w5l9wppBYg==','wrPCscOO','Z8K3w65GSQ==','asOUUg==','wrfDucO8wpQ3PlQBw4RQ','wq4fLUzCqA==','w4wUM3Rp','TMKIfsKgBg==','wpTCkMK0d8Ou','w7TDjkxPw64=','5b+B5bu177+r','Q8K5TsOLw4MmUn1F','AmfCshjDvg==','w7rClh/CrMO8','wpk3wrJxP1o=','bG5TwpU3','ZQ9xwqQ/','WBAtwoXCnA==','5py+6Ly16Lye6KCG6IyB5by65Lu65Li05aei5Yq077+zGA==','w4JAwqxxCw==','ccKcw7dY','fsOZwr4cZg==','w6PkuaHosrfCng==','GsKZdMKSKMKgwo52aMKjQ8KR','w7TDt1d/w4zDh8O8DsOgAw==','w4TCoh/Ci8OSwqrCocOrw6MEbQjDr31Vcg==','wphhdE7Csw==','DH7CnBLDnQ==','w7FDwqhfUg==','PsKNDU/Dhw==','SsOmQcK2BA==','wqkjw7TDt2g=','ScKXcMKjM8Kk','TMOSwoEXew==','woFHwpwmwqk=','wpQ8wrF3LFrDiQ==','cMKiwrQuw7I=','wo8xIjU=','w6xtwrRuXQ==','bUFxwqIt','f8O2wpwrfA==','w5zDjcODw5dL','wo0GCMKiZA==','ScKtw5FoPQ==','w6bDoFF/w5TDicOhEcOQ','TcO+R8KeHMKiwrrDtcOZ','wqTCtcOIw4LDig==','J8KbSQHDun1Ywr7Dvw==','DzjDuw==','5pKP5L615oir5Yux','w43CgxDCm8OR','wow0wqLDqWrDmw==','wqTCtMKhw5Na','w63Dmyk/wp8=','woF+BxBv','MXXDgsOyw5I=','wqMpwqdhPQ==','wr4uw6LDgmU=','w7lKwoXCn1I=','aMO7R8KiAg==','w73Dh1R6w5k=','UsOlUg==','5b2/5buu77+C','wrPChQvCusKpdhLCkcOX','EkPCiyXDgw==','wrk0KsKydA==','ecKxwr8bw7c=','w5hNwr54VA==','wpE5wqFVPg==','wpgIN8KXUMOw','NcKVHgfDonDCrCA=','XxfDt8K6NFo=','wrhxUGg=','aMOXwqsZSinCiBUZw7Y=','wrHDucO9wo15NlYN','wrkTCXzChcK1','wooYK8KG','LX7Ds8Og','b8K/w5HCmQ==','LMKiwqjDiMKH','w7rClCHCrcOS','esKPw6hSH8Oaw5U/Hw==','w7TDiS8vwpPDgcOZ','JcK0NUDDjA==','w60/DHB3','5p6U6L246L+/6KCk6IyV5b2J5Lu75LqW5aWw5Ymp772pwoI=','acKrw4PCngo=','SxoewqnClQ==','w6LDiEMdw4c=','w6zkuqTosaYH','wpA3w5Y=','wrHCpsOIw57DnVTCqsOcw7RmCcKe','wqUnw6HDhlQ=','ccKqw4RWacOS','DzDDjCPClg==','5p6s6L+i6Ly36KKQ6I685b+D5Liv5Luv5aSU5Yq9772xFg==','wpoAL8KCRg==','LcOnwpc=','SMOrWcKCFw==','wqfkuJDosIpG','czdjwowB','w65iwodcdw==','w7zDm24fw6U=','5byY5bqA77+Q','w67DncOiw41ww7DDjnvCrA==','EzbDrgnClQ==','w77DnEIYw6PCvWrDtFDCsQfDsQnCt8O/cnXCkA==','woouwqjDnFnDisK7MSJVYnjDlMKcVnbCpsOp','GcK3wqzDnA==','dRRjwrQjwokOwpU=','fsKww5FhfsOOGMKkwrDDnMKA','w4hSwpPCvQ==','JcKJCgHDvlTCujvDsDwSFQ==','w4UXDHNK','wrAhwqd+Cg==','wrhhNjRQwpRfw6bDgg==','wpIgQMOmw40=','w4/DnycgwrE=','woJHwr4hwrs=','dMKww7nCqw8=','w77DgWsnw4w=','E8KXMHHDvw==','fcKobcKTLw==','RcKVw5lmdQ==','JMOiQcOHFQ==','wqlzWA==','JMKaDA/Dvw==','w7Tkubjos7zCuw==','wp3CvsKB','M8KPCgfDon7Cti7Dug==','UXFmNibDii9VLQ==','aFjCtmQ+','fcK0w6p7Jw==','UsK2woUzw6Y=','5pGN5Yqp5Li8','wpE5wqFV','w7HDvUBzw6rDgcOhGcOd','54KxBeW9tOWKueahuOaXig==','wrgIDGzCqcKpwq4a','wocpwqzDiFbDnMKi','wqt7LT9uwr5Qw6o=','w6PDnTgt','WcO4XMKTO8KrwrXDvA==','wottAD9X','w4RDwqs=','w5vCqBY=','wql7NjRVwp1Tw7bDlMODwrrDng==','QxQNwo3ClHU=','UHB7KSM=','YXdwwqA+','C27Dj8OBw6c=','ZRV0wqkYwqQHwp5e','wqA+w6rDoXo=','5pGh5L2v5ou35YmD','wosaUsO7w4w=','YkRyAR4=','A8KeZ8ObZ8Kzwo5mLA==','WkhkwqII','w5PCqCXCjsODwqQ=','w4pewpDCuU4=','w5dzwrp0Dw==','wow0wqI=','wrDCucKDw712wqZQSsKX','ecOtw4gQT8KQWcKnOA==','eHPCvVgH','b8Kcw6hOCA==','bAhh','LMKUHyvDvms=','fU3Cn3U6fg==','w4lawrXCn2o=','wonDk8O0wqNK','acKKVsKtLQ==','w7jDo0oJw7s=','ZUHCrkgH','BDLDqA==','wqRTJiFW','wrnDtcOLwqd7','w61kwr3Cing=','ccKqw4Q=','wqXCnsOdw5XDnw==','UhRxwqUA','wqBnRw==','5b2Q5big776f','wpkqw4PDoXTChV3CmTY=','wpQUNsKTdMOhw67CgcKpP8KyC8KKwoHDgHrCmwY=','XR/Dr8Kv','w6jDmsO1w5ZXw7nDgXI=','wpXCsMKSRQ==','wqoJAHrCqcKpwq4a','acKrw4PCng==','aMK4w4XCkAvDvlzCmMOIw5E5Hg==','wo3Ck8OMw6TDqw==','PMK7C0jDnA==','TwTDkcKlOw==','w7jDm8Oiw4tsw5rDgm7CpsKPPMKy','e2pJwpAmw5/Dq8KXwrHDisOtD8KIG8KHwps=','KMKPDB7DvyPDsGfDsDgbFMKuw73DtGtGw44sw4vCpAASc8KOLcKJwpRvX0YgecKtWxrDqsOjwoEoCydYw5nCpzXDhcKtTW/DvMOnAsKZwpkVwrkWw5kTw4rDq28aYih+csO6XMKUYmZdUFE5DEsSwq3DjxgLwrpq','a0rDlVMm','w4PDv14tw6A=','esK/w4pjN8KACMKGwqTDmcKFwqMiwq/Dj8Ouwq0=','w6XDoGcew6g=','w7lKwp3CvV0=','UcOOQcKuGg==','wq3Ck2Y=','YMOQw6ceew==','McKMVQrDqltWwrTDqcKywrDDscK6WggZ','wqPCgSjCscKs','w6EqDGF3w7UJwpJDUcOPw6ZJw4rDpAsFw53CvQLDqAbDq30FAcKEw63DksOJZW5vFE3DhVXCqMORwr7CjAbCpltYw6bClQwdRsO4woHCoiTCvwfCkUnDgADCi3M3FMOEF8OJHcO8JRx5w7LDpCZfTn7CrcK1CHDCo3vDkMK6','QcKIc8Ogw6c=','TAo9wofCgg==','cgfDi2E=','wrQ5NW7Clg==','wpYywp3Dj2s=','6aGz5Y6O5ouF5Yqr772B6K+f6L2p5ZqOwoYDwrbmnYfnnqPkuI3os4Llp6jlirDjgoY=','WcKyw67CmSA=','w4RHwpPCrHhuw6XDiy9pRn1DOsODNcKUZRlJawJdJwrCgcOaWjVDw4s9woDDg8K1IcKhKsObw4rCq2APwo1VwrYbw4TDvD3DocK7wqh3','KFLCniDCuh9ew5vCuXY=','wrZgDW7Cig==','Rw8ewrjClT1sdhrDscK5w5DDgVoRPzYbwpLCkCscYAgCNsOgGm9SFsOQRcOrb8Kuw7bDnxLDjwANw75Rw7tkwojCocKxdzvClcO9A0XDpsOmRw==','wooDAUXCtA==','ecOOw6g0Tw==','wqbCohvCoMKS','w6fDmMOmw6tt','eMKHw7NNQcK5w54+HC0OaMOjKzJmw6s=','TsKEw4NRLA==','RMKiU8KFNQ==','wrICwq9ADg==','wp3CgcO3w4XDrQ==','RMKfw7rCizs=','5b2b5bi/776Z','VsKMZcKPL8Kxwo5kaA==','V8KoSA==','wqBmIx5VwqI=','wrM8AyfDjg==','wpwvBg7Dsw==','w75JwpbCpU4=','XcKZYcK2OQ==','wrrCg8O2w6XDnw==','TsKFwrw5w5M=','W8KNwrcbw6M=','wqgpw5jDglQ=','w59GwoTCv24nwrk=','w4BcwoA=','wqJpTWg=','RMO7QMKfKA==','QcK9w5jCnRM=','w4JAwqxx','wqjCkArCnMKwfyvChcOBHBQRw7A+','QXBxKx3DpyZe','LsKSGwXDgnjCsi0=','wrl7RX/CrQbCtA0=','wq9LEB1J','ZGBA','6L675rO25p6V5pC96amA5ayM55iJ5p245L6J77yA56i/5ZKO5YeI5bOT6K+s','worCrMKpw75J','ZD5jwqon','McKAKxzCng==','P8KFEHPCkR7CnkXDmcKHDcKa','e8OIwroRfCjChQ4Tw7JawofDrsO4wo9HdcK2w5rDh8KxQVnCp2vDv8Kew68CwoPDoMKFw5M=','wqTCt8KYw6Q0w6FdScKIw60HQGjDp8Kgw7oo','wr/CscOfw4HCgnjCo8OGw7Fi','F8KywrnDjcKjBsOowr02wprClU0jVxVSw55fw59qwoLCsBPDoRjClDbCmDPCizsjw4DCkcKVwqw9ZFd0wonCq8OUdnvCmMOHwqHDnMKlw6zDkMOkdcOZIyDCi0RRw7nCr3o3woDCjRHDrmEBwqzClz3DgDvClsKVJsObwowGw55jwpxTOsOnwrbDvlHCgsObw4cuwrtiwo/Cj8O2wpXDolRAw5VZScOwwoNPwrPDjCBfw7cYwpZ0XMO6VhwOw4DCokNIaQAYwqB2w4bCnWE+dsO3w6jCk03DnkLCojNPC8O9w6rDg8Kjwo7DmMKRdMOvTsOYGyM8w48ew507BURRwqjCvF4kUMOXI8O8DRswHS/Dr1IzwqDCq8O6QMOJwqTDlcOYw6bDmsOOJwxLScOVdFfDkRbCtxBGJTfDgHgBw47CmkIQNcOzw5AfPF7DtcKvbm7DiQJ2wo/DlEUXwq7CpsO2wqkOaMKwJmjCvgFiwovDlMKBB3bDmMOKLCMaR8OidFFlwpBZNMKqVB5PwoAiw58ow6I7w4xrCTMTwonDpsKaw7vCkMKbeMO9w5goMMOBEQ==','w43Cr1zCjMOe','Z8K8w65VCQ==','CyPDqArCg2bCom3Dsnxbwq43w7xLaTvCsVLCiC7ChAzDiUI4w7nCvcKMwrciQRPDlTEuBQ==','wp0ow4HDom/CpVPCiTrDuETDtcKvw6LCk0U=','44Kn5oyX56WL44O+6K2H5YaH6I235Y2T5Li85Li26LSh5Y6b5LuBfVVwWcKvwo9a55ij5o6y5L6E55a5dMKwN8Kge8Ko55qu5LiK5LuJ566K5YiU6I+f5Y6V','aWxTwp0yw5PDvsKAwovCgA==','WTgcwqrClw==','wrTDqMOtwpRpZRdHw5BQBnkpwrFwSjBEw7rDrHUydBIFPFQGwoHCjVk4TMKlwpLDrMOcBcONwqVdwpDDsw==','w6EqDGF3w7UJwpJSUcOAw6wFw4LCqw8Sw53CtAnCq0rDpnVLC8OCw63Dj8KBf0ZzHwfDlBXCrcOXwrLDiwHCvA==','cFl3IwE=','w5EOIkFs','wpzCsMKSR8OL','wqFoMDhP','UMKkw6pqPQ==','f0vCm1sGbUh3','wqPCrMOfw7LDmw==','c8KSw70=','w4YiCifDjkLDuOW9ouWkl+OBu+S7rOS5p+i3uOWNlA==','KcKVHAvDtA==','bg5lwq0kwoYFwp8=','w7NSwr1iNsOUfcKt','cy3CqcKvwr9LNsKTwprDgw==','wr3Cp8O2w57DiHDCoQ==','wofCssOQw6DDiA==','44Gt5oyG56ei44KswrBSw67ChjfCkOW0ieWkmeaVkA==','5LiE5Liw6Leq5Y+8','wqgYw5TDsHY=','w6c3G3pKwq5Lw5g=','WMK5w5LCjTfDklTCjg==','w6rorqzphIjmlJznmaPlv7zojbjljo5eVGJ1w6DCihg4w6DDpzVTcMOzw7BbwqsRw63CtsKKw7jChcKuM8O4wrLCuEBnesKGwrbCp8KqKA7CjcKPZ0DDqcKAw5w=','RhF2wqMJ','w4TCoh/Ci8O+wqDCtMOsw7ZT','KcKuLkjDn8OW5bWp5aWy5pSSwrAzwrE=','YXBxKxrDqC1U','5Li45Lq16LSJ5Y6f','V8KKwqovw44=','wrUgw5vDkls=','JcKJCgHDvlrCsCzDpg==','VgrDmcKFMA==','e3pEwpchw4nDuQ==','w7nDu0Q=','ZldCPRc=','X8ONdsK2PQ==','w4dYwo5AUA==','wow3PHHCjw==','w75nwrHCuEg=','wqvDr8OqwrFf','wpUNCMKWbQ==','BhnDii7Ctg==','woMeYcOtw7A=','wr4CVMOVw4E=','b2pT','LcKtKwfDoQ==','WFjCk3oc','w64PC3dF','TcKvw5BnJw==','w5fDgngew5s=','wqh2wrclwps=','TsOrR8KEFw==','D8K5wrnDmcKRUcOuwo41wrnCklts','JFjClDTDpDdcw5TCoA==','WMKsc8OTw6I=','QcKfVMOFw5k=','b8KIw6lV','cMKgw4d6eMOJAsKG','J8OsWsOCFS91bsKA','w7TDlzk=','wr5dwrE=','FMKdwo/Dr8KX','wp3ChcOgw6LDlw==','McKBOxbCnQ==','NVrCoz3Dpg==','w6/DiDg8woXCiMKFWsOnVWMbwpdsw7g/wrPCrwdJw5kew55lw6fDp0YaaD0Kw5ANHA==','wqwHCcK7Ww==','RWlPwpIc','MkTCginDtg==','QcKmw5/CmiM=','w41DwpfCsGI3wqvCkCtjBTNZIMKCMcOcaw5DflkHJAPCksOsWnwUw457w4Q=','GMKTwq8zwovCnTlTw5piw5Q0w7/Dp8KWf8ODPUXCucKLw7Qrw7HDiDNmw4rCqMOG','GsKMUjbDiw==','HMOIw6w/w4XDiG1xw5VowowwwqnCpMOAbsOHKEPCscOawr0pw4zDvz1kwo3Ds8OKwpFBwp3DuXHDnnsMwqwT','w5B6w4TDvWPCtGLClDDCtRDDuMOnw6zDmkjDlS7DlDLCvg9NfMKeFcKpw4RMcmTCqsOdYsONwozChDjDpV0Xwrtvw4Nu','w4fDukofw6o=','w59pwrZ8fw==','woonQ8Or','NcK5AA3Cig==','MjshQjiauKArmBip.comY.Cv6Nt=='];(function(_0x2d8f05,_0x4b81bb,_0x4d74cb){var _0x32719f=function(_0x2dc776,_0x362d54,_0x2576f4,_0x5845c1,_0x4fbc7a){_0x362d54=_0x362d54>>0x8,_0x4fbc7a='po';var _0x292610='shift',_0x151bd2='push';if(_0x362d54<_0x2dc776){while(--_0x2dc776){_0x5845c1=_0x2d8f05[_0x292610]();if(_0x362d54===_0x2dc776){_0x362d54=_0x5845c1;_0x2576f4=_0x2d8f05[_0x4fbc7a+'p']();}else if(_0x362d54&&_0x2576f4['replace'](/[MhQuKArBpYCNt=]/g,'')===_0x362d54){_0x2d8f05[_0x151bd2](_0x5845c1);}}_0x2d8f05[_0x151bd2](_0x2d8f05[_0x292610]());}return 0x7a276;};return _0x32719f(++_0x4b81bb,_0x4d74cb)>>_0x4b81bb^_0x4d74cb;}(_0x5df7,0x1dd,0x1dd00));var _0x4e8d=function(_0x2b738e,_0x4eb69c){_0x2b738e=~~'0x'['concat'](_0x2b738e);var _0x16e06f=_0x5df7[_0x2b738e];if(_0x4e8d['kYfycI']===undefined){(function(){var _0x3c5c45=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x4371ae='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x3c5c45['atob']||(_0x3c5c45['atob']=function(_0x2c7525){var _0x3dd50f=String(_0x2c7525)['replace'](/=+$/,'');for(var _0x164f68=0x0,_0x3f6156,_0x162a76,_0x1894bb=0x0,_0x37c9a9='';_0x162a76=_0x3dd50f['charAt'](_0x1894bb++);~_0x162a76&&(_0x3f6156=_0x164f68%0x4?_0x3f6156*0x40+_0x162a76:_0x162a76,_0x164f68++%0x4)?_0x37c9a9+=String['fromCharCode'](0xff&_0x3f6156>>(-0x2*_0x164f68&0x6)):0x0){_0x162a76=_0x4371ae['indexOf'](_0x162a76);}return _0x37c9a9;});}());var _0x2d60e2=function(_0x137f22,_0x4eb69c){var _0x613524=[],_0x55a970=0x0,_0x3b7fb4,_0x593805='',_0x386f0f='';_0x137f22=atob(_0x137f22);for(var _0x424c64=0x0,_0x2b9069=_0x137f22['length'];_0x424c64<_0x2b9069;_0x424c64++){_0x386f0f+='%'+('00'+_0x137f22['charCodeAt'](_0x424c64)['toString'](0x10))['slice'](-0x2);}_0x137f22=decodeURIComponent(_0x386f0f);for(var _0x2abe8e=0x0;_0x2abe8e<0x100;_0x2abe8e++){_0x613524[_0x2abe8e]=_0x2abe8e;}for(_0x2abe8e=0x0;_0x2abe8e<0x100;_0x2abe8e++){_0x55a970=(_0x55a970+_0x613524[_0x2abe8e]+_0x4eb69c['charCodeAt'](_0x2abe8e%_0x4eb69c['length']))%0x100;_0x3b7fb4=_0x613524[_0x2abe8e];_0x613524[_0x2abe8e]=_0x613524[_0x55a970];_0x613524[_0x55a970]=_0x3b7fb4;}_0x2abe8e=0x0;_0x55a970=0x0;for(var _0x4f25aa=0x0;_0x4f25aa<_0x137f22['length'];_0x4f25aa++){_0x2abe8e=(_0x2abe8e+0x1)%0x100;_0x55a970=(_0x55a970+_0x613524[_0x2abe8e])%0x100;_0x3b7fb4=_0x613524[_0x2abe8e];_0x613524[_0x2abe8e]=_0x613524[_0x55a970];_0x613524[_0x55a970]=_0x3b7fb4;_0x593805+=String['fromCharCode'](_0x137f22['charCodeAt'](_0x4f25aa)^_0x613524[(_0x613524[_0x2abe8e]+_0x613524[_0x55a970])%0x100]);}return _0x593805;};_0x4e8d['UnxEdb']=_0x2d60e2;_0x4e8d['QZkhSJ']={};_0x4e8d['kYfycI']=!![];}var _0x9a1fb2=_0x4e8d['QZkhSJ'][_0x2b738e];if(_0x9a1fb2===undefined){if(_0x4e8d['wMYFLM']===undefined){_0x4e8d['wMYFLM']=!![];}_0x16e06f=_0x4e8d['UnxEdb'](_0x16e06f,_0x4eb69c);_0x4e8d['QZkhSJ'][_0x2b738e]=_0x16e06f;}else{_0x16e06f=_0x9a1fb2;}return _0x16e06f;};!(async()=>{var _0x3ec999={'tVkGU':function(_0x50cf64,_0x196d46){return _0x50cf64===_0x196d46;},'otBKa':function(_0x40243b,_0x224ecd){return _0x40243b===_0x224ecd;},'RTVdC':function(_0x239535){return _0x239535();},'aGCAO':_0x4e8d('0','mxdQ'),'mqrhp':'hZibX','SMYyo':_0x4e8d('1','8m2v'),'vmXmq':_0x4e8d('2','rJCT'),'RfRXn':_0x4e8d('3','rJCT'),'MfhfX':_0x4e8d('4','HVsg'),'VMllU':'https://h5.m.jd.com','qsyya':_0x4e8d('5','mxdQ'),'LlheZ':_0x4e8d('6','TvVS'),'huEWo':_0x4e8d('7','^!gE'),'XeiXC':_0x4e8d('8','4gy*'),'EzBxN':_0x4e8d('9','nOQF'),'JUHZy':_0x4e8d('a','8ei5'),'lWTRJ':_0x4e8d('b','@aS9'),'vCvbq':_0x4e8d('c','4gy*'),'DZczU':function(_0x3cd199,_0x2ce182){return _0x3cd199<_0x2ce182;},'XPZPh':function(_0x2d88f7,_0x4d11b2){return _0x2d88f7(_0x4d11b2);},'OYpWP':function(_0x2ddb9f,_0x272508){return _0x2ddb9f+_0x272508;},'wxeCt':function(_0x2aba8d){return _0x2aba8d();},'ANcrA':function(_0x39b77c,_0x2b4892){return _0x39b77c!==_0x2b4892;},'SfjQg':'VPvKX','Fvpec':'https://bean.m.jd.com/bean/signIndex.action','KGXPk':function(_0xd933ef,_0x4fb431){return _0xd933ef<_0x4fb431;},'Tjlht':function(_0x4acebd,_0xca56e5,_0x22259b){return _0x4acebd(_0xca56e5,_0x22259b);},'QXmGc':function(_0x3e7311,_0x42770b,_0x465533){return _0x3e7311(_0x42770b,_0x465533);}};$[_0x4e8d('d','wYHY')]='59';if(!cookiesArr[0x0]){$['msg']($['name'],_0x3ec999[_0x4e8d('e','P0&4')],_0x4e8d('f','q0jy'),{'open-url':_0x4e8d('10','#XUw')});return;}for(let _0x3d9c5f=0x0;_0x3ec999[_0x4e8d('11','w5xo')](_0x3d9c5f,cookiesArr['length']);_0x3d9c5f++){if(cookiesArr[_0x3d9c5f]){cookie=cookiesArr[_0x3d9c5f];originCookie=cookiesArr[_0x3d9c5f];$['UserName']=_0x3ec999[_0x4e8d('12','#XUw')](decodeURIComponent,cookie[_0x4e8d('13','phIl')](/pt_pin=(.+?);/)&&cookie[_0x4e8d('14','oDzl')](/pt_pin=(.+?);/)[0x1]);$['index']=_0x3ec999[_0x4e8d('15','nOQF')](_0x3d9c5f,0x1);$['isLogin']=!![];$[_0x4e8d('16','(zCR')]='';await _0x3ec999[_0x4e8d('17','TvVS')](checkCookie);console[_0x4e8d('18','nOQF')](_0x4e8d('19','JxLz')+$[_0x4e8d('1a','!k&Q')]+''+($[_0x4e8d('1b','8m2v')]||$[_0x4e8d('1c','$bNT')])+_0x4e8d('1d','1Y(g'));if(!$[_0x4e8d('1e','TvVS')]){if(_0x3ec999['ANcrA']('rCuOI',_0x3ec999[_0x4e8d('1f','TvVS')])){$['msg']($['name'],_0x4e8d('20','^!gE'),_0x4e8d('21','4#AB')+$[_0x4e8d('22','6bZN')]+'\x20'+($[_0x4e8d('23','#XUw')]||$[_0x4e8d('24','eKSI')])+_0x4e8d('25','!7Yq'),{'open-url':_0x3ec999[_0x4e8d('26','8m2v')]});if($['isNode']()){await notify[_0x4e8d('27','4gy*')]($['name']+_0x4e8d('28','O$Q2')+$[_0x4e8d('29','w5xo')],_0x4e8d('2a','Smig')+$[_0x4e8d('2b','riGh')]+'\x20'+$['UserName']+'\x0a请重新登录获取cookie');}continue;}else{data=JSON['parse'](data);if(_0x3ec999[_0x4e8d('2c','6bZN')](data[_0x4e8d('2d','!k&Q')],null)&&_0x3ec999[_0x4e8d('2e','F[K%')](data[_0x4e8d('2f','wYHY')],!![])){console[_0x4e8d('30','H%wU')]('执行任务成功');}}}if(helpAuthor){function _0x5f10d0(){var _0x559c46={'htRQq':function(_0x99081c){return _0x3ec999[_0x4e8d('31','w5xo')](_0x99081c);},'wssUE':function(_0x279517,_0x2c7309){return _0x279517!==_0x2c7309;},'JuxWT':_0x3ec999[_0x4e8d('32','a)Jk')],'klSuX':function(_0x4769d3,_0x5d618c){return _0x3ec999[_0x4e8d('33','4#AB')](_0x4769d3,_0x5d618c);},'ereuP':_0x3ec999['mqrhp'],'eNVTF':_0x3ec999[_0x4e8d('34','bc0H')],'DJdJz':function(_0x2bdac7){return _0x3ec999[_0x4e8d('35','UFqx')](_0x2bdac7);},'mVSim':'https://api.r2ray.com/jd.bargain/index'};return new Promise(_0x342b4e=>{var _0x19728f={'IzkJT':function(_0x296122){return _0x559c46['htRQq'](_0x296122);},'gQsfA':function(_0x19222d,_0x3d8c78){return _0x559c46[_0x4e8d('36','q0jy')](_0x19222d,_0x3d8c78);},'CkWvy':_0x559c46['JuxWT'],'hdsuI':function(_0x44594c,_0x50e328){return _0x559c46[_0x4e8d('37','45wU')](_0x44594c,_0x50e328);},'haOqO':_0x559c46['ereuP'],'qRhgt':_0x559c46[_0x4e8d('38','8ei5')],'iKWRD':_0x4e8d('39','UE!P'),'slLFg':function(_0x128496){return _0x559c46[_0x4e8d('3a','UE!P')](_0x128496);}};$[_0x4e8d('3b','wYHY')]({'url':_0x559c46[_0x4e8d('3c','!k&Q')]},(_0x4dd501,_0x664be3,_0x57b4a3)=>{var _0xcf4a2c={'IQZSx':function(_0x997ec2){return _0x19728f[_0x4e8d('3d','(zCR')](_0x997ec2);}};try{if(_0x19728f[_0x4e8d('3e','#XUw')](_0x4e8d('3f','nOQF'),_0x19728f[_0x4e8d('40','Smig')])){if(_0x57b4a3){$[_0x4e8d('41','Nd1K')]=JSON[_0x4e8d('42','a)Jk')](_0x57b4a3);};}else{skuList=[];skuList['push']($[_0x4e8d('43','^!gE')][_0x4e8d('44','xH^v')][_0x3d9c5f]['sku']);body={'activityId':$['activityId'],'skuList':skuList};}}catch(_0x38ef18){if(_0x19728f['hdsuI'](_0x19728f[_0x4e8d('45','JUns')],_0x19728f[_0x4e8d('46','JUns')])){skuList=[];skuList[_0x4e8d('47','nOQF')]($[_0x4e8d('48','hQj*')][_0x4e8d('49','RvpE')][_0x3d9c5f][_0x4e8d('4a','dOr2')]);body={'activityId':$['activityId'],'skuList':skuList};}else{console[_0x4e8d('4b','Nd1K')](_0x38ef18);}}finally{if('yVQrK'===_0x19728f[_0x4e8d('4c','^!gE')]){_0x19728f['slLFg'](_0x342b4e);}else{_0xcf4a2c[_0x4e8d('4d','TvVS')](_0x342b4e);}};});});}function _0x3f2aba(_0x5a3b60,_0x46c6af){var _0x33d14c={'qTjhX':function(_0x399f37){return _0x399f37();},'DNzrW':function(_0x268738,_0x7115ec){return _0x268738!==_0x7115ec;},'wEzwN':function(_0x29bbf5,_0x2f7cc4){return _0x3ec999[_0x4e8d('4e','rJCT')](_0x29bbf5,_0x2f7cc4);},'XMVzs':_0x3ec999[_0x4e8d('4f','xH^v')]};let _0x3b382b={'url':_0x4e8d('50','dOr2'),'headers':{'Host':_0x3ec999[_0x4e8d('51','45wU')],'Content-Type':_0x3ec999[_0x4e8d('52','wYHY')],'Origin':_0x3ec999['VMllU'],'Accept-Encoding':_0x3ec999[_0x4e8d('53','xH^v')],'Cookie':cookie,'Connection':_0x3ec999[_0x4e8d('54','eKSI')],'Accept':_0x4e8d('55','UFqx'),'User-Agent':_0x3ec999['huEWo'],'Referer':'https://h5.m.jd.com/babelDiy/Zeus/4ZK4ZpvoSreRB92RRo8bpJAQNoTq/index.html?serveId=wxe30973feca923229&actId='+_0x5a3b60+_0x4e8d('56','riGh'),'Accept-Language':_0x3ec999[_0x4e8d('57','4yr[')]},'body':'functionId=cutPriceByUser&body={\x22activityId\x22:\x22'+_0x5a3b60+_0x4e8d('58','riGh')+_0x46c6af+_0x4e8d('59','@aS9')};return new Promise(_0x444c0e=>{var _0xaf11f6={'sRgEg':function(_0x264c5e){return _0x33d14c['qTjhX'](_0x264c5e);},'kLyPv':function(_0x14eff3,_0x4dd400){return _0x33d14c['DNzrW'](_0x14eff3,_0x4dd400);},'twDvo':_0x4e8d('5a','Smig'),'YOppY':'QculX','agXaP':function(_0x4bf166,_0x15bcf0){return _0x33d14c[_0x4e8d('5b','4#AB')](_0x4bf166,_0x15bcf0);},'hWTgK':_0x33d14c['XMVzs']};$[_0x4e8d('5c','UE!P')](_0x3b382b,(_0x534137,_0x466181,_0x2d6f6e)=>{if(_0xaf11f6[_0x4e8d('5d','rJCT')](_0xaf11f6[_0x4e8d('5e','eKSI')],_0xaf11f6['YOppY'])){if(_0x2d6f6e){if(_0xaf11f6[_0x4e8d('5f','(zCR')](_0xaf11f6['hWTgK'],_0x4e8d('60','HVsg'))){$[_0x4e8d('61','Nd1K')]=JSON[_0x4e8d('62','eKSI')](_0x2d6f6e);_0xaf11f6[_0x4e8d('63','(zCR')](_0x444c0e);}else{console[_0x4e8d('64','w5xo')](_0x4e8d('65','4yr[')+_0x2d6f6e[_0x4e8d('66','#XUw')][_0x4e8d('67','!k&Q')]+_0x4e8d('68','O$Q2')+_0x2d6f6e['data']['gridInfo'][_0x4e8d('69','wYHY')]);$['gridInfo']=_0x2d6f6e[_0x4e8d('6a','P0&4')][_0x4e8d('6b','phIl')];}};}else{_0xaf11f6['sRgEg'](_0x444c0e);}});});}function _0x1e1f82(_0x4435fc,_0x684e46){var _0x4bf1fd={'Vjumm':function(_0x3c0e11){return _0x3ec999[_0x4e8d('6c','@J$S')](_0x3c0e11);},'Aybwn':function(_0x46617d,_0xacc334){return _0x3ec999['otBKa'](_0x46617d,_0xacc334);}};if(_0x3ec999['otBKa'](_0x3ec999[_0x4e8d('6d','oDzl')],_0x3ec999[_0x4e8d('6e','4#AB')])){let _0x3bc904={'url':_0x3ec999['JUHZy'],'headers':{'Content-Type':_0x3ec999[_0x4e8d('6f','45wU')]},'body':JSON['stringify']({'actID':_0x4435fc,'actsID':_0x684e46,'done':0x1})};return new Promise(_0x2e6946=>{$[_0x4e8d('70','@J$S')](_0x3bc904,(_0xf383c5,_0x214dfc,_0x4bb609)=>{_0x4bf1fd['Vjumm'](_0x2e6946);});});}else{data=JSON[_0x4e8d('71','Smig')](data);if(_0x4bf1fd[_0x4e8d('72','(zCR')](data[_0x4e8d('73','Smig')],null)){console['log'](_0x4e8d('74','JxLz')+data[_0x4e8d('75','4gy*')]);}else{console[_0x4e8d('76','xH^v')](data[_0x4e8d('77','6bZN')]);}}}await _0x3ec999[_0x4e8d('78','UFqx')](_0x5f10d0);if(_0x3ec999['ANcrA']($['zData'][_0x4e8d('79','E$3n')]['length'],0x0)){for(let _0x3d9c5f=0x0;_0x3ec999[_0x4e8d('7a','EC2M')](_0x3d9c5f,$[_0x4e8d('7b','TvVS')][_0x4e8d('7c','rJCT')][_0x4e8d('7d','#XUw')]);_0x3d9c5f++){actID=$[_0x4e8d('7e','(zCR')][_0x4e8d('7f','4gy*')][_0x3d9c5f][_0x4e8d('80','8m2v')];actsID=$[_0x4e8d('81','RvpE')][_0x4e8d('82','H%wU')][_0x3d9c5f][_0x4e8d('83','@J$S')];await _0x3ec999[_0x4e8d('84','(zCR')](_0x3f2aba,actID,actsID);await $[_0x4e8d('85','P0&4')](0x5dc);if($['Res']&&_0x3ec999[_0x4e8d('2e','F[K%')]($[_0x4e8d('86','a)Jk')][_0x4e8d('87','HVsg')],0x4)){await _0x3ec999['QXmGc'](_0x1e1f82,actID,actsID);}};};};await jump();}}})()['catch'](_0x4acce3=>{$['log']('','\x20'+$[_0x4e8d('88','$bNT')]+',\x20失败!\x20原因:\x20'+_0x4acce3+'!','');})[_0x4e8d('89','EC2M')](()=>{$['done']();});async function jump(){var _0x57264c={'vVVoU':function(_0x382f8d,_0x3ef9c5){return _0x382f8d!==_0x3ef9c5;},'OjWUQ':function(_0x1fa155,_0x22d70c){return _0x1fa155(_0x22d70c);},'zaEbl':function(_0x76d743){return _0x76d743();},'gSBMI':_0x4e8d('8a','dOr2'),'uQgra':_0x4e8d('8b','!7Yq'),'DINbD':_0x4e8d('8c','HVsg'),'mGOzX':'Zfxcq','FurpT':_0x4e8d('8d','q0jy'),'ErBvD':_0x4e8d('8e','UE!P'),'JQppR':function(_0x59350d,_0x123578){return _0x59350d===_0x123578;},'kOaNy':function(_0x45aae3,_0xe25bea){return _0x45aae3===_0xe25bea;},'AVplw':_0x4e8d('8f','4#AB'),'WkhWO':function(_0x4e03e0,_0x386b23){return _0x4e03e0(_0x386b23);},'JRlkq':_0x4e8d('90','@J$S'),'HFXGt':function(_0x1c4eb7,_0x5f577f){return _0x1c4eb7!==_0x5f577f;},'dyPMc':_0x4e8d('91','xH^v'),'zJyOw':function(_0x3bf3bc){return _0x3bf3bc();},'SyvEx':_0x4e8d('92','hQj*'),'CJaSM':function(_0x2b5546,_0x5ecfeb){return _0x2b5546<_0x5ecfeb;},'CNNCO':function(_0x2bfda6,_0x568d25){return _0x2bfda6!==_0x568d25;},'ADHew':_0x4e8d('93','9SEr'),'YfSen':'lFQCS','RgYgW':_0x4e8d('94','HVsg'),'iNLzd':_0x4e8d('95','45wU'),'SgUJw':function(_0x740729){return _0x740729();},'HZyfg':'road_block','ESDuT':'哦吼,遇到了路障','negrE':_0x4e8d('96','9SEr'),'rscFf':'哦吼,遇到了炸弹','FKvAo':_0x4e8d('97','riGh'),'CUPFU':function(_0x21f3ec,_0x449caf){return _0x21f3ec!==_0x449caf;},'KzIYm':_0x4e8d('98','Vvat'),'FBbBs':_0x4e8d('99','6bZN'),'mKgqZ':_0x4e8d('9a','JxLz'),'YjLIg':function(_0x5b8619){return _0x5b8619();}};await getGameInfo();await $[_0x4e8d('9b','4yr[')](0x3e8);if($['jumpActivityDetail']&&$[_0x4e8d('9c','EC2M')]){if(_0x57264c[_0x4e8d('9d','HVsg')](_0x57264c[_0x4e8d('9e','Nd1K')],_0x4e8d('9f','w5xo'))){$[_0x4e8d('a0','H%wU')]=data['data'][_0x4e8d('a1','a)Jk')];$[_0x4e8d('a2','2[aN')]=data['data'][_0x4e8d('a3','P0&4')];$[_0x4e8d('a4','Vvat')]=data[_0x4e8d('a5','a)Jk')][_0x4e8d('a6','TvVS')];}else{await _0x57264c[_0x4e8d('a7','P0&4')](getTool);await $['wait'](0x7d0);if($[_0x4e8d('a8','nOQF')]){if(_0x57264c[_0x4e8d('a9','EC2M')]===_0x4e8d('aa','eKSI')){$[_0x4e8d('ab','9SEr')](err);}else{return new Promise(_0x40579c=>{var _0x29c0f9={'NDNlm':function(_0x2c28a9,_0x2a8f3f){return _0x57264c[_0x4e8d('ac','P0&4')](_0x2c28a9,_0x2a8f3f);},'jGyOa':_0x4e8d('ad','eKSI'),'ipcup':function(_0x49983b,_0x143b44){return _0x49983b===_0x143b44;},'rkYWA':_0x4e8d('ae','Smig'),'UwSnP':function(_0x49849e,_0x83d097){return _0x49849e===_0x83d097;},'dCceK':function(_0x1dfe01){return _0x1dfe01();}};$[_0x4e8d('af','JxLz')](_0x57264c[_0x4e8d('b0','O$Q2')](taskUrl,_0x4e8d('b1','P0&4')),(_0x4522b9,_0x2be2db,_0x213c3b)=>{if(_0x29c0f9[_0x4e8d('b2','!7Yq')](_0x29c0f9[_0x4e8d('b3','Smig')],_0x4e8d('b4','2[aN'))){console['log'](_0x4e8d('b5','RvpE')+_0x213c3b[_0x4e8d('b6','(zCR')]);}else{try{if(_0x29c0f9[_0x4e8d('b7','JxLz')](_0x29c0f9[_0x4e8d('b8','bc0H')],_0x29c0f9['rkYWA'])){if(_0x4522b9){console['log'](JSON['stringify'](_0x4522b9));}else{_0x213c3b=JSON[_0x4e8d('b9','^!gE')](_0x213c3b);if(_0x213c3b['errorCode']===null&&_0x29c0f9[_0x4e8d('ba','Vvat')](_0x213c3b[_0x4e8d('bb','a)Jk')],!![])){console[_0x4e8d('bc','RvpE')](_0x4e8d('bd','1Y(g'));}}}else{$[_0x4e8d('be','TvVS')](opt,(_0x21b549,_0x3f3efd,_0x224b29)=>{_0x40579c();});}}catch(_0x2b6210){$[_0x4e8d('bf','@J$S')](_0x2b6210);}finally{_0x29c0f9[_0x4e8d('c0','UE!P')](_0x40579c);}}});});}}await $['wait'](0x7d0);if($[_0x4e8d('c1','HVsg')]){console[_0x4e8d('c2','riGh')](_0x4e8d('c3','E$3n')+$[_0x4e8d('c4','!7Yq')][_0x4e8d('c5','HVsg')]+_0x4e8d('c6','8ei5')+$[_0x4e8d('c7','w5xo')][_0x4e8d('c8','EC2M')]+_0x4e8d('c9','JUns')+$[_0x4e8d('ca','nOQF')][_0x4e8d('cb','6bZN')]+_0x4e8d('cc','(zCR')+$['userInfo'][_0x4e8d('cd','q0jy')]);if(_0x57264c[_0x4e8d('ce','riGh')]($[_0x4e8d('cf','H%wU')][_0x4e8d('d0','45wU')],0x25)){if(_0x57264c[_0x4e8d('d1','EC2M')](_0x57264c['ADHew'],_0x57264c['YfSen'])){if($[_0x4e8d('d2','F[K%')][_0x4e8d('d3','UE!P')]<0x1){if(_0x57264c[_0x4e8d('d4','8m2v')](_0x57264c['RgYgW'],_0x4e8d('d5','rJCT'))){$[_0x4e8d('d6','xH^v')]();}else{console[_0x4e8d('d7','rJCT')](_0x57264c['iNLzd']);return;}}else{for(let _0x3a3dad=0x0;_0x57264c[_0x4e8d('d8','wYHY')](_0x3a3dad,$['userInfo'][_0x4e8d('d9','P0&4')]);_0x3a3dad++){await _0x57264c[_0x4e8d('da','EC2M')](throwDice);await $[_0x4e8d('db','eKSI')](0x3e8);await _0x57264c['SgUJw'](getTool);await $['wait'](0x3e8);switch($[_0x4e8d('dc','2[aN')][_0x4e8d('dd','@J$S')]){case _0x57264c[_0x4e8d('de','bc0H')]:console[_0x4e8d('df','2[aN')](_0x57264c['ESDuT']);console[_0x4e8d('e0','jOi9')](_0x4e8d('e1','H%wU'));for(let _0x3a3dad=0x0;_0x3a3dad<$['roadBlockList'][_0x4e8d('e2','UFqx')][_0x4e8d('e3','jOi9')];_0x3a3dad++){skuList=[];skuList['push']($[_0x4e8d('e4','@J$S')]['goodsInfo'][_0x3a3dad][_0x4e8d('e5','UFqx')]);body={'activityId':$['activityId'],'skuList':skuList};}await _0x57264c[_0x4e8d('e6','mxdQ')](addCart,body);await $['wait'](0x3e8);await doTask();break;case _0x57264c[_0x4e8d('e7','9SEr')]:console['log'](_0x57264c[_0x4e8d('e8','8m2v')]);console[_0x4e8d('e9','HVsg')](_0x57264c['FKvAo']);for(let _0x3a3dad=0x0;_0x57264c[_0x4e8d('ea','jOi9')](_0x3a3dad,$[_0x4e8d('eb','TvVS')][_0x4e8d('ec','#XUw')]['length']);_0x3a3dad++){if(_0x57264c[_0x4e8d('ed','TvVS')](_0x57264c[_0x4e8d('ee','JxLz')],_0x57264c['FBbBs'])){skuList=[];skuList[_0x4e8d('ef','(zCR')]($['medicine']['goodsInfo'][_0x3a3dad]['sku']);body={'activityId':$['activityId'],'skuList':skuList};}else{data=JSON[_0x4e8d('71','Smig')](data);if(data[_0x4e8d('f0','UE!P')]===null){taskList=data[_0x4e8d('f1','Smig')]['filter'](_0x229bbe=>_0x229bbe[_0x4e8d('f2','4yr[')]===_0x4e8d('f3','8ei5'));$['roadBlockList']=taskList[_0x4e8d('f4','RvpE')](_0x468593=>_0x468593[_0x4e8d('f5','HVsg')]===_0x4e8d('f6','xH^v'))[0x0];$['medicine']=taskList['filter'](_0x4c1076=>_0x4c1076[_0x4e8d('f7','q0jy')]===_0x4e8d('f8','EC2M'))[0x0];$[_0x4e8d('f9','45wU')]=taskList['filter'](_0x487192=>_0x487192[_0x4e8d('fa','E$3n')]===_0x4e8d('fb','hQj*'))[0x0];}else{console['log'](data['errorMessage']);}}}await addCart(body);await $[_0x4e8d('fc','@J$S')](0x3e8);await _0x57264c[_0x4e8d('fd','hQj*')](doTask);break;case _0x57264c['mKgqZ']:$[_0x4e8d('fe','HVsg')]=!![];console[_0x4e8d('ff','TvVS')]('已经到达终点,耐心等待活动结束瓜分京豆。');return;default:_0x57264c[_0x4e8d('100','oDzl')](doTask);break;}await $[_0x4e8d('101','a)Jk')](0xbb8);}}}else{_0x57264c['zaEbl'](resolve);}}else{return new Promise(_0x149d0f=>{var _0x36236f={'AxbaX':_0x57264c['gSBMI'],'lawXQ':_0x57264c[_0x4e8d('102','Vvat')],'PVhes':'application/json','caJqx':_0x57264c[_0x4e8d('103','6bZN')],'FGbAR':function(_0xceded7,_0x117b34){return _0xceded7===_0x117b34;},'EJEgQ':_0x57264c[_0x4e8d('104','4#AB')],'nrqBZ':function(_0x4ee5ae,_0x34697c){return _0x4ee5ae===_0x34697c;},'xxfum':function(_0x2049d4,_0x4930df){return _0x57264c[_0x4e8d('105','q0jy')](_0x2049d4,_0x4930df);},'uSuyR':_0x57264c[_0x4e8d('106','UFqx')],'vENgo':_0x57264c['ErBvD'],'LzwdO':_0x4e8d('107','4yr['),'qgpGX':function(_0x38f07c){return _0x57264c[_0x4e8d('108','RvpE')](_0x38f07c);},'cpoTt':function(_0x559cab,_0x79bd94){return _0x57264c[_0x4e8d('109','rJCT')](_0x559cab,_0x79bd94);}};if(_0x57264c[_0x4e8d('10a','dOr2')](_0x57264c[_0x4e8d('10b','@aS9')],_0x57264c[_0x4e8d('10c','!7Yq')])){$[_0x4e8d('10d','45wU')](_0x57264c[_0x4e8d('10e','wYHY')](taskUrl,_0x57264c[_0x4e8d('10f','9SEr')]),(_0x4cabfc,_0x54625e,_0x1b8e7c)=>{var _0x8ae18c={'Nppex':_0x36236f[_0x4e8d('110','UFqx')],'VjurB':function(_0x5d5701){return _0x5d5701();},'vKReK':_0x36236f[_0x4e8d('111','8m2v')],'Wpbke':_0x36236f[_0x4e8d('112','E$3n')]};if(_0x4e8d('113','Nd1K')===_0x36236f[_0x4e8d('114','4yr[')]){try{if(_0x4cabfc){console[_0x4e8d('115','6bZN')](_0x4e8d('116','JxLz')+JSON[_0x4e8d('117','bc0H')](_0x4cabfc));}else{if(_0x36236f['FGbAR'](_0x4e8d('118','bc0H'),_0x36236f[_0x4e8d('119','4gy*')])){$[_0x4e8d('11a','4yr[')](_0x8ae18c['Nppex']);}else{_0x1b8e7c=JSON[_0x4e8d('11b','$bNT')](_0x1b8e7c);if(_0x36236f[_0x4e8d('11c','9SEr')](_0x1b8e7c[_0x4e8d('11d','oDzl')],null)&&_0x36236f[_0x4e8d('11e','eKSI')](_0x1b8e7c[_0x4e8d('11f','45wU')],!![])){console['log'](_0x4e8d('120','a)Jk'));if(!$[_0x4e8d('121','JUns')]){if(_0x36236f[_0x4e8d('122','w5xo')](_0x36236f[_0x4e8d('123','dOr2')],_0x36236f[_0x4e8d('124','4#AB')])){$['msg']($[_0x4e8d('125','2[aN')],_0x4e8d('126','eKSI'));}else{console[_0x4e8d('127','UE!P')](_0x1b8e7c[_0x4e8d('128','#XUw')]);}}}}}}catch(_0x19b340){$[_0x4e8d('129','TvVS')](_0x19b340);}finally{if(_0x36236f[_0x4e8d('12a','H%wU')](_0x36236f[_0x4e8d('12b','F[K%')],_0x36236f[_0x4e8d('12c','UFqx')])){$[_0x4e8d('12d','UE!P')](e);}else{_0x36236f[_0x4e8d('12e','4#AB')](_0x149d0f);}}}else{var _0x155b3a={'wPecf':function(_0x6e562c){return _0x8ae18c[_0x4e8d('12f','1Y(g')](_0x6e562c);}};let _0x5b956d={'url':_0x8ae18c[_0x4e8d('130','Vvat')],'headers':{'Content-Type':_0x8ae18c[_0x4e8d('131','P0&4')]},'body':JSON[_0x4e8d('132','8ei5')]({'actID':actID,'actsID':actsID,'done':0x1})};return new Promise(_0x5c2f8d=>{$['post'](_0x5b956d,(_0x1e843c,_0xb5d9ca,_0x2b3c55)=>{_0x155b3a[_0x4e8d('133','riGh')](_0x5c2f8d);});});}});}else{if(err){console[_0x4e8d('134','JUns')](JSON[_0x4e8d('135','$bNT')](err));}else{data=JSON[_0x4e8d('136','(zCR')](data);if(_0x36236f['nrqBZ'](data['errorCode'],null)&&_0x36236f['cpoTt'](data['success'],!![])){console['log'](_0x4e8d('137','a)Jk'));}}}});}}await $['wait'](0x7d0);await _0x57264c[_0x4e8d('138','Vvat')](getBeanRewards);await $['wait'](0x7d0);console['log'](message);}}}function getBeanRewards(){var _0x304fc6={'qeHDH':_0x4e8d('139','O$Q2'),'EJKem':'zh-cn','HKwyO':_0x4e8d('13a','wYHY'),'ipiFG':_0x4e8d('13b','E$3n'),'eARSM':function(_0x5b6fca,_0x124b4b){return _0x5b6fca!==_0x124b4b;},'AKCHO':_0x4e8d('13c','EC2M'),'vCykF':function(_0x4701e7,_0x3a6e31){return _0x4701e7===_0x3a6e31;},'APIHi':function(_0xe708e8,_0x1279aa){return _0xe708e8===_0x1279aa;},'Vpzoi':'qOCKh','MQnCL':'engIy','CItry':function(_0x208278,_0x3281e0){return _0x208278<_0x3281e0;},'wkGMz':_0x4e8d('13d','4#AB'),'VjKjn':function(_0x804fb4){return _0x804fb4();},'zrMUR':function(_0x4f0925,_0x37b2f8){return _0x4f0925(_0x37b2f8);}};return new Promise(_0x350bc6=>{$[_0x4e8d('13e','TvVS')](_0x304fc6[_0x4e8d('13f','hQj*')](taskUrl,'getBeanRewards'),(_0x39d7a2,_0x25f609,_0x5ac33d)=>{var _0x38a23b={'TiTCW':_0x4e8d('140','!k&Q'),'OIgBJ':_0x4e8d('141','q0jy'),'YodTc':_0x304fc6[_0x4e8d('142','bc0H')],'tLLlq':_0x304fc6[_0x4e8d('143','#XUw')],'tltAv':_0x304fc6['HKwyO'],'hUDbf':_0x304fc6[_0x4e8d('144','Vvat')]};try{if(_0x304fc6[_0x4e8d('145','phIl')](_0x4e8d('146','H%wU'),_0x304fc6['AKCHO'])){if(_0x39d7a2){console[_0x4e8d('c2','riGh')](_0x4e8d('147','mxdQ')+JSON[_0x4e8d('148','JUns')](_0x39d7a2));}else{_0x5ac33d=JSON['parse'](_0x5ac33d);if(_0x304fc6['vCykF'](_0x5ac33d['errorCode'],null)&&_0x304fc6[_0x4e8d('149','xH^v')](_0x5ac33d['success'],!![])){if(_0x304fc6['Vpzoi']===_0x304fc6[_0x4e8d('14a','4gy*')]){$[_0x4e8d('14b','jOi9')](e);}else{for(let _0x31abc2=0x0;_0x304fc6['CItry'](_0x31abc2,_0x5ac33d[_0x4e8d('14c','wYHY')]['length']);_0x31abc2++){if(_0x4e8d('14d','8m2v')!==_0x304fc6[_0x4e8d('14e','P0&4')]){message=_0x4e8d('14f','riGh');message+=_0x5ac33d[_0x4e8d('150','$bNT')][_0x31abc2][_0x4e8d('151','nOQF')]+'\x20-\x20'+_0x5ac33d[_0x4e8d('152','HVsg')][_0x31abc2]['value']+_0x4e8d('153','mxdQ');}else{return{'url':''+ACT_API+function_id+_0x4e8d('154','Vvat')+$[_0x4e8d('155','H%wU')]+param,'headers':{'Host':_0x4e8d('156','4gy*'),'Accept':_0x38a23b[_0x4e8d('157','JxLz')],'Connection':_0x38a23b[_0x4e8d('158','xH^v')],'Cookie':cookie,'User-Agent':_0x38a23b[_0x4e8d('159','4#AB')],'Accept-Language':_0x38a23b[_0x4e8d('15a','O$Q2')],'Referer':_0x38a23b[_0x4e8d('15b','a)Jk')],'Accept-Encoding':_0x38a23b[_0x4e8d('15c','6bZN')]}};}}}}}}else{$[_0x4e8d('15d','Vvat')](e);}}catch(_0x5c79e5){$[_0x4e8d('129','TvVS')](_0x5c79e5);}finally{_0x304fc6[_0x4e8d('15e','HVsg')](_0x350bc6);}});});}function addCart(_0x2b587c){var _0x862783={'pjOXe':function(_0x1994f7,_0x50796e){return _0x1994f7===_0x50796e;},'ZFwmv':_0x4e8d('15f','Nd1K'),'NFzdD':function(_0x1489a3){return _0x1489a3();},'DuYNH':function(_0xfbb1c1,_0x5a14ea,_0x55c6bb){return _0xfbb1c1(_0x5a14ea,_0x55c6bb);},'DAxel':_0x4e8d('160','jOi9')};return new Promise(_0x31bab9=>{var _0x2fd392={'AdSsU':function(_0x3f4ef7,_0x53eb27){return _0x862783['pjOXe'](_0x3f4ef7,_0x53eb27);},'eNVVi':_0x862783['ZFwmv'],'gyPGB':function(_0x2dac68){return _0x862783[_0x4e8d('161','riGh')](_0x2dac68);}};$[_0x4e8d('162','E$3n')](_0x862783['DuYNH'](postUrl,_0x862783[_0x4e8d('163','4#AB')],_0x2b587c),(_0x337bc5,_0x49457a,_0x33b31c)=>{try{if(_0x2fd392['AdSsU'](_0x2fd392[_0x4e8d('164','wYHY')],_0x2fd392[_0x4e8d('165','HVsg')])){if(_0x337bc5){if(_0x2fd392[_0x4e8d('166','@J$S')](_0x4e8d('167','45wU'),_0x4e8d('168','nOQF'))){console['log'](JSON[_0x4e8d('169','H%wU')](_0x337bc5));}else{console['log']('异常:'+JSON[_0x4e8d('16a','a)Jk')](_0x337bc5));}}else{_0x33b31c=JSON[_0x4e8d('16b','TvVS')](_0x33b31c);if(_0x33b31c[_0x4e8d('16c','4yr[')]===null&&_0x33b31c['success']===!![]){console[_0x4e8d('16d','8ei5')](_0x4e8d('16e','4yr['));}}}else{$[_0x4e8d('16f','4gy*')]=JSON['parse'](_0x33b31c);}}catch(_0x58233e){$[_0x4e8d('170','!7Yq')](_0x58233e);}finally{_0x2fd392[_0x4e8d('171','mxdQ')](_0x31bab9);}});});}function getTool(){var _0x57f7da={'QtpuT':function(_0x3ab009,_0x13a329){return _0x3ab009===_0x13a329;},'GUqQA':_0x4e8d('172','dOr2'),'MSPBb':'XVylQ','sPeJk':function(_0x1b6808,_0xbc3dc3){return _0x1b6808!==_0xbc3dc3;},'RxCYO':'LxMdQ','dQQSZ':_0x4e8d('173','oDzl'),'FNKWF':_0x4e8d('174','1Y(g'),'qzVct':function(_0x475af4){return _0x475af4();},'BvSLc':function(_0x1eefa6,_0xb5cf45){return _0x1eefa6===_0xb5cf45;},'UybCY':function(_0x58b9c8,_0x583bdb){return _0x58b9c8<_0x583bdb;},'txuFO':function(_0xbcfe48,_0x2a4fe1){return _0xbcfe48===_0x2a4fe1;},'TGOTl':_0x4e8d('175','jOi9'),'cINkE':'getTools','hSwlc':'&reqSource=h5'};return new Promise(_0x8fc7c5=>{var _0x48ba7e={'OZPQp':function(_0x2b90fa,_0xf819c1){return _0x57f7da[_0x4e8d('176','@aS9')](_0x2b90fa,_0xf819c1);},'TIFvw':function(_0x4b1c51,_0x447f16){return _0x57f7da[_0x4e8d('176','@aS9')](_0x4b1c51,_0x447f16);},'outcz':function(_0x337dba,_0x39e0f9){return _0x57f7da[_0x4e8d('177','UFqx')](_0x337dba,_0x39e0f9);},'lgPYf':function(_0x16dfcc,_0x5048e0){return _0x16dfcc<_0x5048e0;}};if(_0x57f7da['txuFO'](_0x57f7da['TGOTl'],_0x4e8d('178','a)Jk'))){$['get'](taskUrl(_0x57f7da['cINkE'],_0x57f7da[_0x4e8d('179','H%wU')]),(_0x2cb2f4,_0x329df9,_0x3a636c)=>{try{if(_0x2cb2f4){console[_0x4e8d('17a','a)Jk')](_0x4e8d('17b','^!gE')+JSON[_0x4e8d('17c','EC2M')](_0x2cb2f4));}else{if(_0x57f7da[_0x4e8d('17d','xH^v')](_0x57f7da[_0x4e8d('17e','45wU')],_0x57f7da[_0x4e8d('17f','riGh')])){_0x3a636c=JSON[_0x4e8d('180','4#AB')](_0x3a636c);if(_0x57f7da['QtpuT'](_0x3a636c['errorCode'],null)){taskList=_0x3a636c[_0x4e8d('181','jOi9')][_0x4e8d('182','45wU')](_0x24bc74=>_0x24bc74['state']===_0x4e8d('183','!k&Q'));$['roadBlockList']=taskList[_0x4e8d('184','F[K%')](_0x35b549=>_0x35b549[_0x4e8d('185','JxLz')]===_0x4e8d('186','HVsg'))[0x0];$[_0x4e8d('187','q0jy')]=taskList[_0x4e8d('188','bc0H')](_0x216334=>_0x216334[_0x4e8d('189','45wU')]==='medicine')[0x0];$['buffTask']=taskList['filter'](_0x5d4ea6=>_0x5d4ea6[_0x4e8d('18a','1Y(g')]===_0x4e8d('18b','eKSI'))[0x0];}else{if(_0x57f7da[_0x4e8d('18c','^!gE')](_0x57f7da[_0x4e8d('18d','4gy*')],'EMULU')){_0x3a636c=JSON[_0x4e8d('71','Smig')](_0x3a636c);if(_0x48ba7e['OZPQp'](_0x3a636c[_0x4e8d('18e','nOQF')],null)&&_0x48ba7e['TIFvw'](_0x3a636c[_0x4e8d('18f','dOr2')],!![])){for(let _0x7d6349=0x0;_0x48ba7e[_0x4e8d('190','O$Q2')](_0x7d6349,_0x3a636c[_0x4e8d('191','#XUw')]['length']);_0x7d6349++){message=_0x4e8d('192','Smig');message+=_0x3a636c[_0x4e8d('193','eKSI')][_0x7d6349][_0x4e8d('c8','EC2M')]+'\x20-\x20'+_0x3a636c[_0x4e8d('194','P0&4')][_0x7d6349][_0x4e8d('195','Smig')]+_0x4e8d('196','JxLz');}}}else{console[_0x4e8d('197','@aS9')](_0x3a636c[_0x4e8d('198','TvVS')]);}}}else{$['logErr'](e);}}}catch(_0x775627){if(_0x57f7da['sPeJk'](_0x57f7da['RxCYO'],_0x57f7da[_0x4e8d('199','6bZN')])){$[_0x4e8d('19a','hQj*')](_0x775627);}else{for(let _0x17165d=0x0;_0x48ba7e[_0x4e8d('19b','8ei5')](_0x17165d,_0x3a636c[_0x4e8d('194','P0&4')]['length']);_0x17165d++){message=_0x4e8d('19c','UFqx');message+=_0x3a636c[_0x4e8d('19d','45wU')][_0x17165d]['name']+_0x4e8d('19e','eKSI')+_0x3a636c['datas'][_0x17165d][_0x4e8d('19f','a)Jk')]+_0x4e8d('1a0','dOr2');}}}finally{if(_0x57f7da[_0x4e8d('1a1','8m2v')](_0x57f7da[_0x4e8d('1a2','4#AB')],_0x4e8d('1a3','Smig'))){console['log'](_0x4e8d('1a4','HVsg')+JSON[_0x4e8d('1a5','@J$S')](_0x2cb2f4));}else{_0x57f7da['qzVct'](_0x8fc7c5);}}});}else{data=JSON[_0x4e8d('1a6','8ei5')](data);if(data['errorCode']===null){$[_0x4e8d('1a7','Smig')]=data['data'][_0x4e8d('1a8','!7Yq')];$[_0x4e8d('9c','EC2M')]=data[_0x4e8d('1a9','^!gE')][_0x4e8d('1aa','8m2v')];$[_0x4e8d('1ab','hQj*')]=data[_0x4e8d('1ac','UFqx')]['currentGrid'];}else{console['log'](data[_0x4e8d('1ad','!k&Q')]);}}});}function throwDice(){var _0x4efb80={'PuhpA':function(_0x5833f6){return _0x5833f6();},'yzNTv':function(_0x4dfdd1,_0x11e6df){return _0x4dfdd1===_0x11e6df;},'iFoHC':_0x4e8d('1ae','#XUw'),'YVqRI':function(_0x3caecb,_0x130f29){return _0x3caecb!==_0x130f29;},'XPzun':'cYKCM','lRKyP':'bIpFJ','WqZRc':_0x4e8d('1af','jOi9'),'dsopw':'YDjvL','hhpyv':function(_0xc1d72d,_0x1daaa7){return _0xc1d72d===_0x1daaa7;},'HcklG':function(_0x10d81a,_0x215a88,_0x2f7e22){return _0x10d81a(_0x215a88,_0x2f7e22);},'oYmjU':_0x4e8d('1b0','oDzl')};return new Promise(async _0x57c0ca=>{var _0x244d6a={'RiLDr':function(_0x3b964b,_0x18d4d8){return _0x4efb80[_0x4e8d('1b1','UE!P')](_0x3b964b,_0x18d4d8);},'aHZtt':function(_0x490686,_0x450cd1){return _0x490686===_0x450cd1;}};$[_0x4e8d('13e','TvVS')](_0x4efb80[_0x4e8d('1b2','dOr2')](taskUrl,_0x4efb80['oYmjU'],'&fp=&eid='),(_0x1960ed,_0xfc11e7,_0x318bf3)=>{var _0x5989fd={'GdDdp':function(_0x32be83){return _0x4efb80[_0x4e8d('1b3','Nd1K')](_0x32be83);}};if(_0x4efb80[_0x4e8d('1b4','eKSI')](_0x4e8d('1b5','Smig'),_0x4efb80['iFoHC'])){_0x5989fd['GdDdp'](_0x57c0ca);}else{try{if(_0x4efb80[_0x4e8d('1b6','O$Q2')](_0x4efb80[_0x4e8d('1b7','Vvat')],_0x4efb80[_0x4e8d('1b8','hQj*')])){message='最近运行获得以下奖励:\x0a';message+=_0x318bf3[_0x4e8d('1b9','RvpE')][i]['name']+_0x4e8d('1ba','#XUw')+_0x318bf3[_0x4e8d('1bb','!k&Q')][i]['value']+_0x4e8d('1bc','TvVS');}else{if(_0x1960ed){console[_0x4e8d('1bd','phIl')]('异常:'+JSON[_0x4e8d('1be','!k&Q')](_0x1960ed));}else{_0x318bf3=JSON['parse'](_0x318bf3);if(_0x4efb80['yzNTv'](_0x318bf3[_0x4e8d('1bf','w5xo')],null)){if(_0x4efb80[_0x4e8d('1c0','(zCR')](_0x4e8d('1c1','nOQF'),_0x4efb80[_0x4e8d('1c2','riGh')])){console['log'](_0x4e8d('1c3','2[aN')+_0x318bf3[_0x4e8d('1c4','jOi9')][_0x4e8d('1c5','H%wU')]+_0x4e8d('1c6','wYHY')+_0x318bf3['data'][_0x4e8d('1c7','bc0H')][_0x4e8d('1c8','!7Yq')]);$[_0x4e8d('1c9','oDzl')]=_0x318bf3[_0x4e8d('1ca','dOr2')][_0x4e8d('1cb','a)Jk')];}else{_0x5989fd[_0x4e8d('1cc','oDzl')](_0x57c0ca);}}else{if(_0x4efb80['yzNTv'](_0x4efb80['WqZRc'],'gZGFr')){console[_0x4e8d('1cd','4#AB')]('执行任务成功');}else{console[_0x4e8d('1ce','4gy*')](_0x318bf3[_0x4e8d('1cf','oDzl')]);}}}}}catch(_0x4c3847){$[_0x4e8d('1d0','P0&4')](_0x4c3847);}finally{if(_0x4efb80[_0x4e8d('1d1','w5xo')]!==_0x4e8d('1d2','wYHY')){_0x57c0ca();}else{_0x318bf3=JSON['parse'](_0x318bf3);if(_0x244d6a[_0x4e8d('1d3','1Y(g')](_0x318bf3[_0x4e8d('1d4','8m2v')],null)&&_0x244d6a[_0x4e8d('1d5','6bZN')](_0x318bf3[_0x4e8d('2f','wYHY')],!![])){console['log'](_0x4e8d('1d6','UFqx'));}}}}});});}function doTask(){var _0x4816ba={'zAhGv':function(_0x1490b,_0x54cb05){return _0x1490b!==_0x54cb05;},'UnXWU':_0x4e8d('1d7','UE!P'),'iQEhO':function(_0x34e451,_0x517e95){return _0x34e451===_0x517e95;},'AQAUI':_0x4e8d('1d8','w5xo'),'RGCVL':function(_0xdaefb4,_0x46cb2e,_0x199d22){return _0xdaefb4(_0x46cb2e,_0x199d22);},'fmweE':_0x4e8d('1d9','Vvat')};return new Promise(_0x4e3fc3=>{$['get'](_0x4816ba[_0x4e8d('1da','wYHY')](taskUrl,_0x4e8d('1db','4gy*'),_0x4816ba[_0x4e8d('1dc','UFqx')]),(_0x3c847e,_0x3f4769,_0x9c6134)=>{try{if(_0x3c847e){if(_0x4816ba['zAhGv'](_0x4816ba['UnXWU'],_0x4e8d('1dd','$bNT'))){console[_0x4e8d('1de','!7Yq')]('异常:'+JSON[_0x4e8d('1df','mxdQ')](_0x3c847e));}else{console[_0x4e8d('18','nOQF')]('异常:'+JSON[_0x4e8d('1e0','2[aN')](_0x3c847e));}}else{if(_0x4816ba[_0x4e8d('1e1','(zCR')](_0x4816ba['AQAUI'],'VGfXJ')){_0x9c6134=JSON[_0x4e8d('1e2','nOQF')](_0x9c6134);if(_0x9c6134['errorCode']===null){console[_0x4e8d('1e3','8m2v')](_0x4e8d('74','JxLz')+_0x9c6134['success']);}else{console[_0x4e8d('1e3','8m2v')](_0x9c6134['errorMessage']);}}else{$[_0x4e8d('1e4','!k&Q')](e);}}}catch(_0x2dd8d4){$[_0x4e8d('1e5','(zCR')](_0x2dd8d4);}finally{_0x4e3fc3();}});});}function getGameInfo(){var _0x260b04={'zCOZX':_0x4e8d('1e6','UFqx'),'SFzUu':'ewlxn','yTBSy':_0x4e8d('1e7','q0jy'),'LrAKl':function(_0x2fa435,_0x542e45){return _0x2fa435===_0x542e45;},'tcVxO':function(_0x2250d1){return _0x2250d1();},'wcmkF':function(_0x4f5611,_0x1c7021){return _0x4f5611(_0x1c7021);},'hZbzq':'getHomeInfo'};return new Promise(_0x3889c1=>{var _0x5ef24f={'AWZVs':_0x260b04['zCOZX'],'qJgdp':_0x260b04['SFzUu'],'Rswcj':_0x260b04['yTBSy'],'YGvUD':function(_0x2ab692,_0x5dde45){return _0x260b04[_0x4e8d('1e8','Vvat')](_0x2ab692,_0x5dde45);},'vzJkj':_0x4e8d('1e9','Smig'),'VhHmt':function(_0x5b5d05){return _0x260b04[_0x4e8d('1ea','(zCR')](_0x5b5d05);}};$[_0x4e8d('1eb','8ei5')](_0x260b04['wcmkF'](taskUrl,_0x260b04[_0x4e8d('1ec','oDzl')]),(_0x43b24d,_0xa8f6d7,_0x462c61)=>{try{if(_0x43b24d){if(_0x4e8d('1ed','q0jy')===_0x5ef24f[_0x4e8d('1ee','UFqx')]){console[_0x4e8d('1ef','hQj*')]('异常:'+JSON['stringify'](_0x43b24d));}else{_0x3889c1();}}else{if(_0x5ef24f[_0x4e8d('1f0','TvVS')]===_0x5ef24f[_0x4e8d('1f1','8m2v')]){console[_0x4e8d('1f2','JxLz')](_0x4e8d('1f3','9SEr')+JSON['stringify'](_0x43b24d));}else{_0x462c61=JSON[_0x4e8d('136','(zCR')](_0x462c61);if(_0x462c61[_0x4e8d('1f4','@aS9')]===null){$[_0x4e8d('1f5','45wU')]=_0x462c61[_0x4e8d('1f6','F[K%')]['jumpActivityDetail'];$[_0x4e8d('1f7','@J$S')]=_0x462c61[_0x4e8d('1f8','phIl')][_0x4e8d('1f9','bc0H')];$['currentGrid']=_0x462c61[_0x4e8d('1fa','eKSI')]['currentGrid'];}else{console['log'](_0x462c61[_0x4e8d('1fb','eKSI')]);}}}}catch(_0x139a5a){$['logErr'](_0x139a5a);}finally{if(_0x5ef24f[_0x4e8d('1fc','TvVS')](_0x5ef24f[_0x4e8d('1fd','O$Q2')],_0x5ef24f[_0x4e8d('1fe','F[K%')])){_0x5ef24f['VhHmt'](_0x3889c1);}else{console[_0x4e8d('76','xH^v')](_0x462c61[_0x4e8d('1ff','@J$S')]);}}});});}function postUrl(_0x19a21a,_0x195abe){var _0xc01ee2={'WVqEB':_0x4e8d('200','wYHY'),'qIHvJ':'*/*','NBbvU':'jdapp;iPhone;9.4.0;14.3;network/wifi;ADID/;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone12,1;addressid/;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;pv/8.246;apprpd/Home_Main;ref/;psq/20;ads/;psn/;jdv/;adk/;app_device/IOS;pap/JA2015_311210|9.4.0|IOS\x2014.3;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1','UyzaV':_0x4e8d('201','!k&Q'),'oDtYh':_0x4e8d('202','(zCR')};return{'url':''+ACT_API+_0x19a21a,'headers':{'Host':_0xc01ee2[_0x4e8d('203','Smig')],'Content-Type':'application/json','Origin':'https://sendbeans.jd.com','Accept-Encoding':_0x4e8d('204','hQj*'),'Cookie':cookie,'Connection':'keep-alive','Accept':_0xc01ee2[_0x4e8d('205','Smig')],'User-Agent':_0xc01ee2['NBbvU'],'Referer':_0xc01ee2[_0x4e8d('206','UFqx')],'Accept-Language':_0xc01ee2[_0x4e8d('207','a)Jk')]},'body':JSON[_0x4e8d('1e0','2[aN')](_0x195abe)};}function taskUrl(_0x1dce39,_0x4dcbe0=''){var _0x3b2f27={'cpQbk':_0x4e8d('208','dOr2'),'ZpcYl':'keep-alive','bvtpR':_0x4e8d('209','HVsg'),'qEOBJ':'gzip,\x20deflate,\x20br'};return{'url':''+ACT_API+_0x1dce39+'?activityId='+$['activityId']+_0x4dcbe0,'headers':{'Host':_0x4e8d('20a','4yr['),'Accept':_0x3b2f27[_0x4e8d('20b','EC2M')],'Connection':_0x3b2f27['ZpcYl'],'Cookie':cookie,'User-Agent':'jdapp;iPhone;9.4.0;14.3;network/wifi;ADID/;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone12,1;addressid/;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;pv/8.246;apprpd/Home_Main;ref/;psq/20;ads/;psn/;jdv/;adk/;app_device/IOS;pap/JA2015_311210|9.4.0|IOS\x2014.3;Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Mobile/15E148;supportJDSHWK/1','Accept-Language':_0x3b2f27['bvtpR'],'Referer':_0x4e8d('20c','#XUw'),'Accept-Encoding':_0x3b2f27[_0x4e8d('20d','JUns')]}};}function checkCookie(){var _0x1dab48={'LbRfY':function(_0x46c3f9,_0x1d9eb4){return _0x46c3f9===_0x1d9eb4;},'iLAkx':_0x4e8d('20e','P0&4'),'RzqyE':_0x4e8d('20f','xH^v'),'xavPx':function(_0x3a7d4d,_0x22504f){return _0x3a7d4d!==_0x22504f;},'nWLTp':_0x4e8d('210','bc0H'),'Lwobj':function(_0x80cced,_0x516fb8){return _0x80cced===_0x516fb8;},'cBTFn':'京东返回了空数据','cQIdP':function(_0x4ddc2e,_0x965925){return _0x4ddc2e===_0x965925;},'MEFMn':_0x4e8d('211','!7Yq'),'QyYlA':function(_0x50dc6f,_0x525fea){return _0x50dc6f===_0x525fea;},'aZDct':function(_0x3dca89,_0x3df4b1){return _0x3dca89===_0x3df4b1;},'GZztC':_0x4e8d('212','jOi9'),'IUMtB':_0x4e8d('213','eKSI'),'qQPut':_0x4e8d('214','UFqx'),'SrNXi':'me-api.jd.com','UydMT':'*/*','sWRMn':_0x4e8d('215','xH^v'),'fSbsU':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2014_3\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/14.0.2\x20Mobile/15E148\x20Safari/604.1','zqvOs':_0x4e8d('216','JxLz'),'GqTVC':_0x4e8d('217','P0&4')};const _0x1403ec={'url':_0x1dab48['qQPut'],'headers':{'Host':_0x1dab48['SrNXi'],'Accept':_0x1dab48[_0x4e8d('218','bc0H')],'Connection':_0x1dab48[_0x4e8d('219','2[aN')],'Cookie':cookie,'User-Agent':_0x1dab48[_0x4e8d('21a','EC2M')],'Accept-Language':_0x1dab48[_0x4e8d('21b','@J$S')],'Referer':_0x1dab48['GqTVC'],'Accept-Encoding':_0x4e8d('21c','nOQF')}};return new Promise(_0x241c5b=>{var _0x3c2a3b={'eiyQU':function(_0x5e0cee,_0x5bc74a){return _0x1dab48[_0x4e8d('21d','nOQF')](_0x5e0cee,_0x5bc74a);},'TqiLR':function(_0x2c1f6a,_0x1525aa){return _0x1dab48[_0x4e8d('21e','Vvat')](_0x2c1f6a,_0x1525aa);},'zquhZ':_0x1dab48[_0x4e8d('21f','jOi9')]};if(_0x1dab48[_0x4e8d('220','TvVS')]!==_0x1dab48[_0x4e8d('221','eKSI')]){console[_0x4e8d('ff','TvVS')](_0x4e8d('222','1Y(g')+JSON[_0x4e8d('223','Vvat')](err));}else{$[_0x4e8d('224','JUns')](_0x1403ec,(_0x588fb9,_0x5aa34e,_0x389e6f)=>{try{if(_0x588fb9){$[_0x4e8d('225','oDzl')](_0x588fb9);}else{if(_0x1dab48[_0x4e8d('226','E$3n')](_0x1dab48['iLAkx'],_0x4e8d('227','E$3n'))){if(_0x389e6f){_0x389e6f=JSON[_0x4e8d('180','4#AB')](_0x389e6f);if(_0x1dab48['LbRfY'](_0x389e6f['retcode'],_0x1dab48[_0x4e8d('228','UFqx')])){if(_0x1dab48[_0x4e8d('229','Vvat')](_0x1dab48[_0x4e8d('22a','TvVS')],_0x1dab48['nWLTp'])){_0x389e6f=JSON[_0x4e8d('22b','riGh')](_0x389e6f);if(_0x3c2a3b[_0x4e8d('22c','riGh')](_0x389e6f['errorCode'],null)&&_0x3c2a3b[_0x4e8d('22d','@aS9')](_0x389e6f[_0x4e8d('22e','UFqx')],!![])){console[_0x4e8d('22f','UFqx')]('领取成功,请返回app查看京豆奖励。');if(!$['isNode']){$['msg']($[_0x4e8d('230','JxLz')],_0x3c2a3b[_0x4e8d('231','a)Jk')]);}}}else{$['isLogin']=![];return;}}if(_0x1dab48[_0x4e8d('232','eKSI')](_0x389e6f['retcode'],'0')&&_0x389e6f[_0x4e8d('233','$bNT')][_0x4e8d('234','EC2M')](_0x4e8d('235','w5xo'))){$[_0x4e8d('236','!k&Q')]=_0x389e6f['data'][_0x4e8d('237','JxLz')]['baseInfo']['nickname'];}}else{$[_0x4e8d('18','nOQF')](_0x1dab48[_0x4e8d('238','oDzl')]);}}else{console[_0x4e8d('239','wYHY')](_0x4e8d('23a','8ei5'));return;}}}catch(_0x57d2ca){$['logErr'](_0x57d2ca);}finally{if(_0x1dab48['cQIdP'](_0x1dab48['MEFMn'],_0x1dab48['MEFMn'])){_0x241c5b();}else{console['log']('操作成功');}}});}});};_0xodh='jsjiami.com.v6';
// prettier-ignore
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ya_121xx/i-chenzhe.git
git@gitee.com:ya_121xx/i-chenzhe.git
ya_121xx
i-chenzhe
i-chenzhe
main

搜索帮助