forked from wzwcfei/JD-haoyangmao
-
Notifications
You must be signed in to change notification settings - Fork 2
/
jd_xmf.js
41 lines (40 loc) · 46.8 KB
/
jd_xmf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
京东小魔方 活动入口:京东app-新品首发-百万京豆
活动好像是持续进行的,cron还是修改成每天运行就好了。
脚本更新地址:https://raw.githubusercontent.com/i-chenzhe/qx/master/jd_xmf.js
已支持IOS双京东账号,Node.js支持N个京东账号
脚本兼容: QuantumultX, Surge, Loon, JSBox, Node.js
// quantumultx
[task_local]
# 京东小魔方
10 10 * * * https://raw.githubusercontent.com/i-chenzhe/qx/master/jd_xmf.js, tag= 京东小魔方, enabled=true
//Loon
[Script]
cron " 10 10 * * * " script-path=https://raw.githubusercontent.com/i-chenzhe/qx/master/jd_xmf.js ,tag= 京东小魔方
//Surge
京东小魔方 = type=cron,cronexp=" 10 10 * * * ",wake-system=1,timeout=20,script-path=https://raw.githubusercontent.com/i-chenzhe/qx/master/jd_xmf.js
* */
const $ = new Env('京东小魔方');
const notify = $.isNode() ? require('./sendNotify') : '';
//Node.js用户请在jdCookie.js处填写京东ck;
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
//IOS等用户直接用NobyDa的jd cookie
let cookiesArr = [], cookie = '';
let helpAuthor = false;//为作者助力的开关
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 !== "" && item !== null && item !== undefined);
}
var _0xodl='jsjiami.com.v6',_0x2cf9=[_0xodl,'wqDCpsOBIXg=','woN0esKXDTI=','woVOccOt','w6DCvDjDm8Ox','w5YKw6vDjzvDlCXDp8KxZRojcmYYLyM8YMODwoMebwIzwrvDt09nOMOnwqRLw5w=','w53CsDzDqcOM','wpXDvRzDtMO9','woPCtwzDsMOv','VxkYwqFr','BcOKw6g4wqI=','UjzClCXCmw==','UMOJXBDCv8Klw4fDmiU3woE1wo7Cq8O9wrjCqgfDvFlew55VwpzDpXfDpXkFDXjCg2BQwrQ1LDtHw7gVw4glw5vCv3RZw4/DnU5YdcKKEBfDhXhSw7PDiDjDi8Kywptrwq3CpsKmw5fCowMhwrNsCAR4w57Dm2XDhDJ7w4bCnkEvw7BBaiLDq8KVfMORVcKHwr7Cs8K8wrUVw45uZXXCug==','fwgHwoN2wp8zbGJBw6rDmUpmVMOfwrgoZ8OjO8KwMyzDqkxmEsKawqRvw4DDmCMBW8KyS3oAwo5+SsO8Txk=','wpNtwoYJRHXClsOZwpPCuAcHwrXCkcO+G8ODE8ONV0/CihLDqcK5wplQQcO5w4vDqsOfDcOAwrJWB8KSNMO+','K2ogEcKIKsKHeMOew6bDjj1OwrfDlMKrG8OBcV0GRAzCi8OqwoXCosKHw5Y/Gi7Co8Kdw6HDlBY9fcOlQXNuUcKk','wrfDpCfDkw==','VDIVGk4=','aD4OwodJ','wpnCujZWw7g=','woDDvDdywqgHJwDDoHbCsg==','B8OYw5IQ','C8KZwoZ5w6Ut','VSYGB188wpvDpw==','5LiP5LiM6LCm','R8OFARYnVcKeKcKMwr0=','V8OFEw0KTA==','SDwTHU4nwpbDl8KGwrxB','6I+k5b+ywrU=','ecKLwqMYGsOXw7rCpixZw7c=','fUl6GH0qwo4qC8OmwoAeL8OO','w6zDrcOAHVYLZ33CnVLDmg==','wrbDvjvDk8OL','eRh8wpU7wrBxCnZvIg==','wplhwpLDsg==','wrrCryVzw50=','A8KIwpBWw6E=','PcKVUSE=','ecKLwrApDcOX','Xks3woR4','wo4mwrkZfsOYRgxZZMKBcw==','WHrDlcOlworCocOgCxpr','wp5fM8O2w4wqwrxew4HCvHrCm8KmwrrChSA=','aGrCo8OIcw==','wphVKsOqwolpwrlPw47Cv3XDgMKpw6XDiizDuQ==','W2vDhMOlw5TDusKjTQ1+F8O8WhsXw4HDmEDCpjwLHcKRW0zCqjzDiMKEwoVuw614U8OCwoxJw7rDs8K3Gm08wqtWPA==','PXR6wq0bFsKFLMOBScKhacOkeg7DssO+H8KOw4gJYsK2FX3Cj8KfHMK1AMKZw6DDmFRoPnfCl8OHw7kMw5/DvsKVT8KGw5gLLsOYw4LDmcOzwpRjw6kZwqPDtQ==','wrd0WMKGAA==','w4LDmMOcCkQ=','VgMwA8Kl','w5olw6cYfA==','woFLfcO4wotTc8OOw68NIh3Co1jDgxV9McKeMmfDrwhaw6psKMK+wpjDgSt8DsKMYcOFw4zCihUPwrDCvj3CigBNCsKawo8uI8OtwrnCr8OvVMK6VcK7w4nCnHjCksODw5gCaMOIw51mNgHCqcOaC8OMfRQvJcOJw4/Dj35mw7vDtjZqXcKyd2zCsMOBw4LDu8OxwoXDpwBQwrslwoLCsMKDcQ5GJcOXR8Ohw6kZPsKqYMK/UsOvWsOCw4c4wrjDuMKvRR52FsKjPMOzTCAdZsOnBQ/DvWXDjkl/XcO4acOwGG0mwpnCkihtwqvDqSHDuxNJw5nCp8ObKsOlw5jCsMK/wpTCuRbCsQrCnMKDH3J5w7PDrQTDjMKPw6LCnsO+wo/DlcOGaCvDs8KzfCvDkcK0PcOGVcOPYsKdw77Dl8Kgw51Ab8K3HG7CsMOXe0ZKwrdNdcOsw7J3w4F3G0vCgcKvSMKtwq/Cq8Osw6TDoxnCqcKzw5c1JsKxbsKNDirDvELCkQRJGhHCoCN+w6fCqU/DpMKFw7XCs8KqIMOkW8KOwp/DqV82w5DDkcOlQMKNwrgGLMOuXcOfNRAZw7UzwqYHw5pSLy4Rw5bClMKDfAFPI8KUY8O+KMK8ESBawonDoF8gw7vCp8KkSsKOO2s2QcKPengeQsKVw7llw61Lw6DDpsKrw4rDucKgRsKaAihSEH9FaBfDjsKKw7fDl8KvVRAHwpJSw5BbwpdtOMKBw6TCnMO4wprDrnrCrgoqw5bCmMO4JsOow4c=','w6XCtwHDkMOY','ITHDrsOfSw==','Cns+eFE=','w6PCni3DgcOV','KhfDt8O6WzkkJX1aWTjDh2lGDD1PJcKvw7tqIcOsBMKZwqvCvMKtQwLDtwo=','csKewr4cU8KFw6fCiiRTw7lDwqfDiMKwB8OE','w6vDp8ORGR4Ycl3ChVE=','KizDqzhnwr3DoyVkIg7CucOlw5TCrw86wqHCqX3CsiTCqcO9w5nDkAnCoMKkwrrCqsO8w5oXXzo5wrhLwqvDsDNhw5jDnw5PwqfDsQ==','wr7DhyZXwpk=','w5BPwr3CkWk=','w70Qw6IaVg==','wqHCtTHDlcOjE8KB','VDDCtSTClQ==','eB4BwqhD','w5Mgw5cZ','ITTDvsOuQg==','UMOJXBDCv8Klw4fDmjpzwoEyw4TDr8O6w7nCpEfDpAVZw40YwpDDp1XDoy97InjChGo1w4Q6FGpvw4ENw4EZwpbCqUV+wpjCimprdsKPQA==','OAE8w5LCsQ==','Z07CkMKywp8=','dMOoZDjCoA==','XyXCkDXCqw==','w7XDhsOwOGU=','EMKPwrtjw608','UVFVwoghN8OqEMOvYMKQQsOe','cMKKwqE=','b8OkPy01fcKjA8Kjwo5vw4F8','NRQjw4HCkg==','wpxvwrXDvsOB','QAAUw5PCsgjDhw==','w7Q6w4rDvg==','w6vCrsOjw4vCuQ==','dzkGKkQ=','w5bCucOQw7nCpw==','SsO8Qg/Cqw==','wptALcO/','wqBVVcOGwpw=','wrbDpSlHwp0=','HwU9w5DCsQ==','wpBrOytk','wpJywo3CrQ==','MSzDrSF6w6DCpWxq','w7VPwqM=','fGPDo8OO','wqDDg8OkIOivhOawu+Wkr+i0ke+/v+ivg+ahteaei+e9gOi3tumEqeisqg==','VcOBEgsD','Zn7ChcKEwr8=','woxKa8Ovwro=','w6R6aEDCrA==','LcK1wooeGw==','woHCixM=','5LmD5LmK5p+d5YqW5Zm76Lyi5Zuy56iS5pSH5o2p','wq7DqMOow4wCwoPCug==','PQzDtsKTw50Qwq7Djg==','GsKXwpNHw5k=','w6nCv8Ozw6rCjg==','IBLDkxt9','wpthKwlXeg==','wp7DisOew4cD','LcO0w41uwqbDjw==','fQN8wpEtw7gnbHpsLBkmwrwSwqTDjsK2wpZTMcKpw6klGMO1w7sEf8OFw4XDsy18w4PCkibClmnDpsKjYcKG','a3JJBnE=','KcOvw55bwqfChxbCvcOuwqrDj8KKYcKow6nDpzpkw5I=','KhfDt8O6WzkkJX1aWTjDlTdeFWZCN8Klw7FzI8OpGsKUwqfCvMOiDEzCvUQ=','5b+b6YCy5oSr','wqPDqDfDqcOz','HkAkWHo=','aHljwq8E','aAAsw6PCsQ==','EgY3w5jCjA==','w45CZmc=','wpPDrAzDlcOT','wqV2UcKQGA==','LDnDsi0=','44G55o2p56aF44Gk6Kyi5Yao6I6r5Y+P5Lub5Luz6LSI5Y+o5Lm/w4MUMxZLZhXnmqPmjqHkv7bnlIjDpTBOwqTDpk7nmq7kuZrkuJXnr4/liJHojYXljoo=','w4tdRFLCng==','wqQgwpFnVg==','YSEwJ0w=','LcO+w4RMwqDDlQ==','w5XDscORG30Yc1E=','wpJON8O5w40=','VcOcXAPCpA==','YVR/GmA=','TSArBkw8woE=','wodAew==','UjswEMKjOcK6dA==','wpZcD8O1w4IgwrM=','w61YYg==','VsOcRQU=','44GR5o2L56aQ44C6wrfDklbDucOvw7rltJPlp5bmlIc=','5LuR5Lmc6LW15Y2j','ex5rwooQwqNlJg==','OuislemEv+aVveeamuW/ueiPm+WMvgvClUzDiz7CqsKHcAp2VxjCuHctw4nDi8OEOR/DoT9qwrjDl8KwClnDilc0FsKOw70uU8KsXXPCoMO+w5fCs18=','w7UIw57Drw0=','woJcUsOnwp8N','OALDqcOyfDUxOHJM','eVwuwpU=','cW3DocOAdMOO5baP5aW55paaw4fDtMKh','R3HDq8OZU8OKEC0=','5LqX5Lmp6LWm5YyP','SVXCjcKywqE=','wobCoyDDhMOCFsKJw6Y=','wrBAbcKEAg==','e1ZyDW4=','wozDrcOlw7Mg','XQ8GG8Kj','wqnCo8O2E2A=','QBrCogvCtg==','VcOBMCAL','bBs4wpfDoA==','QzYT','bcOsFgwy','wpLCisOKP1c=','w7PCjcO4w6HCmw==','e8KFwroJ','VX1FIcOL','FsKqwpp4w6Y=','woPDhSxywqI=','UFTCmsKj','w7DDo8OGGlY=','AMKIwrtBw7k=','w7vCmMO6w6HCqA==','cVNHwroI','cQkdwpBxw4xzLUpVwr7ClFI8bsOJw78obcOMbcKGLCDDvQRwU8Kfwr4mw5LClSw=','wq3DjMO0w4gQ','wrBma8K6KA==','BRfDmx9l','w5Q1w44vQw==','TkzCoMKywqs=','SXfCncO2w4k=','w6bDt8OaCkcQcVrCulDCiA1kbcK0wo0mDEvCvVLDrTgJwqgUw4cnPGHDqEIyw7fDu8OHPnzDlE/DnMKtwrxQw7QF','w4/DiFbDgsKIwqrCvHHDncKRw4xuwoHDpi/DhcK9w7c8ZRfCq8KfRinCnsKiworCosKCwo7CpBUvRMKEw77Cr8OTwoE=','dMOFVmgkasO2AMO+wpbDkCjCq0FGwpgwYTPDoMO/ZD7CqhpLd8OHJ8O1wrRvLDfDp8OWwqLCrQAdworCusOMw5LDmQ==','wrfCoyfDjsK1','wp8iwpRESQ==','w7JfX2zCqQ==','VlbCgcKZwo4=','dyknEcKI','O8OJw49Y','Q37DgsOmw4I=','N8Oxw6tAwpk=','EcONw48GwoM=','fxomwpLDuQ==','XxYjwrbDoQ==','wo0Qwql2RA==','wrVmU8K1Bw==','U0/Cm8K+wrcUw7ZWwq8=','GAPDvcOERw==','GcOWw4wB','UV9Nwr3Dvg==','eMKXwrA=','KgrDlh1F','5aeQ5aWY5LmM6Zam6ICp6L+P77+u5ZSD5LuC5rOl5o2p55+u44OP','woVrIsOuw4Q=','ZRZ6wpI7','wpRHJsO8w5Y=','XzRCwqkU','w7nCqMOrw6bCnw==','XxQ0wpk=','Y3fDqsOGw4s=','dSA8K8Ks','wr7CvC/DsMO+','fk4Pwp9xwoEL','wqnClCTDgsOt','w5Ugw5Ad','w6DCrHHDisK+C8OUw7/Dgw==','ag0Fwol2','FsK3wrxEw6o=','AQDDpg==','VBEBw4PCpg8=','dS3CuxDCgA==','esKUwp0OBw==','O8Ofw4tfwrU=','HCMnw53CnA==','fRwdwoE=','w6lBwrbChWA=','axgdwoNtwpI5','woVGf8OjwrUJd8O7','woPDlMOow7AS','d3pt','eDjCkBzCuSQ6wpQAw78=','Hg3DrsO8Sg==','w5XDqMOdA0s=','wr3CvMOaIXzDuFQSIMOhNEo=','FAHDmjle','wprChR3Dgw==','QHfDn8Olw67CrsOqDSBnDcKm','Z8KBwqQZE8OR','MsOzw4Vbwp3Dk1/DvcOKw7bCksKT','UB7CuzrCsg==','cGfDr8OFXMOGEj3CvMKT','IsKDamkW','5p2h5qyJ5YS76I6c5b68','wo/CsDZLw40nOsKfw4xC','5LqU5LuS6LOZ','wr7CoyI=','ZCkhAcKF','wqvDpDM=','Zlt2Gg==','wq/DjOWmu+i2t8OfaOWMoeWZuMKLLw==','w5Uuw4oZ','wrFGIMO/','w5YKw6vDjzvDlCXDp8KxZRojbXoAKnRxbMOBw4FSaQ94wrfDohNhOsO6wqMLw5bDusOyw6g=','aUpyUXVQwow8QMO2wocc','IALDosOmHzspOGJQ','w5kEw7bDj2TDjm7CrcK2eRJ5emRSKX8=','WcO3ajPClg==','UxnCghzCoA==','RMOQEBQPW8KQKMKLwqZEwqBCFMOgw6o=','w4dhwovDpsOw','RFVzwqnDrQ==','UQTCpybCjg==','eHPDv8O8UQ==','LsK4wr1lw7g=','dkJ4wrME','V398FcOr','XC3CkznCgg==','wo1qwpPDuMOw','w7DCvcO8w6fCtg==','FFE7aEU=','wrjCmsOLAX4=','XWds','agkbwolswpE1ZFI=','wpXCtyPDnsOP','woVrPzlJfA==','MArDscKd','WsKUwpIrLA==','SwoH','6I2a5YyD5Lqs5YqE5Yqb6KCi5omF5Ym1','LMKGUHARd8OJBcOUw5rCjGU=','wplKb8O9wpcc','TT0TDFk0wozDqsKBwrVAS8O1','wrXDvsOXw5YJwp4=','BsKjwqcqM8OVKk9oSS4BwpM=','woHDoCQ=','w6nDr8O2E3Q=','5p2F5q6Y5YeO6I+C5b2C','MD3DrD14w7M=','WMKDwoHCgsKWw4I8wppuwo1dw406wqA=','wozCjh7DtMKz','Zh9nwpEXwqxuLFRgPgM=','wphHc8O4wrIGfMOxw4sLPww=','woVFL8O1w40=','VsKAwoYkNw==','ScOPBz0USg==','wr3CvMOJEGvDuA==','VlBHHcOz','wqvDvcOCw7QX','w6PCsCPDnsOr','w7t2wpXDo8O1','wqLCp8OcPHfDrUQgMA==','SMOSWxQ=','dR0mAMKZ','fQN8wpEtw7gnbHl5JFllw79WwqrChMO7wppRc8Olw6cpHMO1wqBZd8OBw5/Dkyx2wpnCjH3CmWnDpsKjYcKGcMK4Kg==','HRQwwojDkcK6WsKDYhDDgGDDjsKFNhPCqk94T8Ouw7zChMOEJScAwpBJZMKKw6rDisKQI2bDjyQvwq0ww4M7OsOdwrbCp3wwwqc1w6ZLCzLCowPCvHM=','w4tawo/ClGc=','WMKWwobCvcKSwpZDw4dpw4gWw5JgwrPDmXFGe18=','w5rDkcOlDV8=','wqxKbMObwrw=','X8OITRsI','wpHChQnDmMO6','wqZAUMO9wqI=','UQdawq4J','ICrDsD9nw6LCmGN+Ng==','cykmCcK9N8K4fcO0wqrCknA=','w7RKdmnCl8K6w4rCvA==','w7fCjcO5w7nCtyw=','R37Dg8O+w7TCq8O5KwJoEQ==','w7RvVVfCuA==','ew8GwpdxwpMPdkpRwqLDiQ==','wphEacOBwp8=','wqIHJ2vCtcKnw5zCusOwZVM5ZXsidcOpdg==','EMKSwoFpw7s4w5HCicOlBWLCjBk=','w5siwovDtsOrwrk6LMKgwqjDocKGIUw=','DcKdwoZnw5k2w53CkcOFBGrCqg==','YRZ7wooOwq1nL1Ft','w4DCsTdnwr4eCjDDvnXDv8OKdEM=','w6jDjMOhE1U=','woZwYMKW','YWrDocObVMOFGyfCnsKOwqrDtQ==','YQo5Q0QNb8OYw7ML','GsORw5AFwpzChA==','TxQzwpPDqMKxCMKMRBDDkmo=','wpnChQfDnMKrwqDCoVPDtcKY','DBnCncK2wqoYw4tJwqZyw6/Cgg==','wpvDsipy','YcKFwqQHLMORw6LCmzdM','w7EVw4nDjhI=','YTYQLUc=','ZFV8','w63CjcOnw7c=','w6vCu+Wmlei2hkTDiuWNi+WbksOYHw==','w7FBwrfCuXIcVggew5tmenoG','CiE6w6A=','UVx0wqQ=','wrzCucONw40Rwo/CplPCgUtwQyBtw6BPOg==','T1NpwrXDh8Kmw7zCisKUSms7woM=','VcOewoFtw7oyw6LCksOjBkXCoV8X','R37Dg8O+w7fCr8OjDiVq','Nzd+wrwBGcOsNsOeQsO3Ng==','JwTDpsKTw5oV','QMOYBRsTTMKUEsKHwr5jw6FcAsO9w6Uzw7JAwrPCkjBnw4E6','QyEpJFs=','wprCoR3Do8Kz','YC0h','Q1jCiMK2wrY=','HcKAwqUeNw==','wqHCtTbDg8OgAw==','IUc+X04PX8O1wr9Xwog=','5Lqq5Liu6LOy','DcKowrIhAMOZJk5vUg==','XWd/IsOlw4UjNFlNFw==','aAgIwo52wp8oew==','wrwHwpJ6Xw==','w5N6R0/Clw==','w5FEwrbDtMO8','ZVgwwoV6wpw=','woHCuiNRw6k4LMKkw5db','e1Ik','Ul7CmsKiwrUH','wrPDpDXDlMOe','w5vCmys=','wp/DpzFvwqMSNy/Dtw==','woM5wqRDdsKEVTweasKLbQ==','wptvwovDo8O9wqATDcK6wqk=','w6zDrcOT','UcOPAQsS','ES80w5HCqsOs','w5bChCXCtsO2IcKYw5hVwpgfw54=','wq/DvyDDl8OZwpXDtsKkw7PCmRnCoCdGJjTDsADCmw==','w5zCkSnDqMK2bsKew5UNwp4=','dAd4wo03wqFpN3FmI1hiwqJTwqDChsK4woFZJMOywqQwFcO6wr0ZOsKCwoHClWk=','QMKPwoc/NA==','wp1+fcKWBDTDtMK1w7XDoMOP','TkxEwpzDhg==','PMKGR1wv','SikCwrZz','TMO4bBHCvw==','XMKHwqXCqMKT','PnkYXGM=','w7sIw4geVQ==','dVAWwold','fFgvwqRA','QBhqwqAO','JTg7w73Csw==','XMKNwpU=','HMKOwoc2','w7Nfd2vCtcK0w5DCrsOo','TMOZLTMx','SR8Two/DlQ==','HMOvw5oQwoI=','w5IRw6vDiy3CnHPCgcK+cxw=','w49EwqnDog==','VMOSTw==','amBrwrMGG8OMNg==','5LmX5Lus6LCV','wqXDrjXDicOrw4LCtsO+w7XDmA==','HsKfwqMGKw==','JwjDs8OiVyg8GHpTWA==','SlJ6','6Iy35b68JQ==','HMOKw54SwrDCtHRrEsKcRnATw4Q=','wpNAN8Ouw4A7wqRjw4bCtXs=','jsSWjiamhVBYDik.coNm.v6yMYU=='];(function(_0x43688a,_0x179e89,_0x496c6a){var _0x1b4a83=function(_0x3dde23,_0x5a5c7f,_0x48efef,_0x17766f,_0x19eb06){_0x5a5c7f=_0x5a5c7f>>0x8,_0x19eb06='po';var _0x4f0c3d='shift',_0x50dd2e='push';if(_0x5a5c7f<_0x3dde23){while(--_0x3dde23){_0x17766f=_0x43688a[_0x4f0c3d]();if(_0x5a5c7f===_0x3dde23){_0x5a5c7f=_0x17766f;_0x48efef=_0x43688a[_0x19eb06+'p']();}else if(_0x5a5c7f&&_0x48efef['replace'](/[SWhVBYDkNyMYU=]/g,'')===_0x5a5c7f){_0x43688a[_0x50dd2e](_0x17766f);}}_0x43688a[_0x50dd2e](_0x43688a[_0x4f0c3d]());}return 0x7603c;};return _0x1b4a83(++_0x179e89,_0x496c6a)>>_0x179e89^_0x496c6a;}(_0x2cf9,0x6e,0x6e00));var _0x5108=function(_0x725e65,_0x2fa56f){_0x725e65=~~'0x'['concat'](_0x725e65);var _0x4a0bb4=_0x2cf9[_0x725e65];if(_0x5108['GeSePc']===undefined){(function(){var _0xb57a53=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x154f8c='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0xb57a53['atob']||(_0xb57a53['atob']=function(_0x141da3){var _0x570669=String(_0x141da3)['replace'](/=+$/,'');for(var _0x39beed=0x0,_0x4cc5aa,_0x5a68fa,_0x4dee29=0x0,_0x51e0bf='';_0x5a68fa=_0x570669['charAt'](_0x4dee29++);~_0x5a68fa&&(_0x4cc5aa=_0x39beed%0x4?_0x4cc5aa*0x40+_0x5a68fa:_0x5a68fa,_0x39beed++%0x4)?_0x51e0bf+=String['fromCharCode'](0xff&_0x4cc5aa>>(-0x2*_0x39beed&0x6)):0x0){_0x5a68fa=_0x154f8c['indexOf'](_0x5a68fa);}return _0x51e0bf;});}());var _0x56c5b5=function(_0x3d5d30,_0x2fa56f){var _0x414c4a=[],_0x482e77=0x0,_0x26d5c7,_0x5de097='',_0x5f4e47='';_0x3d5d30=atob(_0x3d5d30);for(var _0x304278=0x0,_0x1c2b8b=_0x3d5d30['length'];_0x304278<_0x1c2b8b;_0x304278++){_0x5f4e47+='%'+('00'+_0x3d5d30['charCodeAt'](_0x304278)['toString'](0x10))['slice'](-0x2);}_0x3d5d30=decodeURIComponent(_0x5f4e47);for(var _0x572798=0x0;_0x572798<0x100;_0x572798++){_0x414c4a[_0x572798]=_0x572798;}for(_0x572798=0x0;_0x572798<0x100;_0x572798++){_0x482e77=(_0x482e77+_0x414c4a[_0x572798]+_0x2fa56f['charCodeAt'](_0x572798%_0x2fa56f['length']))%0x100;_0x26d5c7=_0x414c4a[_0x572798];_0x414c4a[_0x572798]=_0x414c4a[_0x482e77];_0x414c4a[_0x482e77]=_0x26d5c7;}_0x572798=0x0;_0x482e77=0x0;for(var _0x36f66d=0x0;_0x36f66d<_0x3d5d30['length'];_0x36f66d++){_0x572798=(_0x572798+0x1)%0x100;_0x482e77=(_0x482e77+_0x414c4a[_0x572798])%0x100;_0x26d5c7=_0x414c4a[_0x572798];_0x414c4a[_0x572798]=_0x414c4a[_0x482e77];_0x414c4a[_0x482e77]=_0x26d5c7;_0x5de097+=String['fromCharCode'](_0x3d5d30['charCodeAt'](_0x36f66d)^_0x414c4a[(_0x414c4a[_0x572798]+_0x414c4a[_0x482e77])%0x100]);}return _0x5de097;};_0x5108['pAfDJu']=_0x56c5b5;_0x5108['ftMZfr']={};_0x5108['GeSePc']=!![];}var _0x55cba1=_0x5108['ftMZfr'][_0x725e65];if(_0x55cba1===undefined){if(_0x5108['sOyYLp']===undefined){_0x5108['sOyYLp']=!![];}_0x4a0bb4=_0x5108['pAfDJu'](_0x4a0bb4,_0x2fa56f);_0x5108['ftMZfr'][_0x725e65]=_0x4a0bb4;}else{_0x4a0bb4=_0x55cba1;}return _0x4a0bb4;};!(async()=>{var _0x28a451={'ErWNg':function(_0x31f6be){return _0x31f6be();},'KvAPE':_0x5108('0','zV1g'),'ZGSyN':function(_0x44e266,_0x24ef3b){return _0x44e266!==_0x24ef3b;},'jFMgz':function(_0xe9409){return _0xe9409();},'stPvV':function(_0x2b805c){return _0x2b805c();},'xtpsV':function(_0x58bcf0,_0x2c15a3){return _0x58bcf0===_0x2c15a3;},'fsRon':_0x5108('1','7sFu'),'jWPku':'api.m.jd.com','AwbXI':'application/x-www-form-urlencoded','GODWq':_0x5108('2','0z(V'),'IWTxM':'gzip,\x20deflate,\x20br','etjSt':'keep-alive','nwIer':_0x5108('3','a%ca'),'lMxNd':function(_0x47a5f6){return _0x47a5f6();},'vjAkM':_0x5108('4','8rG]'),'GhuSH':'xATAn','DofjA':_0x5108('5','7CEK'),'bFyAW':'https://api.r2ray.com/jd.bargain/done','DwZWf':'application/json','DOLSw':'base','TgXry':_0x5108('6','Alrx'),'AQdfc':_0x5108('7','(p!M'),'khefs':function(_0x42ee82){return _0x42ee82();},'JCJHJ':function(_0x3afb33,_0x456a29){return _0x3afb33!==_0x456a29;},'PhZSl':function(_0x181c1f,_0x25a765){return _0x181c1f===_0x25a765;},'rhiIA':_0x5108('8','9R0C'),'mljFr':_0x5108('9','@0RO'),'oKIHc':function(_0x5a1b8e,_0x41ec70){return _0x5a1b8e===_0x41ec70;},'opJbx':function(_0x49a6d7,_0x1d92da,_0xc0324c){return _0x49a6d7(_0x1d92da,_0xc0324c);},'Ujijx':function(_0x1eddbb){return _0x1eddbb();},'vYGLq':'bOgRP','VYEqJ':function(_0x41370a){return _0x41370a();},'zdIrW':_0x5108('a','K&s1'),'ZVxLN':'大奖一闪而过,啥也没捞着。'};if(!cookiesArr[0x0]){if(_0x28a451[_0x5108('b','7CEK')]===_0x28a451[_0x5108('c','KYAu')]){$['msg']($[_0x5108('d','boH[')],_0x5108('e','0K@F'),_0x28a451[_0x5108('f','K&s1')],{'open-url':_0x28a451[_0x5108('10','x6Oh')]});return;}else{_0x28a451[_0x5108('11','4A)0')](resolve);}}for(let _0x41317c=0x0;_0x41317c<cookiesArr[_0x5108('12','0z(V')];_0x41317c++){if(cookiesArr[_0x41317c]){cookie=cookiesArr[_0x41317c];$[_0x5108('13','s&Tt')]=decodeURIComponent(cookie[_0x5108('14','K6Sl')](/pt_pin=(.+?);/)&&cookie[_0x5108('15','ePFT')](/pt_pin=(.+?);/)[0x1]);$[_0x5108('16','7sFu')]=_0x41317c+0x1;$[_0x5108('17','4A)0')]=!![];$['nickName']='';await TotalBean();console[_0x5108('18','6u5]')]('\x0a开始【京东账号'+$['index']+'】'+($['nickName']||$[_0x5108('19','yQ[T')])+'\x0a');if(!$[_0x5108('1a','K6Sl')]){$[_0x5108('1b','K&s1')]($[_0x5108('1c','ePFT')],_0x5108('1d','0z(V'),_0x5108('1e','@0RO')+$['index']+'\x20'+($[_0x5108('1f','zV1g')]||$['UserName'])+_0x5108('20','j34i'),{'open-url':_0x28a451[_0x5108('21','t9V0')]});if($[_0x5108('22','6u5]')]()){await notify[_0x5108('23','a%ca')]($[_0x5108('24','9Elm')]+_0x5108('25','G)HM')+$[_0x5108('26','G)HM')],_0x5108('27','lZI(')+$[_0x5108('28','XQI8')]+'\x20'+$[_0x5108('29','JloM')]+'\x0a请重新登录获取cookie');}continue;}if(helpAuthor){if(_0x28a451['xtpsV'](_0x28a451[_0x5108('2a','KYAu')],_0x5108('2b','7sFu'))){function _0x3c149e(){var _0x46b18d={'HLvtT':'rHTVG','ytNMp':function(_0x3dd6c8){return _0x28a451['ErWNg'](_0x3dd6c8);},'paPXm':_0x28a451[_0x5108('2c','grC%')],'WnxoX':function(_0x1e7ed1,_0xf4fdf4){return _0x28a451[_0x5108('2d','yQ[T')](_0x1e7ed1,_0xf4fdf4);},'MfpDO':'yYFYS','ZRsdq':_0x5108('2e','7Oq%')};if(_0x28a451[_0x5108('2f','2[e#')]('vbxPf','FRaLR')){return new Promise(_0x5a3825=>{var _0x181f9f={'duNwK':'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取','oVoto':_0x46b18d[_0x5108('30','EQvt')]};if(_0x46b18d[_0x5108('31','lZI(')](_0x46b18d['MfpDO'],_0x46b18d['ZRsdq'])){$[_0x5108('32','4A)0')]({'url':'https://api.r2ray.com/jd.bargain/index'},(_0x3e49e4,_0x1cc96d,_0xd5b68d)=>{try{if(_0x46b18d[_0x5108('33','EQvt')]!==_0x5108('34','7Oq%')){if(_0xd5b68d){$['zData']=JSON[_0x5108('35','f7(T')](_0xd5b68d);};}else{console['log'](e);}}catch(_0x485eb7){console['log'](_0x485eb7);}finally{_0x46b18d['ytNMp'](_0x5a3825);};});}else{$['msg']($[_0x5108('36','4#O[')],_0x181f9f[_0x5108('37','30i*')],_0x181f9f[_0x5108('38','8[Tv')],{'open-url':_0x181f9f[_0x5108('39','*(V*')]});return;}});}else{$[_0x5108('3a','XQI8')](opt,(_0x2c2a53,_0xa6c3c8,_0x38ba25)=>{if(_0x38ba25){$['zRes']=JSON[_0x5108('3b','s&Tt')](_0x38ba25);_0x46b18d[_0x5108('3c','8[Tv')](resolve);};});}}function _0x2386ba(_0x680b91,_0x3c4f59){if(_0x28a451[_0x5108('3d','f7(T')]('XbBQT',_0x28a451['fsRon'])){_0x28a451[_0x5108('3e','(p!M')](resolve);}else{let _0xefa59a={'url':_0x5108('3f','mHn('),'headers':{'Host':_0x28a451[_0x5108('40','grC%')],'Content-Type':_0x28a451[_0x5108('41','KYAu')],'Origin':_0x28a451[_0x5108('42','boH[')],'Accept-Encoding':_0x28a451['IWTxM'],'Cookie':cookie,'Connection':_0x28a451[_0x5108('43','p%Di')],'Accept':_0x28a451[_0x5108('44','XQI8')],'User-Agent':'jdapp;iPhone;9.4.0;14.3;;network/wifi;ADID/;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone10,3;addressid/;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;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','Referer':'https://h5.m.jd.com/babelDiy/Zeus/4ZK4ZpvoSreRB92RRo8bpJAQNoTq/index.html?serveId=wxe30973feca923229&actId='+_0x680b91+'&way=0&lng=&lat=&sid=&un_area=','Accept-Language':_0x5108('45','xw6W')},'body':_0x5108('46','s&Tt')+_0x680b91+_0x5108('47','%i1G')+_0x3c4f59+_0x5108('48','tfgX')};return new Promise(_0xc2642c=>{var _0xe82c76={'rtZnr':function(_0x308be6){return _0x28a451['stPvV'](_0x308be6);},'BaYoS':function(_0x530b5e,_0x308bb6){return _0x28a451[_0x5108('49','%i1G')](_0x530b5e,_0x308bb6);},'vmhNW':_0x5108('4a','x6Oh')};$['post'](_0xefa59a,(_0x2c3a4e,_0x4c4860,_0x14acbc)=>{var _0x5e3d8a={'yLQNY':function(_0x1a5ec8){return _0xe82c76[_0x5108('4b','K&s1')](_0x1a5ec8);}};if(_0xe82c76['BaYoS']('XRktR',_0xe82c76[_0x5108('4c','XQI8')])){if(_0x14acbc){$['zRes']=JSON[_0x5108('4d','yQ[T')](_0x14acbc);_0xc2642c();};}else{if(_0x14acbc){$[_0x5108('4e','0z(V')]=JSON[_0x5108('4f','xw6W')](_0x14acbc);_0x5e3d8a['yLQNY'](_0xc2642c);};}});});}}function _0x2b6d7a(_0x3bf262,_0x57f4cc){var _0xfb90dd={'wbPmK':function(_0x30adda){return _0x28a451['lMxNd'](_0x30adda);},'hRIUQ':_0x28a451[_0x5108('50','0z(V')],'gSKJf':function(_0x24ba16,_0x366c28){return _0x24ba16===_0x366c28;},'SdzRu':_0x28a451['GhuSH']};if(_0x28a451[_0x5108('51','0K@F')](_0x28a451[_0x5108('52','lZI(')],_0x5108('53','lZI('))){let _0x5505c4={'url':_0x28a451[_0x5108('54','x6Oh')],'headers':{'Content-Type':_0x28a451[_0x5108('55','KYAu')]},'body':JSON[_0x5108('56','XQI8')]({'actID':_0x3bf262,'actsID':_0x57f4cc,'done':0x1})};return new Promise(_0xf02206=>{if(_0xfb90dd['gSKJf'](_0xfb90dd[_0x5108('57','a%ca')],_0xfb90dd['SdzRu'])){$[_0x5108('58','0K@F')](_0x5505c4,(_0x49de8a,_0x1d83ec,_0xd7a3a7)=>{_0xfb90dd[_0x5108('59','JcnH')](_0xf02206);});}else{$[_0x5108('5a','4#O[')]($['name'],_0xfb90dd[_0x5108('5b','boH[')],_0x5108('5c','#yt%'));}});}else{$[_0x5108('5d','K6Sl')]=JSON[_0x5108('5e','zV1g')](data);}}await _0x28a451[_0x5108('5f','K6Sl')](_0x3c149e);if(_0x28a451[_0x5108('60','zV1g')]($[_0x5108('61','f7(T')][_0x5108('62','lZI(')]['length'],0x0)){if(_0x28a451[_0x5108('63','xw6W')](_0x28a451[_0x5108('64','yQ[T')],_0x28a451[_0x5108('65','JloM')])){$[_0x5108('66','9Elm')]=![];return;}else{for(let _0x41317c=0x0;_0x41317c<$[_0x5108('67','JloM')][_0x5108('68','p%Di')]['length'];_0x41317c++){var _0x4587a0=_0x5108('69','JloM')[_0x5108('6a','mHn(')]('|'),_0x31172a=0x0;while(!![]){switch(_0x4587a0[_0x31172a++]){case'0':await $['wait'](0x5dc);continue;case'1':if($['Res']&&_0x28a451[_0x5108('6b','8[Tv')]($[_0x5108('6c','8rG]')][_0x5108('6d','9R0C')],0x4)){await _0x28a451[_0x5108('6e','2[e#')](_0x2b6d7a,actID,actsID);}continue;case'2':await _0x28a451[_0x5108('6f','4#O[')](_0x2386ba,actID,actsID);continue;case'3':actID=$[_0x5108('70','0z(V')]['data'][_0x41317c][_0x5108('71','@0RO')];continue;case'4':actsID=$['zData'][_0x5108('72','mHn(')][_0x41317c]['actsID'];continue;}break;}};}};}else{if(data){data=JSON[_0x5108('73','omqR')](data);if(_0x28a451[_0x5108('51','0K@F')](data[_0x5108('74','mHn(')],0xd)){$['isLogin']=![];return;}$[_0x5108('75','6u5]')]=data[_0x28a451[_0x5108('76','grC%')]]['nickname'];}else{console[_0x5108('77','(p!M')]('京东服务器返回空数据');}}};$[_0x5108('78','2[e#')]=0x0;await _0x28a451[_0x5108('79','a%ca')](getTask);await _0x28a451[_0x5108('7a','s&Tt')](task);for(let _0x41317c=0x0;_0x41317c<$[_0x5108('7b','7Oq%')];_0x41317c++){if(_0x28a451['oKIHc']('bOgRP',_0x28a451['vYGLq'])){await _0x28a451[_0x5108('7c','boH[')](lottery);await $[_0x5108('7d','%i1G')](0x3e8);}else{$[_0x5108('7e','xw6W')]=data[_0x5108('7f','4#O[')][_0x5108('80','0z(V')];}}if(_0x28a451[_0x5108('81','2[e#')]($[_0x5108('82','G)HM')],0x0)){$['msg']($['name'],_0x28a451[_0x5108('83','tfgX')],_0x5108('84','Alrx')+$[_0x5108('85','XrRP')]+_0x5108('86','t9V0'));}else{$[_0x5108('87','JloM')]($['name'],'很遗憾',_0x28a451['ZVxLN']);}}}})()[_0x5108('88','yQ[T')](_0x1c7cb2=>{$[_0x5108('89','7CEK')]('','❌\x20'+$[_0x5108('8a','7sFu')]+_0x5108('8b','f7(T')+_0x1c7cb2+'!','');})['finally'](()=>{$[_0x5108('8c','p%Di')]();});function getTask(){var _0x45d104={'aJBSZ':_0x5108('8d','K6Sl'),'IDsnX':_0x5108('8e','t9V0'),'fDOai':_0x5108('8f','7sFu'),'QwaiJ':_0x5108('90','a%ca'),'bhnyX':'jdapp;iPhone;9.4.0;14.3;network/wifi;ADID/;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone12,1;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;addressid/0;pv/1.28;apprpd/MyJD_Main;ref/JDWebViewController;psq/4;ads/;psn/;jdv/0|;adk/;app_device/IOS;pap;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','KYVTv':_0x5108('91','t9V0'),'jqqWL':function(_0x29a7e3,_0x37ae0d){return _0x29a7e3!==_0x37ae0d;},'GKbOV':function(_0x3f735e,_0x2613bd){return _0x3f735e===_0x2613bd;},'fwwCk':'DODob','FpbKz':'shopInfoList','kMMgt':'gXLKs','sQvuH':'getInteractionInfo'};let _0x35bb08='{}';return new Promise(_0x7a93fd=>{var _0x562a87={'imBzG':_0x45d104[_0x5108('92','ePFT')],'TDoFp':_0x45d104[_0x5108('93','2[e#')],'ZSQdl':_0x5108('94','EQvt'),'RzKbb':_0x45d104[_0x5108('95','d8ng')],'ZSBPx':_0x45d104['QwaiJ'],'GepSG':_0x45d104[_0x5108('96','JcnH')],'BULnv':_0x45d104[_0x5108('97','2[e#')],'MoLuY':'https://h5.m.jd.com/babelDiy/Zeus/3ir78c82wkBTA4kwtuAUb3F1T5ej/index.html','YyqCn':function(_0x50f5a6,_0x33f2ff){return _0x45d104[_0x5108('98','G)HM')](_0x50f5a6,_0x33f2ff);},'iIeTg':_0x5108('99','8[Tv'),'FgfhC':function(_0x13041d,_0x830e98){return _0x45d104['GKbOV'](_0x13041d,_0x830e98);},'OpEGS':_0x5108('9a','(p!M'),'qowWu':_0x45d104[_0x5108('9b','30i*')],'ajjCH':_0x45d104[_0x5108('9c','2[e#')],'CdQHH':_0x5108('9d','^oED'),'lffWr':_0x45d104['kMMgt'],'rUsbt':function(_0x5c6589){return _0x5c6589();}};$['get'](taskUrl(_0x45d104[_0x5108('9e','f7(T')],_0x35bb08),(_0xf070bd,_0x20b9f4,_0x18c3e2)=>{if(_0x562a87[_0x5108('9f','Alrx')]('GVljX',_0x562a87[_0x5108('a0','7Oq%')])){try{if(_0xf070bd){console[_0x5108('a1','30i*')]('err:'+JSON[_0x5108('a2','mHn(')](_0xf070bd));}else{_0x18c3e2=JSON['parse'](_0x18c3e2);if(_0x562a87[_0x5108('a3','JloM')](_0x18c3e2[_0x5108('a4','#yt%')][_0x5108('a5','8rG]')],0x0)){if(_0x562a87[_0x5108('a6','4#O[')]!==_0x562a87['qowWu']){console[_0x5108('a7','9R0C')](_0x5108('a8','XrRP'));$['taskPoolInfo']=_0x18c3e2['result'][_0x5108('a9','tfgX')];$['taskSkuInfo']=_0x18c3e2[_0x5108('aa','6u5]')]['taskSkuInfo'];$[_0x5108('ab','4A)0')]=_0x18c3e2[_0x5108('ac','grC%')][_0x5108('ad','zV$8')];}else{$[_0x5108('ae','*(V*')]($[_0x5108('1c','ePFT')],_0x562a87[_0x5108('af','s&Tt')],_0x5108('b0','0K@F')+$['beanAmount']+'个京豆');}}if(_0x18c3e2[_0x5108('b1','boH[')][_0x5108('b2','j34i')](_0x562a87[_0x5108('b3','%i1G')])){$[_0x5108('b4','zV1g')]=_0x18c3e2['result'][_0x5108('b5','6u5]')];}}}catch(_0x377849){if(_0x5108('b6','K6Sl')===_0x562a87[_0x5108('b7','4#O[')]){$[_0x5108('b8','EQvt')](_0x377849);}else{$[_0x5108('b9','7Oq%')](_0x377849);}}finally{if(_0x5108('ba','30i*')!==_0x562a87[_0x5108('bb','grC%')]){let _0x165fb7={'url':_0x562a87[_0x5108('bc','a#*G')],'headers':{'Content-Type':_0x562a87[_0x5108('bd','d8ng')]},'body':JSON[_0x5108('be','7Oq%')]({'actID':actID,'actsID':actsID,'done':0x1})};return new Promise(_0x19c6c3=>{$[_0x5108('bf','ePFT')](_0x165fb7,(_0x2bb073,_0x20a584,_0xe384a5)=>{_0x19c6c3();});});}else{_0x562a87[_0x5108('c0','yQ[T')](_0x7a93fd);}}}else{return{'url':_0x5108('c1','zV1g')+functionId+_0x5108('c2','lZI(')+encodeURIComponent(_0x35bb08),'headers':{'Host':_0x562a87[_0x5108('c3','omqR')],'Origin':_0x5108('c4','j34i'),'Cookie':cookie,'Connection':_0x562a87['ZSBPx'],'Accept':_0x562a87[_0x5108('c5','s&Tt')],'User-Agent':_0x562a87[_0x5108('c6','6u5]')],'Accept-Language':_0x5108('c7','EQvt'),'Accept-Encoding':_0x562a87[_0x5108('c8','JloM')],'Referer':_0x562a87[_0x5108('c9','6u5]')]}};}});});}async function task(){var _0x4c2abd={'tDPUc':function(_0x89d1b4,_0x5e4409){return _0x89d1b4===_0x5e4409;},'hNUzf':function(_0x506bfe,_0x5b2dcf){return _0x506bfe(_0x5b2dcf);},'OkVqZ':function(_0x1f3900,_0x6c92c9){return _0x1f3900!==_0x6c92c9;},'EewDl':_0x5108('ca','zV1g'),'pcxuF':_0x5108('cb','boH['),'XVSTk':function(_0x2f67cf,_0x2aa20d){return _0x2f67cf*_0x2aa20d;}};for(let _0x4f30ff of $[_0x5108('cc','yQ[T')][_0x5108('cd','K&s1')]){switch(_0x4f30ff[_0x5108('ce','f7(T')]){case 0x4:for(let _0x247acd of $[_0x5108('cf','xw6W')]){if(_0x4c2abd[_0x5108('d0','K&s1')](_0x247acd[_0x5108('d1','mHn(')],0x0)){let _0x18762d='{\x22sku\x22:\x22'+_0x247acd[_0x5108('d2','6u5]')]+_0x5108('d3','K&s1')+$[_0x5108('d4','8[Tv')]+_0x5108('d5','^oED')+$[_0x5108('d6','8[Tv')][_0x5108('d7','zV1g')]+_0x5108('d8','*(V*');await _0x4c2abd[_0x5108('d9','s&Tt')](doTask,_0x18762d);await $[_0x5108('da','KYAu')](0xbb8);}}break;case 0x7:for(let _0x2872fa of $[_0x5108('db','G)HM')]){let _0x18762d='{\x22interactionId\x22:'+$['interactionId']+_0x5108('dc','Alrx')+_0x2872fa[_0x5108('dd','0K@F')]+',\x22taskPoolId\x22:'+$[_0x5108('de','lZI(')][_0x5108('df','%i1G')]+_0x5108('e0','XQI8')+_0x4f30ff['taskId']+'}';await doTask(_0x18762d);await $[_0x5108('e1','*(V*')](0xbb8);}break;default:if(_0x4f30ff[_0x5108('e2','4#O[')]===0x0){if(_0x4c2abd[_0x5108('e3','t9V0')](_0x4c2abd['EewDl'],_0x4c2abd[_0x5108('e4','4A)0')])){$[_0x5108('e5','7sFu')]('','❌\x20'+$[_0x5108('e6','f7(T')]+_0x5108('e7','grC%')+e+'!','');}else{if(_0x4f30ff[_0x5108('e8','omqR')](_0x4c2abd['pcxuF'])){await $[_0x5108('e9','@0RO')](_0x4c2abd['XVSTk'](_0x4f30ff['browseTime'],0x3e8));}else{await $[_0x5108('ea','JcnH')](0xbb8);}let _0x42a52e=_0x5108('eb','grC%')+$[_0x5108('ec','JcnH')]+_0x5108('ed','8[Tv')+$['taskPoolInfo'][_0x5108('ee','xw6W')]+_0x5108('ef','(p!M')+_0x4f30ff[_0x5108('f0','8rG]')]+'}';await doTask(_0x42a52e);}}break;}}}function doTask(_0x3c61d5){var _0x301cbe={'grNMp':function(_0xbd96fc,_0x3e01cb){return _0xbd96fc===_0x3e01cb;},'qCWGW':'CARnR','mSwqF':_0x5108('f1','EQvt')};return new Promise(_0x5a8f2e=>{var _0xec7177={'ccaao':function(_0x5adb0b,_0x4f05dc){return _0x301cbe[_0x5108('f2','4A)0')](_0x5adb0b,_0x4f05dc);},'rMvQv':_0x5108('f3','%i1G'),'mOZnK':_0x301cbe['qCWGW'],'lAZId':function(_0x194eb9){return _0x194eb9();}};$[_0x5108('f4','yQ[T')](taskUrl(_0x301cbe['mSwqF'],_0x3c61d5),(_0x35de43,_0x442f2f,_0xf45100)=>{var _0x37f9e3={'HojHJ':function(_0xd127d,_0x87bd59){return _0xd127d(_0x87bd59);}};try{if(_0xec7177[_0x5108('f5','XQI8')](_0xec7177[_0x5108('f6','zV$8')],_0xec7177['mOZnK'])){console['log']('获得'+_0xf45100[_0x5108('f7','JloM')][_0x5108('f8','Alrx')]['quantity']+_0x5108('f9','s&Tt'));$[_0x5108('fa','zV$8')]+=_0x37f9e3['HojHJ'](parseInt,_0xf45100['result'][_0x5108('fb','30i*')][_0x5108('fc','mHn(')]);}else{if(_0x35de43){if(_0x5108('fd','x6Oh')!==_0x5108('fe','K&s1')){if(_0x35de43){console['log'](''+JSON['stringify'](_0x35de43));}else{_0xf45100=JSON[_0x5108('ff','d8ng')](_0xf45100);$['lotteryTimes']=_0xf45100[_0x5108('100','9Elm')][_0x5108('101','XrRP')];console[_0x5108('102','9Elm')](_0xf45100[_0x5108('103','XQI8')][_0x5108('104','7CEK')]);}}else{console[_0x5108('105','a#*G')](''+JSON[_0x5108('106','*(V*')](_0x35de43));}}else{_0xf45100=JSON['parse'](_0xf45100);$[_0x5108('107','x6Oh')]=_0xf45100['result'][_0x5108('108','^oED')];console[_0x5108('109','s&Tt')](_0xf45100[_0x5108('ac','grC%')][_0x5108('10a','EQvt')]);}}}catch(_0x2e4191){$[_0x5108('10b','@0RO')](_0x2e4191);}finally{_0xec7177['lAZId'](_0x5a8f2e);}});});}function lottery(){var _0x164b1a={'DejXC':function(_0x4b0f0a){return _0x4b0f0a();},'DpkPr':_0x5108('10c','a#*G'),'bmUyK':_0x5108('10d','7CEK'),'kelTV':_0x5108('10e','a#*G'),'IQGnD':_0x5108('10f','zV1g'),'UobAP':'jdapp;iPhone;9.4.0;14.3;;network/wifi;ADID/;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone10,3;addressid/;supportBestPay/0;appBuild/167541;jdSupportDarkMode/0;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','siMrT':function(_0x4baa18,_0x2edd55){return _0x4baa18!==_0x2edd55;},'fTVQh':_0x5108('110','4#O['),'Xxhik':'yqMkv','iyMKW':_0x5108('111','KYAu'),'igTkM':function(_0x53adde,_0x2f1045){return _0x53adde!==_0x2f1045;},'rjSwm':_0x5108('112','JcnH'),'uVeeW':_0x5108('113','tfgX'),'qRpIj':function(_0x3a6f3f,_0x3a2387){return _0x3a6f3f(_0x3a2387);},'WzrVQ':'NxqDP','Ivttn':function(_0x4dd315){return _0x4dd315();},'QfGpK':function(_0x7b476){return _0x7b476();},'csuJs':_0x5108('114','mHn('),'JIlbb':'getNewLotteryInfo'};let _0xaafa2f='{\x22interactionId\x22:'+$['interactionId']+'}';return new Promise(_0x1d653b=>{var _0x103668={'leWer':function(_0x211416){return _0x164b1a['QfGpK'](_0x211416);}};if(_0x164b1a['csuJs']===_0x5108('115','ePFT')){var _0x1fc0de={'sQRwH':function(_0x3f4d3d){return _0x103668[_0x5108('116','j34i')](_0x3f4d3d);}};$['post'](opt,(_0x4b41a8,_0x2127c6,_0x29787d)=>{_0x1fc0de[_0x5108('117','Alrx')](_0x1d653b);});}else{$['get'](taskUrl(_0x164b1a[_0x5108('118','p%Di')],_0xaafa2f),(_0x2fd161,_0x3ec775,_0x23299d)=>{var _0x1d1e32={'WHtCj':function(_0x5d6bdd){return _0x164b1a['DejXC'](_0x5d6bdd);},'jDpqW':_0x164b1a['DpkPr'],'RvHSW':'application/x-www-form-urlencoded','PgIFc':_0x164b1a[_0x5108('119','9Elm')],'NdqAi':_0x164b1a[_0x5108('11a','9Elm')],'lsWMw':_0x164b1a['IQGnD'],'HaeWc':_0x164b1a[_0x5108('11b','zV1g')]};try{if(_0x164b1a['siMrT'](_0x164b1a['fTVQh'],_0x164b1a[_0x5108('11c','@0RO')])){if(_0x2fd161){console[_0x5108('11d','j34i')](_0x5108('11e','8[Tv')+JSON[_0x5108('11f','K&s1')](_0x2fd161));}else{_0x23299d=JSON['parse'](_0x23299d);if(_0x23299d['result'][_0x5108('e8','omqR')](_0x164b1a[_0x5108('120','EQvt')])){if(_0x164b1a['igTkM'](_0x164b1a[_0x5108('121','lZI(')],_0x164b1a[_0x5108('122','0K@F')])){if(_0x23299d[_0x5108('a4','#yt%')][_0x5108('123','t9V0')][_0x5108('124','d8ng')]==='京豆'){console[_0x5108('125','ePFT')]('获得'+_0x23299d[_0x5108('ac','grC%')]['lotteryInfo'][_0x5108('126','(p!M')]+_0x5108('127','@0RO'));$[_0x5108('128','7CEK')]+=_0x164b1a[_0x5108('129','zV$8')](parseInt,_0x23299d['result'][_0x5108('12a','a%ca')]['quantity']);}else{console[_0x5108('12b','JcnH')](_0x5108('12c','K&s1')+_0x23299d['result']['lotteryInfo'][_0x5108('12d','0K@F')]+'-'+_0x23299d['result'][_0x5108('12e','K6Sl')][_0x5108('12f','7Oq%')]+'\x20'+_0x23299d[_0x5108('130','KYAu')]['lotteryInfo'][_0x5108('131','6u5]')]);}}else{var _0x1391e8={'qCggK':function(_0x17f64d){return _0x1d1e32[_0x5108('132','a#*G')](_0x17f64d);}};let _0x501e82={'url':_0x5108('133','t9V0'),'headers':{'Host':_0x1d1e32[_0x5108('134','a#*G')],'Content-Type':_0x1d1e32[_0x5108('135','7CEK')],'Origin':_0x1d1e32[_0x5108('136','JloM')],'Accept-Encoding':'gzip,\x20deflate,\x20br','Cookie':cookie,'Connection':_0x1d1e32[_0x5108('137','mHn(')],'Accept':_0x1d1e32[_0x5108('138','0K@F')],'User-Agent':_0x1d1e32[_0x5108('139','2[e#')],'Referer':_0x5108('13a','ePFT')+actID+'&way=0&lng=&lat=&sid=&un_area=','Accept-Language':'zh-cn'},'body':_0x5108('13b','mHn(')+actID+_0x5108('13c','p%Di')+actsID+_0x5108('13d','yQ[T')};return new Promise(_0x5b6c40=>{$[_0x5108('13e','7CEK')](_0x501e82,(_0xa3de42,_0x26a748,_0x11084b)=>{if(_0x11084b){$['zRes']=JSON[_0x5108('13f','4A)0')](_0x11084b);_0x1391e8[_0x5108('140','mHn(')](_0x5b6c40);};});});}}else{console['log'](_0x23299d[_0x5108('a4','#yt%')][_0x5108('141','XrRP')]);}}}else{if(_0x23299d['result'][_0x5108('142','*(V*')][_0x5108('143','0K@F')]==='京豆'){console['log']('获得'+_0x23299d[_0x5108('144','8[Tv')][_0x5108('142','*(V*')][_0x5108('145','4A)0')]+_0x5108('146','EQvt'));$[_0x5108('147','EQvt')]+=parseInt(_0x23299d[_0x5108('148','EQvt')][_0x5108('149','4A)0')]['quantity']);}else{console['log'](_0x5108('14a','8rG]')+_0x23299d['result'][_0x5108('14b','4#O[')][_0x5108('14c','7sFu')]+'-'+_0x23299d['result'][_0x5108('14d','s&Tt')][_0x5108('14e','7CEK')]+'\x20'+_0x23299d['result'][_0x5108('14f','zV1g')][_0x5108('150','^oED')]);}}}catch(_0x3b8769){if(_0x164b1a[_0x5108('151','XrRP')]===_0x5108('152','8[Tv')){console[_0x5108('125','ePFT')](_0x5108('153','tfgX')+JSON['stringify'](_0x2fd161));}else{$[_0x5108('154','4#O[')](_0x3b8769);}}finally{_0x164b1a[_0x5108('155','9Elm')](_0x1d653b);}});}});}function taskUrl(_0x3c894d,_0x175b9d){var _0x357c19={'FeQda':_0x5108('156','x6Oh'),'BZhcw':'https://h5.m.jd.com','QKeaH':_0x5108('157','xw6W'),'kdCdK':_0x5108('158','K6Sl'),'RCMHC':_0x5108('159','G)HM'),'jViIy':_0x5108('15a','K6Sl'),'IfvcX':'https://h5.m.jd.com/babelDiy/Zeus/3ir78c82wkBTA4kwtuAUb3F1T5ej/index.html'};return{'url':_0x5108('15b','xw6W')+_0x3c894d+_0x5108('15c','(p!M')+encodeURIComponent(_0x175b9d),'headers':{'Host':_0x357c19[_0x5108('15d','KYAu')],'Origin':_0x357c19[_0x5108('15e','s&Tt')],'Cookie':cookie,'Connection':_0x357c19[_0x5108('15f','yQ[T')],'Accept':_0x357c19[_0x5108('160','p%Di')],'User-Agent':_0x5108('161','6u5]'),'Accept-Language':_0x357c19[_0x5108('162','a#*G')],'Accept-Encoding':_0x357c19[_0x5108('163','a%ca')],'Referer':_0x357c19['IfvcX']}};}function TotalBean(){var _0x5ab82d={'RTeQT':function(_0x4c9599){return _0x4c9599();},'PSbsc':function(_0x5bc10c,_0x43f3df){return _0x5bc10c===_0x43f3df;},'gzMRH':'TdXuZ','Ioygl':function(_0x391988,_0x1c751c){return _0x391988===_0x1c751c;},'LQFfa':_0x5108('164','Alrx'),'NmDVm':'YQecV','achHA':_0x5108('165','a#*G'),'bSOFc':function(_0x4197d7,_0x398e11){return _0x4197d7===_0x398e11;},'dwEYJ':'mtVrp','EAoFi':'application/json,text/plain,\x20*/*','GuyeF':_0x5108('166','a%ca'),'dUVNK':_0x5108('167','4#O['),'LULXl':'zh-cn','ExaGS':_0x5108('168','s&Tt'),'uDDQV':_0x5108('169','boH['),'HTpUJ':function(_0x2a0ae5,_0x387d48){return _0x2a0ae5(_0x387d48);},'koJiY':'./USER_AGENTS','hBiYG':'JDUA','Wtlai':'jdapp;iPhone;9.2.2;14.2;%E4%BA%AC%E4%B8%9C/9.2.2\x20CFNetwork/1206\x20Darwin/20.1.0'};return new Promise(async _0x3383b3=>{var _0x22b54d={'gJqJS':function(_0x5eee12){return _0x5ab82d[_0x5108('16a','*(V*')](_0x5eee12);},'SjaCo':function(_0x5c33af,_0x20c2da){return _0x5ab82d['PSbsc'](_0x5c33af,_0x20c2da);},'KzINg':function(_0x40bb32,_0x21afb3){return _0x40bb32===_0x21afb3;},'ZvjAP':_0x5ab82d['gzMRH'],'gewgA':function(_0x51d4f0,_0x3a2913){return _0x5ab82d[_0x5108('16b','omqR')](_0x51d4f0,_0x3a2913);},'BhqwO':_0x5ab82d[_0x5108('16c','p%Di')],'FElSf':_0x5108('16d','JloM'),'dQmBw':_0x5ab82d[_0x5108('16e','2[e#')],'BxYQZ':_0x5ab82d[_0x5108('16f','mHn(')],'ckfKP':_0x5108('170','p%Di'),'bJLSi':_0x5108('171','a%ca'),'YQzdf':function(_0x9797e2){return _0x9797e2();}};if(_0x5ab82d['bSOFc'](_0x5ab82d['dwEYJ'],_0x5ab82d['dwEYJ'])){const _0x11f1d2={'url':_0x5108('172','ePFT'),'headers':{'Accept':_0x5ab82d[_0x5108('173','@0RO')],'Content-Type':_0x5ab82d[_0x5108('174','XQI8')],'Accept-Encoding':_0x5ab82d['dUVNK'],'Accept-Language':_0x5ab82d[_0x5108('175','ePFT')],'Connection':_0x5ab82d[_0x5108('176','2[e#')],'Cookie':cookie,'Referer':_0x5ab82d[_0x5108('177','s&Tt')],'User-Agent':$[_0x5108('178','8[Tv')]()?process['env'][_0x5108('179','(p!M')]?process[_0x5108('17a','4#O[')][_0x5108('17b','EQvt')]:_0x5ab82d[_0x5108('17c','@0RO')](require,_0x5ab82d[_0x5108('17d','^oED')])['USER_AGENT']:$[_0x5108('17e','9R0C')](_0x5108('17f','t9V0'))?$['getdata'](_0x5ab82d[_0x5108('180','f7(T')]):_0x5ab82d['Wtlai']}};$[_0x5108('3a','XQI8')](_0x11f1d2,(_0x28b053,_0x223672,_0x2b0917)=>{if(_0x22b54d[_0x5108('181','4A)0')](_0x5108('182','f7(T'),_0x5108('183','ePFT'))){$[_0x5108('184','K6Sl')]();}else{try{if(_0x22b54d[_0x5108('185','6u5]')](_0x22b54d[_0x5108('186','*(V*')],_0x5108('187','@0RO'))){_0x22b54d['gJqJS'](_0x3383b3);}else{if(_0x28b053){if(_0x22b54d[_0x5108('188','#yt%')](_0x22b54d['BhqwO'],'mQudF')){console['log'](_0x5108('189','^oED')+JSON[_0x5108('18a','boH[')](_0x28b053));}else{console[_0x5108('18b','omqR')](''+JSON[_0x5108('a2','mHn(')](_0x28b053));console['log']($[_0x5108('18c','G)HM')]+_0x5108('18d','s&Tt'));}}else{if(_0x2b0917){_0x2b0917=JSON[_0x5108('18e','EQvt')](_0x2b0917);if(_0x2b0917[_0x22b54d[_0x5108('18f','XQI8')]]===0xd){if(_0x22b54d[_0x5108('190','6u5]')](_0x22b54d[_0x5108('191','K&s1')],_0x22b54d[_0x5108('192','zV$8')])){console[_0x5108('193','%i1G')](_0x5108('194','x6Oh'));}else{$[_0x5108('195','grC%')]=![];return;}}$[_0x5108('196','8rG]')]=_0x2b0917[_0x22b54d[_0x5108('197','8[Tv')]]['nickname'];}else{console['log']('京东服务器返回空数据');}}}}catch(_0x45829f){if(_0x5108('198','f7(T')!==_0x22b54d[_0x5108('199','boH[')]){_0x22b54d['gJqJS'](_0x3383b3);}else{$[_0x5108('19a','#yt%')](_0x45829f,_0x223672);}}finally{_0x22b54d[_0x5108('19b','grC%')](_0x3383b3);}}});}else{$[_0x5108('19c','0z(V')](e);}});};_0xodl='jsjiami.com.v6';
// prettier-ignore
function Env(t, e) { 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, o) => { 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.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let o = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); o = o ? 1 * o : 20, o = e && e.timeout ? e.timeout : o; const [r, h] = i.split("@"), a = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: o }, headers: { "X-Key": r, Accept: "*/*" } }; this.post(a, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), o = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, o) : i ? this.fs.writeFileSync(e, o) : this.fs.writeFileSync(t, o) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let o = t; for (const t of i) if (o = Object(o)[t], void 0 === o) return s; return o } 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), o = s ? this.getval(s) : ""; if (o) try { const t = JSON.parse(o); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, o] = /^@(.*?)\.(.*?)$/.exec(e), r = this.getval(i), h = i ? "null" === r ? null : r || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, o, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const r = {}; this.lodash_set(r, o, t), s = this.setval(JSON.stringify(r), 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() ? $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }) : this.isQuanX() ? $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: o, body: r } = t; e(null, { status: s, statusCode: i, headers: o, body: r }, r) }, t => e(t)) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: o, body: r } = t; e(null, { status: s, statusCode: i, headers: o, body: r }, r) }, t => e(t))) } 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()) $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", $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: o, body: r } = t; e(null, { status: s, statusCode: i, headers: o, body: r }, r) }, 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: o, body: r } = t; e(null, { status: s, statusCode: i, headers: o, body: r }, r) }, t => e(t)) } } time(t) { let e = { "M+": (new Date).getMonth() + 1, "d+": (new Date).getDate(), "H+": (new Date).getHours(), "m+": (new Date).getMinutes(), "s+": (new Date).getSeconds(), "q+": Math.floor(((new Date).getMonth() + 3) / 3), S: (new Date).getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length))); for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length))); return t } msg(e = t, s = "", i = "", o) { const r = t => { if (!t || !this.isLoon() && this.isSurge()) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } } }; this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, r(o)) : this.isQuanX() && $notify(e, s, i, r(o))); let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="]; h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h) } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }