From a34fe6f1204c95825d13a88b4c4a15f139bc4625 Mon Sep 17 00:00:00 2001
From: Faker <Faker@apple.com>
Date: Sun, 30 Oct 2022 22:48:22 +0800
Subject: [PATCH] expired

---
 jd_TreasureRank.js | 218 -----------------
 jd_hwj_sb.js       |   7 -
 jd_jfcz.js         | 391 -----------------------------
 jd_joyPark.js      | 589 --------------------------------------------
 jd_joy_park_Mod.js | 597 ---------------------------------------------
 jd_mpdz6-isv.js    |  26 --
 jd_supermh.js      | 346 --------------------------
 jd_ylyn.js         | 563 ------------------------------------------
 8 files changed, 2737 deletions(-)
 delete mode 100644 jd_TreasureRank.js
 delete mode 100644 jd_hwj_sb.js
 delete mode 100644 jd_jfcz.js
 delete mode 100644 jd_joyPark.js
 delete mode 100644 jd_joy_park_Mod.js
 delete mode 100755 jd_mpdz6-isv.js
 delete mode 100644 jd_supermh.js
 delete mode 100644 jd_ylyn.js

diff --git a/jd_TreasureRank.js b/jd_TreasureRank.js
deleted file mode 100644
index 60aec59..0000000
--- a/jd_TreasureRank.js
+++ /dev/null
@@ -1,218 +0,0 @@
-
-/*
-10豆 
-入口:排行榜-宝藏榜
-10 10 * * * jd_TreasureRank.js
-updatetime: 2022/9/29
-author: https://github.com/6dylan6/jdpro
- */
-
-const $ = new Env('京东宝藏榜');
-const notify = $.isNode() ? require('./sendNotify') : '';
-const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
-let jdNotify = true;
-//IOS等用户直接用NobyDa的jd cookie
-let cookiesArr = [], cookie = '', message = '';
-if ($.isNode()) {
-    Object.keys(jdCookieNode).forEach((item) => {
-        cookiesArr.push(jdCookieNode[item])
-    })
-    if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
-} else {
-    cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
-}
-!(async () => {
-    if (!cookiesArr[0]) {
-        $.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
-        return;
-    }
-    for (let i = 0; i < cookiesArr.length; i++) {
-        if (cookiesArr[i]) {
-            cookie = cookiesArr[i];
-            $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
-            $.index = i + 1;
-            $.isLogin = true;
-            $.nickName = '';
-            await TotalBean();
-            console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
-            if (!$.isLogin) {
-                $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
-                if ($.isNode()) {
-                    await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
-                }
-                continue
-            }
-            await doTreasureInteractive({ "type": "3", "itemId": "" }, 3)
-            await $.wait(2000);
-        }
-    }
-})()
-    .catch((e) => {
-        $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
-    })
-    .finally(() => {
-        $.done();
-    })
-
-
-
-function getTreasureRanks() {
-    body = 'functionId=getTreasureRanks&body={"queryType":"1","rankType":18,"ids":["1"]}&appid=newrank_action&clientVersion=11.2.2&client=wh5&ext={"prstate":"0"}'
-    return new Promise(async (resolve) => {
-        $.post(taskUrl(body), async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(` API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data)
-                    if (data.isSuccess) {
-                        $.storeIdlist = data.result.data.map((valu, index, arr) => { return valu.storeId });
-                    } else {
-                        console.log(data)
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve()
-            }
-        })
-    })
-}
-
-function doTreasureInteractive(body, type) {
-    body = `functionId=doTreasureInteractive&body=${encodeURIComponent(JSON.stringify(body))}&appid=newrank_action&clientVersion=11.2.2&client=wh5&ext={"prstate":"0"}`
-    return new Promise(async (resolve) => {
-        $.post(taskUrl(body), async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(` API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data)
-                    //console.log(data);
-                    if (data.isSuccess) {
-                        switch (type) {
-                            case 1:
-                                $.browseTaskCompletionCnt = data.result.browseTaskCompletionCnt;
-                                break;
-                            case 2:
-                                $.taskParam = data.result.taskParam;
-                                break;
-                            case 3:
-                                if (data.result.rewardType === 20001) {
-                                    console.log(data.result.rewardTitle, data.result.discount);
-                                } else {
-                                    console.log(data);
-                                }
-                                break;
-                        }
-                    } else {
-                        console.log(data)
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve()
-            }
-        })
-    })
-}
-
-function taskUrl(body) {
-    return {
-        url: `https://api.m.jd.com/client.action`,
-        body,
-        headers: {
-            'Host': 'api.m.jd.com',
-            'origin': 'https://h5.m.jd.com',
-            'Content-Type': 'application/x-www-form-urlencoded',
-            'User-Agent': $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-            'Cookie': cookie
-        }
-    }
-}
-
-function getExtract(array) {
-    const random = (min, max) => Math.floor(Math.random() * (max - min) + min);
-    let index = random(0, array.length);
-    return array.splice(index, 1);
-}
-
-function TotalBean() {
-    return new Promise(async resolve => {
-        const options = {
-            url: "https://wq.jd.com/user_new/info/GetJDUserInfoUnion?sceneval=2",
-            headers: {
-                Host: "wq.jd.com",
-                Accept: "*/*",
-                Connection: "keep-alive",
-                Cookie: cookie,
-                "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-                "Accept-Language": "zh-cn",
-                "Referer": "https://home.m.jd.com/myJd/newhome.action?sceneval=2&ufc=&",
-                "Accept-Encoding": "gzip, deflate, br"
-            }
-        }
-        $.get(options, (err, resp, data) => {
-            try {
-                if (err) {
-                    $.logErr(err)
-                } else {
-                    if (data) {
-                        data = JSON.parse(data);
-                        if (data['retcode'] === 1001) {
-                            $.isLogin = false;
-                            return;
-                        }
-                        if (data['retcode'] === 0 && data.data && data.data.hasOwnProperty("userInfo")) {
-                            $.nickName = data.data.userInfo.baseInfo.nickname;
-                        }
-                    } else {
-                        console.log('京东服务器返回空数据');
-                    }
-                }
-            } catch (e) {
-                $.logErr(e)
-            } finally {
-                resolve();
-            }
-        })
-    })
-}
-function showMsg() {
-    return new Promise(resolve => {
-        if (!jdNotify) {
-            $.msg($.name, '', `${message}`);
-        } else {
-            $.log(`京东账号${$.index}${$.nickName}\n${message}`);
-        }
-        resolve()
-    })
-}
-function safeGet(data) {
-    try {
-        if (typeof JSON.parse(data) == "object") {
-            return true;
-        }
-    } catch (e) {
-        console.log(e);
-        console.log(`京东服务器访问数据为空,请检查自身设备网络情况`);
-        return false;
-    }
-}
-function jsonParse(str) {
-    if (typeof str == "string") {
-        try {
-            return JSON.parse(str);
-        } catch (e) {
-            console.log(e);
-            $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
-            return [];
-        }
-    }
-}
-// 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) }
\ No newline at end of file
diff --git a/jd_hwj_sb.js b/jd_hwj_sb.js
deleted file mode 100644
index dc937d0..0000000
--- a/jd_hwj_sb.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-10 6,20 * * * jd_hwj_sb.js
-平行时空 刷金币
-*/
-const $ = new Env('平行时空-金币');
-var _0xodb='jsjiami.com.v6',_0xodb_=['‮_0xodb'],_0x12fb=[_0xodb,'wpYhfkJH','w4pYw6M7Vg==','wrF8w6BRw7E=','wosAwqJ4IQ==','wrwTwrNOGA==','w65Uw596w6M=','wqdQWmQU','wqF6CRIP','w4UVwonDpQ==','LcK2HzE/','w4PDvDLDkio=','w4NJw74zfQ==','eSXCp8KLwok=','PsKKZ8KqwqU=','wodWw65zw5M=','w7HDoSFYwok=','wr/CosOdWcKo','wrp5FAcswqo=','wrpuUnUA','OMKxRFfDog==','wrkaR1NLdsKBwqI=','w73Dv8Oqw7w5','EcOcw54Z','w5bDoQnDiTRw','w6DCqkUuWQ==','w7hCw5Uvfw==','bAzDgAzCiz5NPA==','wqp4QBQa','w5bCt8OzeRU=','wq5TWipW','wqXDj8OqVQE=','w4/DjcO9w5As','w4AowqbDt8K0','AMK3YlDDjA==','TFZMw6HCtHk=','JgfDs1DDhQ==','SyXDqDrCgw==','w4N4w407XQ==','wqVedQ==','6I6U5b2+77+D','w5Qfwp7DtcKfwp8=','5q695YWE5bqM','XcO5w5DCgcKD','w6NqS0VT','DsO4w4YATg==','w6zCtsOlZgI=','wrPCmlbDgDc=','dSTCrQ==','MMOGA8O6HcOvJn7CoA==','woXCkFM=','wrPCiHoV6K+L5rCu5aao6Las77yb6K2t5qGw5py657+66LeA6YWe6K2R','OjMzHA==','w4fDqx7DmQ==','wrIawqI=','c8Kwwo8QFA==','WjTCn8K6wq8=','w4vDjxHDkRA=','w64JwroUw7g=','XUVxw7PCiQ==','LsOCBsOh','wrJ7wotFEw==','woDCr8Ocf8K4','GA1YYsOb','wotyPhsV','WCTCn8O0w7U=','TMKiwrI1BQ==','wpRpwrNYHA==','w7Jiw6hy','w6QNwrY=','PDUnNHbCqQ==','ZMK/eg==','w5ZPw510w5Y=','wpsawoNdOA==','LSDDtkDDjw==','MsK7WFDDgg==','YcOPw6E=','6Iy15b+777y+','wrtFa0Y/','E8KnPAshHQ==','BQPDhHjDvw==','5q+D5YWd5biJ','UcKMwr8qKHwjesKHShk=','DQ/Dr8Oww6vCrCdTwpw=','w7fDpirDrRI=','wotuaWcj','wplEw49Nw6k=','MwPDscO4w48=','wpFaIG8y','YMOBw74=','w5EOdFIo','w7VqTWJS','wrdfO3Eyw7AMwrN8','NcKkSg==','f8OFw6vCqMKzQDDDmcOzZMOf','NMKqVQ==','DcKSVMKdwr4=','OcKNJhsn','VkHDk8O9Zg==','5q+75YS25buX','w5l9w5gYZA==','YCbDjSvCiQ==','csOtFkJt','R8O9H2pj','AMKJOg0m','HsO6C8OEwok=','esK1blvCpTU=','PsOKH8OlwpM=','GcOpw7cqaA==','aTnCpcOrw7FDd8OBNcKtW8Oiw40VwplU','eTfDoh/CjA==','JcK5Q0M=','CsK0OA8J','FybDo3HDnw==','w6zDpcKqwp4=','w57CpMOWSg==','w6AFXk4Rw7E=','cjPCp8OAw4s=','R8KIwq05','NATDtkTDnw==','w7Zofg==','6I2e5b2o77yu','wprCvcOOTcKT','5q675YWE5biY','MsONBcO5wog=','wr3Dt8OLWhs=','HMKlOkwDMQ==','w4IbwpnDoQ==','wrptwrRoIA==','ZMOsDmpA','WwHCtw==','wroeWmM=','w4jDqx0=','w64Iwosew78=','acOBw7LCqA==','wrp5FAkwwqnDlw==','w4FyScOeYQ==','5q+55YWT5bmv','worCnMO2YMKB','ASdYUcOw','w7xoQEx/','AMOrIsOiwoE=','asO5PWxp','D8KnKho=','wqlRNQ==','wo3CnkDDuQ==','dHtvw7bCuQ==','acKhwok6LA==','SsObCA==','w418w4gkfjU=','EsKJKhIU','wpJXwq5l','UFTDt8O9w4bCpCFewozCkUnCuMKJ','w7/DrVt1','w7QKwqscKlk2','wqhlHSI=','wotMwqtkPjpNdA==','FQ3DlVfDgsOh','DRjDssOrw6A=','QATCmMOhw5s=','fsO1PlVO','c1TDv8O5cyM=','wp/Ch3LDtRw=','wpxuw7x3w77CscOoRA==','w6HDjR7ClnM=','OytsZcOC','YcKjUUHCrijCgw==','f8Kkwo8lTsOIw7x5','ScKYW8K5WcKiZeW8mOWkkuOAhOS6teS4qei2t+WPlw==','woFJX3IN','TDjCr8O0w5BWf8O7','w5vDijDCoWw=','w7XCp1obbA==','YMOTw6E=','w6YDwrwT','44CB5oyd56eW44GfY8OGw753w7IY5baI5aa55peU','dl/DtcO7fw==','MhvDg1DDoMO0f8Ky','w4/or4nphp/mlrLnmKzlv6zoj5XljIMZARPDqcO7QUJkwqtDC8K3wptew7Q1w7omdWTDvMKbS0DCgibCksKmGcK+w5xbRcKAwpXDsMKBw5jCmUfCocOOwqxw','wq1KJnIkwoNNw7pxDAbDs8KlX1Yhw6APDcK5wphfw7t+w7EsdHTDusKRCmvCiSPCmcOxRMK2w5hBZcKBwp8=','w73Du2xpGgQ=','w6DDgw0=','6I+05byl772r','woNmEG0e','5q+o5YWe5bqY','LDk7C2DCvcKXw4vDpg3Dug==','L8OdFg==','wpFqeilVMyzChcOz','6IyQ5Y2T5rW+5Yq65aeN6Le+','w7Bj5aeB6LeRY3TljKPlmZrCsEA=','AwfDiEc=','w7fCqF49','wpB7ezVXIA==','w6oDSWYvw7fCm8K8w6U/H8OM','w65iw6B3w57DvXbDgcKQXMO3','wp8oZXBH','wrHCj3zDviE=','w4rDt8OGw58iEBTDrMO7w48rDcKCwq4BccOhVsKp','FxXDq8Oww7HCrgdR','CcKoTVjDqw==','wpFFd1UG','wrYawrE=','6I+95Y215rWJ5Yio5ouw5YiLWeW+veWLveaviOWFuOW6ne++lg==','ecKMwrYdFw==','wpZKFk8Y','dy7Cr8Oi','wprDmsOAdxxww5xueg==','w7jDp0U=','w4APwoHDrMK1wofDhlQ=','KDBPZ8O5','wpPDm8O1eTE=','w64DQw==','5bSQ5ruD57m6','w7XCgsOoQxs=','YMKkUFjCnw==','w6bDrUR0GxIYLsK/PcOt','w4gfwojDpA==','w4Q0b1cy','TcKMwrw8','w4VVVsOnVg==','FsKGPzUf','6JWM5Lid5q64QcO0wp8=','w55fw65Uw6M=','bMOLw5DCvMK8','birCo8Oy','w4oVwoo=','w4rDpRfDmQ==','bcO45aSG6LSHwoZm5Y2p5Zq8w5rDgg==','wq4mwoPCgS4g','CcOcw4AIS8O4S1JoUVbCrg==','c8KkwpYNb8ONw7Q=','wr5zw5Zmw4g=','VsOGAGtrWQTDvVfCsjdFwrZob8KualbDoSE=','w7HDkhbDtS0=','w4ctwoPDscKq','w5DDrcOaw7sm','OsKlK0ke','U8K+wrI1DA==','w6PDpRnCoGs=','wodvw7Znw4k=','woQFwqXCrS4=','BjvDglbDvg==','woNSwq1hIzxlZF9ZGw5Uw6LCs8OqGzQKIsKcQxDCiR4sciHCswAAw7s9','w4bDqD/CtA==','KcOWEMOjA8KzJkjCsXt3UMKqGcOLJRJowqbCmMKCwoXDv8OIXcKkwpBRRk/CqcKKwqc7woDCgsK/BnTDtMOyw6vDsjwRInQnw4rDllvCsMObwotUUkw/VsKWJ07Di8OFw67CgMO2PsOvIT3CmV7DgsK0wqTDiMKswqcxw6h3Y8O3wpfDtcOBw7bCjAvCrcO0wqRUw65Vwp8OHi3DhVfCgS7CrsOJQMKyw4nDhllME8OFHMOvwpwfwqMQaMOwDMO0w7YgS2rDucOuEsOBM8KDWA0IE8OYwrbDs8ONw5vDoClxw4Ehw4vDuEg7w63Dsy0dwpYwZMOL','OMK7XcKwwrPDmkhbfMOrbMOyU8OZwqMvScObCB9QKj1MH8Kww5PDqsO3w5ZLYcOowoTDpMO3a8O6w4PClFnCjcK1Q8KXw4ktK0YyFMO/wrfDiw==','BcKLwrY8NDI=','wprCi0bDsT5JwocpaQ==','w7Rzw7lmw4TCqQrCjcKeXsO7e8OGOsOSwqVbRMOURsKG','w6PCrVAbbg==','OjF8cMOJw59PAg7DoMK9cBjDpUY9A8KQZ8Oyw5Rqw7ZMw4E=','L8OXH8O0B8Og','w6vDs8KBwpXCocK3','wqPCu2vDjQNrwrwQUQQ9BsKJ','E8KPcsKMwoTComltWsOCTMOYWA==','w4pwX8O4RQ==','w6ceRzcJwrorSsKhNRxBw48=','w7PDrVZiHxUR','wq5UZgAtwpwV','wptHwopIGQ==','DxzDklLDncKvPcO4QcKGwr4ccsObGsOVYFLDujfDlMKsd8OSeSnDgBbChVfCsipqWMO0dsOdJBpnZsK8wqTCjcKiVMOMw53DscOmAz/DuiLDqEZ2w7QaOsO3wpTCpMK6w4FfZRMEb8O/w6QZw6wcwpdkA8O8','wrs5wpnChG50w5jDn8OsDH1cwrU9CxY3','qZjUFrsjinZami.cnolCmPlB.vwq6=='];if(function(_0x1186d3,_0x1be8f4,_0x21820a){function _0xd266cc(_0x2de3a0,_0x735c02,_0x405cae,_0x116d52,_0x2a8ce2,_0x8557d6){_0x735c02=_0x735c02>>0x8,_0x2a8ce2='po';var _0x152689='shift',_0x3cb9bd='push',_0x8557d6='‮';if(_0x735c02<_0x2de3a0){while(--_0x2de3a0){_0x116d52=_0x1186d3[_0x152689]();if(_0x735c02===_0x2de3a0&&_0x8557d6==='‮'&&_0x8557d6['length']===0x1){_0x735c02=_0x116d52,_0x405cae=_0x1186d3[_0x2a8ce2+'p']();}else if(_0x735c02&&_0x405cae['replace'](/[qZUFrnZnlCPlBwq=]/g,'')===_0x735c02){_0x1186d3[_0x3cb9bd](_0x116d52);}}_0x1186d3[_0x3cb9bd](_0x1186d3[_0x152689]());}return 0x102439;};return _0xd266cc(++_0x1be8f4,_0x21820a)>>_0x1be8f4^_0x21820a;}(_0x12fb,0x97,0x9700),_0x12fb){_0xodb_=_0x12fb['length']^0x97;};function _0x2634(_0x4a2f2d,_0x3097c0){_0x4a2f2d=~~'0x'['concat'](_0x4a2f2d['slice'](0x1));var _0x2826ce=_0x12fb[_0x4a2f2d];if(_0x2634['XqvWRi']===undefined){(function(){var _0x4bc3ad=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x1dbd8c='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x4bc3ad['atob']||(_0x4bc3ad['atob']=function(_0x3239a4){var _0x2be622=String(_0x3239a4)['replace'](/=+$/,'');for(var _0x1f77ae=0x0,_0x5a9f7c,_0x580eed,_0x1bcc66=0x0,_0x2e072d='';_0x580eed=_0x2be622['charAt'](_0x1bcc66++);~_0x580eed&&(_0x5a9f7c=_0x1f77ae%0x4?_0x5a9f7c*0x40+_0x580eed:_0x580eed,_0x1f77ae++%0x4)?_0x2e072d+=String['fromCharCode'](0xff&_0x5a9f7c>>(-0x2*_0x1f77ae&0x6)):0x0){_0x580eed=_0x1dbd8c['indexOf'](_0x580eed);}return _0x2e072d;});}());function _0x3b61e9(_0x203173,_0x3097c0){var _0x10ca6f=[],_0x30254c=0x0,_0x52d44a,_0x17ca65='',_0x28dedb='';_0x203173=atob(_0x203173);for(var _0x3b5f95=0x0,_0x471b87=_0x203173['length'];_0x3b5f95<_0x471b87;_0x3b5f95++){_0x28dedb+='%'+('00'+_0x203173['charCodeAt'](_0x3b5f95)['toString'](0x10))['slice'](-0x2);}_0x203173=decodeURIComponent(_0x28dedb);for(var _0x78354f=0x0;_0x78354f<0x100;_0x78354f++){_0x10ca6f[_0x78354f]=_0x78354f;}for(_0x78354f=0x0;_0x78354f<0x100;_0x78354f++){_0x30254c=(_0x30254c+_0x10ca6f[_0x78354f]+_0x3097c0['charCodeAt'](_0x78354f%_0x3097c0['length']))%0x100;_0x52d44a=_0x10ca6f[_0x78354f];_0x10ca6f[_0x78354f]=_0x10ca6f[_0x30254c];_0x10ca6f[_0x30254c]=_0x52d44a;}_0x78354f=0x0;_0x30254c=0x0;for(var _0x55c0d9=0x0;_0x55c0d9<_0x203173['length'];_0x55c0d9++){_0x78354f=(_0x78354f+0x1)%0x100;_0x30254c=(_0x30254c+_0x10ca6f[_0x78354f])%0x100;_0x52d44a=_0x10ca6f[_0x78354f];_0x10ca6f[_0x78354f]=_0x10ca6f[_0x30254c];_0x10ca6f[_0x30254c]=_0x52d44a;_0x17ca65+=String['fromCharCode'](_0x203173['charCodeAt'](_0x55c0d9)^_0x10ca6f[(_0x10ca6f[_0x78354f]+_0x10ca6f[_0x30254c])%0x100]);}return _0x17ca65;}_0x2634['euHZRO']=_0x3b61e9;_0x2634['GoLdvT']={};_0x2634['XqvWRi']=!![];}var _0x5f255d=_0x2634['GoLdvT'][_0x4a2f2d];if(_0x5f255d===undefined){if(_0x2634['DKoZDF']===undefined){_0x2634['DKoZDF']=!![];}_0x2826ce=_0x2634['euHZRO'](_0x2826ce,_0x3097c0);_0x2634['GoLdvT'][_0x4a2f2d]=_0x2826ce;}else{_0x2826ce=_0x5f255d;}return _0x2826ce;};const jdCookieNode=require(_0x2634('‮0','z&G&'));let cookiesArr=[],cookie;Object[_0x2634('‫1','UADk')](jdCookieNode)[_0x2634('‫2','0QAz')](_0x2e306b=>{cookiesArr[_0x2634('‮3','0x*H')](jdCookieNode[_0x2e306b]);});$[_0x2634('‫4','2QsR')]='';!(async()=>{var _0x2f43bd={'iApix':_0x2634('‫5','BZmo'),'FXBoI':_0x2634('‮6','z&G&'),'vxFmL':_0x2634('‮7','5HqP'),'PPmLQ':function(_0x59bcbb,_0x1a8c08){return _0x59bcbb(_0x1a8c08);},'WfZTw':function(_0x28fd8e,_0x324e6f){return _0x28fd8e===_0x324e6f;},'fnpGP':_0x2634('‫8','1I5d')};for(let _0x55dbab=0x0;_0x55dbab<cookiesArr[_0x2634('‫9','DjQE')];_0x55dbab++){if(_0x2f43bd[_0x2634('‫a','W7y5')]==='YORgE'){cookie=cookiesArr[_0x55dbab];$[_0x2634('‫b','ucx2')]=_0x2f43bd['PPmLQ'](decodeURIComponent,cookie['match'](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x2634('‮c','B8zO')](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x2634('‫d','$xgC')]=_0x55dbab+0x1;$[_0x2634('‮e','6zkV')]=!![];$[_0x2634('‮f','glhT')]='';console['log'](_0x2634('‮10','FfSc')+$[_0x2634('‫11','Zqy)')]+'】'+($[_0x2634('‮f','glhT')]||$[_0x2634('‫12','5HqP')])+'*********\x0a');if(!$['isLogin']){if(_0x2f43bd[_0x2634('‫13','B8zO')](_0x2f43bd['fnpGP'],_0x2f43bd[_0x2634('‮14','Dnoz')])){$[_0x2634('‮15','3KD!')]($[_0x2634('‫16','qFnW')],_0x2634('‮17','glhT'),'京东账号'+$[_0x2634('‫18','DjQE')]+'\x20'+($['nickName']||$[_0x2634('‫19','BZmo')])+_0x2634('‫1a','*)M3'),{'open-url':_0x2634('‫1b','*)M3')});if($[_0x2634('‮1c','UADk')]()){}continue;}else{console[_0x2634('‮1d','B8zO')](_0x2634('‫1e','FfSc')+data['data'][_0x2f43bd['iApix']][_0x2f43bd[_0x2634('‫1f','*)M3')]]+_0x2634('‮20','ucx2'));$[_0x2634('‫21','NFsR')]=!![];}}await main();}else{console[_0x2634('‮22','FfSc')](JSON[_0x2634('‫23',']lU9')](mainInfo));console['log'](_0x2634('‮24','7NBb'));return;}}})()['catch'](_0x1c5bd3=>{$['log']('','❌\x20'+$['name']+_0x2634('‮25','6eoY')+_0x1c5bd3+'!','');})['finally'](()=>{$[_0x2634('‫26','BZmo')]();});async function main(){var _0x1c73f6={'UGeXq':_0x2634('‮27','Dnoz'),'OGJhc':_0x2634('‫28',']lU9'),'htMvV':'successToast','HpzzL':_0x2634('‫29','32Rj'),'MedxL':'activityInfo','ybLBs':'raiseInfo','xwudq':_0x2634('‮2a','[8VE'),'ZeoEZ':function(_0x3736ca,_0xe34607){return _0x3736ca===_0xe34607;},'StDMO':_0x2634('‫2b','UXA3'),'zuGgC':_0x2634('‮2c','W7y5'),'FXKTP':function(_0x21098e,_0x146421){return _0x21098e<_0x146421;},'wDpKR':'CeYlP','BXcBT':function(_0x294e37,_0x29a5ed){return _0x294e37(_0x29a5ed);},'akVuf':'promote_addScore'};let _0x471689={};let _0x13bf0b=await takePost(_0x2634('‮2d','lh98'),{'inviteId':$[_0x2634('‮2e','z&G&')]});if(_0x13bf0b&&_0x13bf0b[_0x1c73f6['HpzzL']]&&_0x13bf0b[_0x1c73f6['MedxL']]){_0x13bf0b=_0x13bf0b[_0x1c73f6[_0x2634('‮2f','62l&')]];_0x471689=_0x13bf0b[_0x1c73f6[_0x2634('‫30','Zqy)')]];console[_0x2634('‫31','x0qe')](_0x2634('‫32','wwah')+_0x471689[_0x1c73f6['xwudq']]);}else{if(_0x1c73f6[_0x2634('‫33','#ok8')](_0x1c73f6[_0x2634('‫34','*)M3')],'QutNw')){$[_0x2634('‫35','5HqP')]=0x0;console['log'](JSON['stringify'](data));}else{console['log'](JSON[_0x2634('‮36','WaN0')](_0x13bf0b));console[_0x2634('‫37','UADk')]('获取活动失败');return;}}if(_0x471689[_0x2634('‮38','2Tr)')]){if(_0x1c73f6[_0x2634('‮39','$xgC')]===_0x1c73f6[_0x2634('‮3a','WaN0')]){console[_0x2634('‮3b','32Rj')](_0x2634('‮3c','2QsR'));return;}else{console['log'](data[_0x1c73f6['UGeXq']][_0x1c73f6[_0x2634('‫3d','LJ#4')]][_0x1c73f6[_0x2634('‫3e','6zkV')]]);$[_0x2634('‮3f','UADk')]=!![];}}$[_0x2634('‮40','2Tr)')]=0xa;for(let _0x1e4688=0x0;_0x1c73f6[_0x2634('‫41','32Rj')](_0x1e4688,0xa)&&$[_0x2634('‫42','#ok8')]>0x0;_0x1e4688++){if(_0x1c73f6[_0x2634('‫43','1bZ5')]===_0x1c73f6[_0x2634('‫44','m3x9')]){console['log'](_0x2634('‫45','ucx2'));await _0x1c73f6[_0x2634('‫46','[8VE')](takePost,_0x1c73f6[_0x2634('‫47','3KD!')]);await $[_0x2634('‮48','5HqP')](0x7d0);}else{$[_0x2634('‫49','2Tr)')]('','❌\x20'+$[_0x2634('‫4a','7i2x')]+_0x2634('‫4b','62l&')+e+'!','');}}}async function takePost(_0x434c2c,_0x15e718={}){var _0x3219c0={'yNlLO':'data','DRMml':_0x2634('‮4c','6eoY'),'BZAEe':'successToast','kKLZZ':_0x2634('‫4d',')kij'),'xayTA':function(_0x3ac438,_0x49d398){return _0x3ac438(_0x49d398);},'QutWr':_0x2634('‫4e','glhT'),'duPEm':'times','Owasa':function(_0x404065,_0x4fe7ab){return _0x404065!==_0x4fe7ab;},'EoGvh':_0x2634('‮4f','ucx2'),'czvce':_0x2634('‫50','1I5d'),'yjgXP':_0x2634('‮51','7i2x'),'LtPOr':_0x2634('‮52','2Tr)'),'gxHnr':_0x2634('‮53','lh98'),'bZQRq':_0x2634('‮54','s4wP'),'NKwvc':function(_0x3c752f,_0x2fd592){return _0x3c752f===_0x2fd592;},'gAJsr':_0x2634('‫55','#ok8'),'VddJu':'QoyLv','loQwZ':_0x2634('‫56','B8zO'),'RIibu':_0x2634('‫57','ucx2'),'yisuE':'JkYKo','fgXXf':_0x2634('‮58','6eoY'),'GzCNt':_0x2634('‫59','BZmo'),'pdzGR':_0x2634('‫5a','2QsR'),'NHYGW':_0x2634('‫5b','B8zO'),'yeWES':_0x2634('‫5c','FfSc')};let _0x1781a0=_0x2634('‫5d','nm3[')+_0x434c2c+_0x2634('‫5e','#ok8')+JSON[_0x2634('‮5f','W7y5')](_0x15e718);let _0x1efeb3={'url':_0x2634('‮60','[8VE'),'body':_0x1781a0,'headers':{'Accept':'application/json','Content-Type':_0x3219c0[_0x2634('‫61','Dnoz')],'Origin':_0x2634('‮62','$xgC'),'Cookie':cookie,'Content-Length':_0x1781a0[_0x2634('‫63','FfSc')],'Accept-Language':'zh-CN','user-agent':$[_0x2634('‫64','T!MB')]()?process['env'][_0x2634('‮65','W7y5')]?process['env'][_0x2634('‫66','nm3[')]:_0x3219c0[_0x2634('‫67','1bZ5')](require,_0x2634('‮68','gX4a'))['USER_AGENT']:$[_0x2634('‫69','UADk')](_0x3219c0['NHYGW'])?$[_0x2634('‮6a','gX4a')]('JDUA'):_0x3219c0[_0x2634('‮6b','2QsR')],'Referer':_0x2634('‮6c','BZmo'),'Accept-Encoding':_0x2634('‮6d','6eoY')}};return new Promise(_0x1fbf1e=>{var _0x27da65={'SbPQJ':_0x3219c0['yNlLO'],'JHPba':_0x3219c0['DRMml'],'AoUrk':_0x3219c0[_0x2634('‫6e','UXA3')],'bkbZQ':'score','vlBzv':_0x3219c0[_0x2634('‫6f','n17t')],'YQzNs':function(_0x3fa67d,_0x2b6f0f){return _0x3219c0[_0x2634('‮70','ucx2')](_0x3fa67d,_0x2b6f0f);},'cIRpV':_0x3219c0[_0x2634('‫71','x0qe')],'lrQRm':function(_0x12eb33,_0x4ee2f6){return _0x12eb33===_0x4ee2f6;},'LMRjm':_0x3219c0['duPEm'],'LaXKs':function(_0x2b52c8,_0x5ee69c){return _0x2b52c8===_0x5ee69c;},'uHTba':_0x2634('‮72','x0qe'),'PYVHY':function(_0x33a534,_0x3602b3){return _0x33a534===_0x3602b3;},'ymRoV':_0x2634('‫73','[8VE'),'oKkmH':function(_0x5e8007,_0x5dc56f){return _0x3219c0[_0x2634('‫74','Zqy)')](_0x5e8007,_0x5dc56f);},'VsGMz':_0x3219c0['EoGvh'],'mZOGE':_0x3219c0['czvce'],'cvNgQ':_0x3219c0[_0x2634('‮75','0x*H')],'asqDR':_0x2634('‮76','2Tr)'),'vKnUV':_0x3219c0[_0x2634('‮77','m3x9')],'MxlaJ':_0x3219c0[_0x2634('‫78','7i2x')],'Tdrme':_0x3219c0[_0x2634('‫79','n17t')],'xZZGn':function(_0x458174,_0x35660a){return _0x3219c0[_0x2634('‮7a','afp&')](_0x458174,_0x35660a);},'omTHW':_0x3219c0[_0x2634('‮7b','nm3[')],'kvwqD':function(_0x1954ba,_0x49b717){return _0x3219c0[_0x2634('‫7c','ucx2')](_0x1954ba,_0x49b717);},'vQeRe':_0x3219c0[_0x2634('‫7d','7NBb')],'pNESq':_0x3219c0[_0x2634('‮7e','1#y*')],'fjZhf':_0x2634('‮7f','0x*H'),'AqWLZ':_0x3219c0[_0x2634('‫80','Zqy)')],'wRyQg':_0x3219c0[_0x2634('‫81','62l&')],'foYfz':_0x2634('‫82','UXA3'),'sKelY':_0x3219c0['fgXXf'],'DYWiS':_0x3219c0[_0x2634('‮83','lh98')]};$[_0x2634('‮84',')kij')](_0x1efeb3,async(_0x29138c,_0x45779b,_0x4b267a)=>{var _0x569b9d={'TYyDi':'data','XOiej':_0x2634('‮85','7i2x'),'IpBca':_0x2634('‮86','Dnoz'),'xnwyh':function(_0x918ae9,_0x1b9be4){return _0x918ae9-_0x1b9be4;},'aKusk':function(_0x28dad2,_0x306a8e){return _0x27da65[_0x2634('‮87','n17t')](_0x28dad2,_0x306a8e);},'aIplg':_0x2634('‫88','VmCq'),'SlPfq':_0x27da65[_0x2634('‮89','gX4a')],'kxmFU':function(_0x3ccd8b,_0x59e29d){return _0x27da65[_0x2634('‫8a','LJ#4')](_0x3ccd8b,_0x59e29d);},'nTwgz':function(_0x5b75b3,_0x56bd93){return _0x5b75b3(_0x56bd93);},'BXalD':_0x27da65[_0x2634('‫8b',']lU9')]};if(_0x27da65[_0x2634('‫8c','WaN0')](_0x27da65[_0x2634('‫8d','lh98')],_0x2634('‫8e','2Tr)'))){if(_0x4b267a[_0x27da65['SbPQJ']][_0x27da65['JHPba']][_0x27da65[_0x2634('‫8f','62l&')]]){console['log'](_0x4b267a['data'][_0x2634('‮90','KcOZ')][_0x27da65[_0x2634('‮91','BZmo')]]);$['refreshFlag']=!![];}else if(_0x4b267a[_0x27da65['SbPQJ']][_0x27da65[_0x2634('‫92','VmCq')]][_0x27da65[_0x2634('‮93','n17t')]]){console[_0x2634('‫94','gX4a')](_0x2634('‫95','#ok8')+_0x4b267a[_0x27da65['SbPQJ']][_0x2634('‮96','2Tr)')][_0x27da65['bkbZQ']]+_0x2634('‮97','[8VE'));$['refreshFlag']=!![];}}else{try{if(_0x27da65[_0x2634('‫98','3KD!')](_0x27da65['ymRoV'],_0x27da65[_0x2634('‫99','tG5e')])){if(_0x29138c){if(_0x27da65[_0x2634('‫9a',')kij')](_0x27da65[_0x2634('‮9b','LJ#4')],_0x2634('‫9c','W7y5'))){console[_0x2634('‫9d','5HqP')](''+JSON[_0x2634('‮9e','FfSc')](_0x29138c));console[_0x2634('‮9f','W7y5')]($['name']+_0x2634('‮a0','Dnoz'));}else{$[_0x2634('‮a1','NFsR')]();}}else{_0x4b267a=JSON['parse'](_0x4b267a);if(_0x27da65['PYVHY'](_0x4b267a[_0x2634('‫a2','7i2x')],'31')){$[_0x2634('‫a3','x0qe')]=!![];}if(_0x27da65[_0x2634('‮a4','#ok8')](_0x434c2c,_0x27da65[_0x2634('‮a5','afp&')])){if(_0x27da65[_0x2634('‫a6','7i2x')](_0x2634('‮a7','qFnW'),_0x27da65[_0x2634('‮a8','KcOZ')])){if(_0x4b267a&&_0x4b267a[_0x27da65['asqDR']]===0x0&&_0x4b267a[_0x2634('‫a9','wwah')]&&_0x27da65[_0x2634('‮aa','2QsR')](_0x4b267a[_0x27da65['SbPQJ']][_0x27da65['cIRpV']],0x0)&&_0x4b267a[_0x27da65[_0x2634('‮ab','1#y*')]][_0x27da65[_0x2634('‫ac','$xgC')]]){if(_0x4b267a[_0x27da65[_0x2634('‫ad','0x*H')]]['result'][_0x27da65[_0x2634('‫ae','5HqP')]]){if(_0x27da65[_0x2634('‫af','#ok8')](_0x27da65['vKnUV'],_0x27da65[_0x2634('‫b0','2QsR')])){$[_0x2634('‫b1','[8VE')]=0x0;console[_0x2634('‫b2','qFnW')](_0x4b267a[_0x569b9d['TYyDi']][_0x2634('‮b3','NFsR')]);}else{console[_0x2634('‮b4','6zkV')](_0x4b267a[_0x27da65['SbPQJ']][_0x27da65[_0x2634('‮b5','[8VE')]][_0x27da65[_0x2634('‫b6','x0qe')]]);$['refreshFlag']=!![];}}else if(_0x4b267a[_0x27da65['SbPQJ']][_0x27da65[_0x2634('‮b7','BZmo')]][_0x2634('‫b8','62l&')]){console[_0x2634('‮b9','3KD!')](_0x2634('‫ba','32Rj')+_0x4b267a[_0x27da65[_0x2634('‮bb','Zqy)')]][_0x2634('‫bc','m3x9')][_0x27da65[_0x2634('‮bd','BZmo')]]+_0x2634('‫be',']lU9'));$[_0x2634('‫bf','#ok8')]=!![];}}else{console[_0x2634('‮1d','B8zO')](JSON[_0x2634('‫c0','z&G&')](_0x4b267a));}if(_0x4b267a&&_0x4b267a[_0x27da65[_0x2634('‫c1','7i2x')]]&&_0x4b267a[_0x27da65['SbPQJ']][_0x27da65[_0x2634('‫c2','Zqy)')]]===0x6c){if(_0x27da65[_0x2634('‮c3','ucx2')](_0x27da65[_0x2634('‮c4','z&G&')],_0x27da65[_0x2634('‮c5','*)M3')])){$[_0x2634('‫c6','3KD!')]=!![];}else{$['canHelp']=![];}}if(_0x4b267a&&_0x4b267a[_0x27da65['SbPQJ']]&&_0x27da65['PYVHY'](_0x4b267a[_0x27da65[_0x2634('‮c7','32Rj')]][_0x27da65['cIRpV']],-0xd2)){if(_0x27da65['xZZGn']('XQnEE',_0x27da65[_0x2634('‮c8','tG5e')])){mainInfo=mainInfo[_0x27da65['vlBzv']];raiseInfo=mainInfo[_0x2634('‫c9','*)M3')];console[_0x2634('‮ca','nm3[')]('获取活动成功,当前次元币:'+raiseInfo[_0x2634('‫cb','3KD!')]);}else{$[_0x2634('‮cc','nm3[')]=!![];}}}else{console['log']('获得:'+_0x4b267a[_0x569b9d[_0x2634('‫cd','nm3[')]][_0x569b9d[_0x2634('‮ce','m3x9')]][_0x569b9d[_0x2634('‮cf','DjQE')]]+_0x2634('‮d0','x0qe'));$['need']=_0x569b9d[_0x2634('‫d1','n17t')](_0x569b9d[_0x2634('‮d2','VmCq')](Number,_0x4b267a[_0x569b9d[_0x2634('‮d3','1I5d')]][_0x569b9d['XOiej']][_0x569b9d[_0x2634('‫d4','1I5d')]]),_0x569b9d[_0x2634('‮d5','m3x9')](Number,_0x4b267a[_0x569b9d[_0x2634('‮d6','wwah')]][_0x2634('‫d7','6zkV')][_0x2634('‫d8','wwah')]));}}if(_0x27da65[_0x2634('‫d9',')kij')](_0x434c2c,_0x2634('‫da','5HqP'))){if(_0x4b267a&&_0x4b267a[_0x27da65['SbPQJ']]&&_0x27da65[_0x2634('‮db','VmCq')](_0x4b267a[_0x2634('‫dc','62l&')][_0x27da65['cIRpV']],0x67)){if(_0x27da65[_0x2634('‫dd','m3x9')](_0x27da65['vQeRe'],_0x27da65[_0x2634('‫de','BZmo')])){if(_0x4b267a&&_0x4b267a[_0x569b9d[_0x2634('‫cd','nm3[')]]&&_0x4b267a[_0x569b9d['TYyDi']][_0x569b9d['SlPfq']]===0x67){$[_0x2634('‫df','T!MB')]=0x0;console['log'](_0x4b267a[_0x2634('‫e0','LJ#4')][_0x2634('‮e1','32Rj')]);}else if(_0x4b267a&&_0x4b267a[_0x569b9d['TYyDi']]&&_0x569b9d[_0x2634('‫e2','5HqP')](_0x4b267a[_0x2634('‮e3','#ok8')][_0x569b9d[_0x2634('‮e4','BZmo')]],0x0)){console[_0x2634('‮e5','tG5e')](_0x2634('‫e6','W7y5')+_0x4b267a[_0x569b9d['TYyDi']][_0x2634('‮4c','6eoY')][_0x569b9d[_0x2634('‮e7','1#y*')]]+_0x2634('‮e8','tG5e'));$[_0x2634('‫b1','[8VE')]=_0x569b9d[_0x2634('‮e9','wwah')](_0x569b9d['aKusk'](Number,_0x4b267a[_0x569b9d[_0x2634('‫ea','WaN0')]][_0x2634('‫eb','s4wP')][_0x569b9d['aIplg']]),_0x569b9d['nTwgz'](Number,_0x4b267a[_0x2634('‫ec','2Tr)')][_0x569b9d[_0x2634('‫ed','2QsR')]][_0x569b9d[_0x2634('‮ee','1I5d')]]));}else{$['need']=0x0;console[_0x2634('‫ef','afp&')](JSON['stringify'](_0x4b267a));}}else{$[_0x2634('‮f0','UXA3')]=0x0;console[_0x2634('‮f1','7i2x')](_0x4b267a[_0x2634('‫e0','LJ#4')][_0x27da65[_0x2634('‫f2','qFnW')]]);}}else if(_0x4b267a&&_0x4b267a[_0x2634('‫f3','3KD!')]&&_0x4b267a['data'][_0x2634('‫f4','0x*H')]===0x0){if(_0x27da65['oKkmH'](_0x27da65['AqWLZ'],_0x27da65['wRyQg'])){console[_0x2634('‫9d','5HqP')]('获得:'+_0x4b267a['data']['result'][_0x2634('‫f5','1bZ5')]+_0x2634('‫f6','0x*H'));$['need']=_0x27da65[_0x2634('‮f7','1#y*')](Number,_0x4b267a[_0x27da65[_0x2634('‫f8','$xgC')]][_0x27da65['JHPba']][_0x27da65[_0x2634('‮f9','tG5e')]])-Number(_0x4b267a[_0x27da65['SbPQJ']][_0x27da65[_0x2634('‮fa','wwah')]][_0x27da65[_0x2634('‮fb','1I5d')]]);}else{$['canHelp']=![];}}else{$[_0x2634('‮fc','m3x9')]=0x0;console[_0x2634('‫fd','*)M3')](JSON[_0x2634('‮36','WaN0')](_0x4b267a));}}if(_0x4b267a&&_0x4b267a[_0x27da65[_0x2634('‫c1','7i2x')]]&&_0x4b267a[_0x2634('‮fe','W7y5')][_0x27da65[_0x2634('‮ff','KcOZ')]]){_0x4b267a=_0x4b267a[_0x27da65['SbPQJ']][_0x27da65[_0x2634('‫100','#ok8')]];}}}else{console[_0x2634('‫101','1I5d')]('已满级');return;}}catch(_0x39b079){$[_0x2634('‮102','n17t')](_0x39b079,_0x45779b);}finally{if(_0x27da65[_0x2634('‮103','m3x9')]!==_0x27da65['DYWiS']){_0x1fbf1e(_0x4b267a);}else{cookiesArr[_0x2634('‮104','2QsR')](jdCookieNode[item]);}}}});});};_0xodb='jsjiami.com.v6';
-function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);class s{constructor(t){this.env=t}send(t,e="GET"){t="string"==typeof t?{url:t}:t;let s=this.get;return"POST"===e&&(s=this.post),new Promise((e,i)=>{s.call(this,t,(t,s,r)=>{t?i(t):e(s)})})}get(t){return this.send.call(this.env,t)}post(t){return this.send.call(this.env,t,"POST")}}return new class{constructor(t,e){this.name=t,this.http=new s(this),this.data=null,this.dataFile="box.dat",this.logs=[],this.isMute=!1,this.isNeedRewrite=!1,this.logSeparator="\n",this.startTime=(new Date).getTime(),Object.assign(this,e),this.log("",`🔔${this.name}, 开始!`)}isNode(){return"undefined"!=typeof module&&!!module.exports}isQuanX(){return"undefined"!=typeof $task}isSurge(){return"undefined"!=typeof $httpClient&&"undefined"==typeof $loon}isLoon(){return"undefined"!=typeof $loon}toObj(t,e=null){try{return JSON.parse(t)}catch{return e}}toStr(t,e=null){try{return JSON.stringify(t)}catch{return e}}getjson(t,e){let s=e;const i=this.getdata(t);if(i)try{s=JSON.parse(this.getdata(t))}catch{}return s}setjson(t,e){try{return this.setdata(JSON.stringify(t),e)}catch{return!1}}getScript(t){return new Promise(e=>{this.get({url:t},(t,s,i)=>e(i))})}runScript(t,e){return new Promise(s=>{let i=this.getdata("@chavy_boxjs_userCfgs.httpapi");i=i?i.replace(/\n/g,"").trim():i;let r=this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");r=r?1*r:20,r=e&&e.timeout?e.timeout:r;const[o,h]=i.split("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(t,e,i)=>s(i))}).catch(t=>this.logErr(t))}loaddata(){if(!this.isNode())return{};{this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e);if(!s&&!i)return{};{const i=s?t:e;try{return JSON.parse(this.fs.readFileSync(i))}catch(t){return{}}}}}writedata(){if(this.isNode()){this.fs=this.fs?this.fs:require("fs"),this.path=this.path?this.path:require("path");const t=this.path.resolve(this.dataFile),e=this.path.resolve(process.cwd(),this.dataFile),s=this.fs.existsSync(t),i=!s&&this.fs.existsSync(e),r=JSON.stringify(this.data);s?this.fs.writeFileSync(t,r):i?this.fs.writeFileSync(e,r):this.fs.writeFileSync(t,r)}}lodash_get(t,e,s){const i=e.replace(/\[(\d+)\]/g,".$1").split(".");let r=t;for(const t of i)if(r=Object(r)[t],void 0===r)return s;return r}lodash_set(t,e,s){return Object(t)!==t?t:(Array.isArray(e)||(e=e.toString().match(/[^.[\]]+/g)||[]),e.slice(0,-1).reduce((t,s,i)=>Object(t[s])===t[s]?t[s]:t[s]=Math.abs(e[i+1])>>0==+e[i+1]?[]:{},t)[e[e.length-1]]=s,t)}getdata(t){let e=this.getval(t);if(/^@/.test(t)){const[,s,i]=/^@(.*?)\.(.*?)$/.exec(t),r=s?this.getval(s):"";if(r)try{const t=JSON.parse(r);e=t?this.lodash_get(t,i,""):e}catch(t){e=""}}return e}setdata(t,e){let s=!1;if(/^@/.test(e)){const[,i,r]=/^@(.*?)\.(.*?)$/.exec(e),o=this.getval(i),h=i?"null"===o?null:o||"{}":"{}";try{const e=JSON.parse(h);this.lodash_set(e,r,t),s=this.setval(JSON.stringify(e),i)}catch(e){const o={};this.lodash_set(o,r,t),s=this.setval(JSON.stringify(o),i)}}else s=this.setval(t,e);return s}getval(t){return this.isSurge()||this.isLoon()?$persistentStore.read(t):this.isQuanX()?$prefs.valueForKey(t):this.isNode()?(this.data=this.loaddata(),this.data[t]):this.data&&this.data[t]||null}setval(t,e){return this.isSurge()||this.isLoon()?$persistentStore.write(t,e):this.isQuanX()?$prefs.setValueForKey(t,e):this.isNode()?(this.data=this.loaddata(),this.data[e]=t,this.writedata(),!0):this.data&&this.data[e]||null}initGotEnv(t){this.got=this.got?this.got:require("got"),this.cktough=this.cktough?this.cktough:require("tough-cookie"),this.ckjar=this.ckjar?this.ckjar:new this.cktough.CookieJar,t&&(t.headers=t.headers?t.headers:{},void 0===t.headers.Cookie&&void 0===t.cookieJar&&(t.cookieJar=this.ckjar))}get(t,e=(()=>{})){t.headers&&(delete t.headers["Content-Type"],delete t.headers["Content-Length"]),this.isSurge()||this.isLoon()?(this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.get(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)})):this.isQuanX()?(this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t))):this.isNode()&&(this.initGotEnv(t),this.got(t).on("redirect",(t,e)=>{try{if(t.headers["set-cookie"]){const s=t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();s&&this.ckjar.setCookieSync(s,null),e.cookieJar=this.ckjar}}catch(t){this.logErr(t)}}).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)}))}post(t,e=(()=>{})){if(t.body&&t.headers&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/x-www-form-urlencoded"),t.headers&&delete t.headers["Content-Length"],this.isSurge()||this.isLoon())this.isSurge()&&this.isNeedRewrite&&(t.headers=t.headers||{},Object.assign(t.headers,{"X-Surge-Skip-Scripting":!1})),$httpClient.post(t,(t,s,i)=>{!t&&s&&(s.body=i,s.statusCode=s.status),e(t,s,i)});else if(this.isQuanX())t.method="POST",this.isNeedRewrite&&(t.opts=t.opts||{},Object.assign(t.opts,{hints:!1})),$task.fetch(t).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>e(t));else if(this.isNode()){this.initGotEnv(t);const{url:s,...i}=t;this.got.post(s,i).then(t=>{const{statusCode:s,statusCode:i,headers:r,body:o}=t;e(null,{status:s,statusCode:i,headers:r,body:o},o)},t=>{const{message:s,response:i}=t;e(s,i,i&&i.body)})}}time(t,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return t}msg(e=t,s="",i="",r){const o=t=>{if(!t)return t;if("string"==typeof t)return this.isLoon()?t:this.isQuanX()?{"open-url":t}:this.isSurge()?{url:t}:void 0;if("object"==typeof t){if(this.isLoon()){let e=t.openUrl||t.url||t["open-url"],s=t.mediaUrl||t["media-url"];return{openUrl:e,mediaUrl:s}}if(this.isQuanX()){let e=t["open-url"]||t.url||t.openUrl,s=t["media-url"]||t.mediaUrl;return{"open-url":e,"media-url":s}}if(this.isSurge()){let e=t.url||t.openUrl||t["open-url"];return{url:e}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}log(...t){t.length>0&&(this.logs=[...this.logs,...t]),console.log(t.join(this.logSeparator))}logErr(t,e){const s=!this.isSurge()&&!this.isQuanX()&&!this.isLoon();s?this.log("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)}
diff --git a/jd_jfcz.js b/jd_jfcz.js
deleted file mode 100644
index f1d2d5e..0000000
--- a/jd_jfcz.js
+++ /dev/null
@@ -1,391 +0,0 @@
-/*
-见缝插针
-活动地址: 京东极速版-百元生活费-玩游戏现金可提现
-活动时间:
-更新时间:2021-11-30
-脚本兼容: QuantumultX, Surge,Loon, JSBox, Node.js
-=================================Quantumultx=========================
-[task_local]
-#见缝插针
-15 10 * * * https://raw.githubusercontent.com/jiulan/platypus/main/scripts/jd_jfcz.js, tag=见缝插针, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
-=================================Loon===================================
-[Script]
-cron "15 10 * * *" script-path=https://raw.githubusercontent.com/jiulan/platypus/main/scripts/jd_jfcz.js,tag=见缝插针
-===================================Surge================================
-见缝插针 = type=cron,cronexp="15 10 * * *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/jiulan/platypus/main/scripts/jd_jfcz.js
-====================================小火箭=============================
-见缝插针 = type=cron,script-path=https://raw.githubusercontent.com/jiulan/platypus/main/scripts/jd_jfcz.js, cronexpr="15 10 * * *", timeout=3600, enable=true
- */
-const $ = new Env('见缝插针');
-const notify = $.isNode() ? require('./sendNotify') : '';
-const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
-//IOS等用户直接用NobyDa的jd cookie
-let cookiesArr = [];
-let linkId = 'DYWV0DabsUxdj2FEBIkurg';
-let stop = false;
-let needleLevel = 1;
-let totalLevel = 400;
-let allMessage = '';
-$.cookie = '';
-if ($.isNode()) {
-    Object.keys(jdCookieNode).forEach((item) => {
-        cookiesArr.push(jdCookieNode[item])
-    })
-} else {
-    cookiesArr = [
-        $.getdata("CookieJD"),
-        $.getdata("CookieJD2"),
-        ...$.toObj($.getdata("CookiesJD") || "[]").map((item) => item.cookie)].filter((item) => !!item);
-}
-
-!(async () => {
-    if (!cookiesArr[0]) {
-        $.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
-        return;
-    }
-    for (let i = 0; i < cookiesArr.length; i++) {
-        if (cookiesArr[i]) {
-            totalLevel = 400
-            $.cookie = cookiesArr[i];
-            $.UserName = decodeURIComponent($.cookie.match(/pt_pin=([^; ]+)(?=;?)/) && $.cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
-            $.index = i + 1;
-            $.isLogin = true;
-            $.nickName = $.UserName;
-            $.hotFlag = false; //是否火爆
-            await TotalBean();
-            console.log(`\n*****开始【京东账号${$.index}】${$.nickName || $.UserName}*****\n`);
-            if (!$.isLogin) {
-                $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {"open-url": "https://bean.m.jd.com/bean/signIndex.action"});
-                if ($.isNode()) {
-                    await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
-                }
-                continue
-            }
-            stop = false
-            //获取下关等级
-            await getNeedleLevelInfo();
-
-            console.log('当前关卡: ',needleLevel+"/"+totalLevel)
-            await $.wait(500);
-            for (let i = needleLevel; i <= totalLevel; i++) {
-                if (stop){
-                    console.log('关卡异常下个')
-                    break
-                }
-                await getNeedleLevelInfo(needleLevel);
-                console.log('当前关卡: ',needleLevel+"/"+totalLevel)
-                if (stop){
-                    console.log('关卡异常下个')
-                    break
-                }
-                await saveNeedleLevelInfo(needleLevel);
-                await $.wait(3000);
-            }
-            await needleMyPrize()
-        }
-    }
-    if ($.isNode() && allMessage) {
-        await notify.sendNotify(`${$.name}`, `${allMessage}`,{ url: 'https://t.me/joinchat/DrHGFt-CvcE2ZmU1' })
-    }
-})()
-    .catch((e) => {
-        $.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')
-    })
-    .finally(() => {
-        $.done();
-    })
-
-function TotalBean() {
-    return new Promise(async resolve => {
-        const options = {
-            url: "https://me-api.jd.com/user_new/info/GetJDUserInfoUnion",
-            headers: {
-                Host: "me-api.jd.com",
-                Accept: "*/*",
-                Connection: "keep-alive",
-                Cookie: $.cookie,
-                "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-                "Accept-Language": "zh-cn",
-                "Referer": "https://home.m.jd.com/myJd/newhome.action?sceneval=2&ufc=&",
-                "Accept-Encoding": "gzip, deflate, br"
-            }
-        }
-        $.get(options, (err, resp, data) => {
-            try {
-                if (err) {
-                    $.logErr(err)
-                } else {
-                    if (data) {
-                        data = JSON.parse(data);
-                        if (data['retcode'] === "1001") {
-                            $.isLogin = false; //cookie过期
-                            return;
-                        }
-                        if (data['retcode'] === "0" && data.data && data.data.hasOwnProperty("userInfo")) {
-                            $.nickName = data.data.userInfo.baseInfo.nickname;
-                        }
-                    } else {
-                        $.log('京东服务器返回空数据');
-                    }
-                }
-            } catch (e) {
-                $.logErr(e)
-            } finally {
-                resolve();
-            }
-        })
-    })
-}
-
-/**
- * 获取奖励列表
- * @returns {Promise<unknown>}
- */
-function needleMyPrize() {
-    return new Promise(async resolve => {
-        let body = {"linkId":linkId,"pageNum":1,"pageSize":30};
-
-        const options = {
-            url: `https://api.m.jd.com/?functionId=needleMyPrize&body=${escape(JSON.stringify(body))}&_t=${+new Date()}&appid=activities_platform&clientVersion=3.5.0`,
-            headers: {
-                'Origin': 'https://joypark.jd.com',
-                'Cookie': $.cookie,
-                'Connection': `keep-alive`,
-                'Accept': `application/json, text/plain, */*`,
-                'Host': `api.m.jd.com`,
-                'X-Requested-With': `com.jingdong.app.mall`,
-                'User-Agent':  $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-                'Accept-Encoding': `gzip, deflate, br`,
-                'Accept-Language': `zh-CN,zh;q=0.9,en-CN;q=0.8,en;q=0.7,zh-TW;q=0.6,en-US;q=0.5`,
-                'Referer': `https://joypark.jd.com/?activityId=${linkId}&channel=wlfc&sid=a05ade6f8abfce24dbbc74fw&un_area=2`,
-                'Sec-Fetch-Site': `same-site`,
-                'Content-Type': 'application/x-www-form-urlencoded'
-            }
-        }
-        $.get(options, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    if (safeGet(data)) {
-                        data = $.toObj(data);
-                        if (data.code === 0) {
-                            for(let item of data.data.items.filter(vo => vo.needleMyPrizeItemVO.prizeType===4)){
-                                if(item.needleMyPrizeItemVO.prizeStatus===0 && item.status===1){
-                                    await $.wait(500);
-                                    console.log(`提现${item.needleMyPrizeItemVO.prizeValue}微信现金`)
-                                    await apCashWithDraw(item.needleMyPrizeItemVO.id,item.needleMyPrizeItemVO.poolBaseId,item.needleMyPrizeItemVO.prizeGroupId,item.needleMyPrizeItemVO.prizeBaseId)
-                                }
-                            }
-                        } else {
-                            console.log(`提现异常:${JSON.stringify(data)}\n`);
-                        }
-                    }
-                }
-            } catch (e) {
-                console.log(`logErr`,JSON.stringify(data))
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-/**
- * 获取下关等级
- * @returns {Promise<unknown>}
- */
-function getNeedleLevelInfo(currentLevel) {
-    return new Promise(async resolve => {
-        let body = {"linkId":linkId};
-        if (currentLevel !== undefined){
-            body = {"linkId":linkId,"currentLevel":currentLevel};
-        }
-        const options = {
-            url: `https://api.m.jd.com/?functionId=getNeedleLevelInfo&body=${escape(JSON.stringify(body))}&_t=${+new Date()}&appid=activities_platform&clientVersion=3.5.0`,
-            headers: {
-                'Origin': 'https://h5platform.jd.com',
-                'Cookie': $.cookie,
-                'Connection': `keep-alive`,
-                'Accept': `application/json, text/plain, */*`,
-                'Host': `api.m.jd.com`,
-                'X-Requested-With': `com.jingdong.app.mall`,
-                'User-Agent':  $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-                'Accept-Encoding': `gzip, deflate, br`,
-                'Accept-Language': `zh-CN,zh;q=0.9,en-CN;q=0.8,en;q=0.7,zh-TW;q=0.6,en-US;q=0.5`,
-                'Referer': `https://h5platform.jd.com/swm-static/jfcz/index.html?activityId=${linkId}&channel=wlfc&sid=a05ade6f8abfce24dbbc74fw&un_area=2`,
-                'Sec-Fetch-Site': `same-site`,
-                'Content-Type': 'application/x-www-form-urlencoded'
-            }
-        }
-        $.get(options, async (err, resp, data) => {
-            try {
-                if (err) {
-                    stop = true
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    if (safeGet(data)) {
-                        data = $.toObj(data);
-                        if (data.code === 0) {
-                            if (data.data.currentLevel != data.data.totalLevel){
-                                needleLevel =  data.data.needleConfig.level
-                                totalLevel =  data.data.totalLevel
-                            }else {
-                                stop = true
-                                console.log(`关卡已全部通过`)
-                            }
-                        } else {
-                            stop = true
-                            console.log(`获取下关等级异常:${JSON.stringify(data)}\n`);
-                        }
-                    }
-                }
-            } catch (e) {
-                stop = true
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-/**
- * 通关
- * @returns {Promise<unknown>}
- */
-function saveNeedleLevelInfo(currentLevel) {
-    return new Promise(async resolve => {
-        let body = {"currentLevel":currentLevel,"linkId":linkId};
-
-        const options = {
-            url: `https://api.m.jd.com/?functionId=saveNeedleLevelInfo&body=${JSON.stringify(body)}&_t=${+new Date()}&appid=activities_platform&client=H5&clientVersion=1.0.0&h5st=20220106101759841%3B4377072519655308%3Bf1658%3Btk02waf0d1c2318njnCBM9qYgO8%2F%2Ftqq%2Fe1asBWVmidYfLpZ3kFd0rLsZOspq2aBxoz%2FBvATLVmEkPLX5U%2BFgNVmOc8E%3B22da3eb0d3c191a89ff16b5f051efdba2d0f013437857d994912faf498906d70%3B3.0%3B1641435479841`,
-            headers: {
-                'Origin': 'https://h5platform.jd.com',
-                'Cookie': $.cookie,
-                'Connection': `keep-alive`,
-                'Accept': `application/json, text/plain, */*`,
-                'Host': `api.m.jd.com`,
-                'X-Requested-With': `com.jingdong.app.mall`,
-                'User-Agent':  $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-                'Accept-Encoding': `gzip, deflate, br`,
-                'Accept-Language': `zh-CN,zh;q=0.9,en-CN;q=0.8,en;q=0.7,zh-TW;q=0.6,en-US;q=0.5`,
-                'Referer': `https://h5platform.jd.com/swm-static/jfcz/index.html?activityId=${linkId}&channel=wlfc&sid=a05ade6f8abfce24dbbc74fw&un_area=2`,
-                'Sec-Fetch-Site': `same-site`,
-                'Content-Type': 'application/x-www-form-urlencoded'
-            }
-        }
-        $.get(options, async (err, resp, data) => {
-            try {
-                if (err) {
-                    stop = true
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    if (safeGet(data)) {
-                        data = $.toObj(data);
-                        if (data.code === 0) {
-                            console.log(`关卡[${currentLevel}]通关成功\n`);
-                        } else {
-                            stop = true
-                            console.log(`通关异常:${JSON.stringify(data)}\n`);
-                        }
-                    }
-                }
-            } catch (e) {
-                stop = true
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-/**
- * 提现
- * @param id
- * @param poolBaseId
- * @param prizeGroupId
- * @param prizeBaseId
- * @returns {Promise<unknown>}
- */
-function apCashWithDraw(id, poolBaseId, prizeGroupId, prizeBaseId) {
-    return new Promise(resolve => {
-        const body = {
-            "linkId": linkId,
-            "businessSource": "NONE",
-            "base": {
-                "prizeType": 4,
-                "business": "throwNeedleGame",
-                "id": id,
-                "poolBaseId": poolBaseId,
-                "prizeGroupId": prizeGroupId,
-                "prizeBaseId": prizeBaseId
-            }
-        }
-        const options = {
-            url: `https://api.m.jd.com/`,
-            body: `functionId=apCashWithDraw&body=${JSON.stringify(body)}&_t=${+new Date()}&appid=activities_platform`,
-            headers: {
-                'Cookie': $.cookie,
-                "Host": "api.m.jd.com",
-                'Origin': 'https://joypark.jd.com',
-                "Content-Type": "application/x-www-form-urlencoded",
-                "Accept": "*/*",
-                "Connection": "keep-alive",
-                'User-Agent':  $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-                "Accept-Language": "zh-Hans-CN;q=1, en-CN;q=0.9, zh-Hant-CN;q=0.8",
-                'Referer': `https://joypark.jd.com/?activityId=${linkId}&channel=wlfc5`,
-                "Accept-Encoding": "gzip, deflate, br"
-            }
-        }
-        $.post(options, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    if (safeGet(data)) {
-                        data = $.toObj(data);
-                        if (data.code === 0) {
-                            if (data.data.status === "310") {
-                                console.log(`提现成功!`)
-                                allMessage += `京东账号${$.index} ${$.UserName}见缝插针成功!\n`;
-                            } else {
-                                console.log(`提现:失败:${JSON.stringify(data)}\n`);
-                            }
-                        } else {
-                            console.log(`提现:异常:${JSON.stringify(data)}\n`);
-                        }
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-
-function safeGet(data) {
-    try {
-        if (typeof JSON.parse(data) == "object") {
-            return true;
-        }
-    } catch (e) {
-        console.log(e);
-        console.log(`京东服务器访问数据为空,请检查自身设备网络情况`);
-        return false;
-    }
-}
-
-
-// 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)}
-
-
diff --git a/jd_joyPark.js b/jd_joyPark.js
deleted file mode 100644
index b68aafa..0000000
--- a/jd_joyPark.js
+++ /dev/null
@@ -1,589 +0,0 @@
-/*
-ENV
-JOY_COIN_MAXIMIZE =      最大化硬币收益,如果合成后全部挖土后还有空位,则开启此模式(默认开启) 0关闭 1开启
-请确保新用户助力过开工位,否则开启游戏了就不算新用户,后面就不能助力开工位了!!!!!!!!!!
-如需关闭请添加变量,变量名:HELP_JOYPARK,变量值:false
-#汪汪乐园养joy
-cron "49 0-23/6 * * *" script-path=jd_joyPark.js,tag=汪汪乐园养joy
-*/
-
-const $ = new Env('汪汪乐园养joy');
-const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
-const notify = $.isNode() ? require('./sendNotify') : '';
-const JD_API_HOST = `https://api.m.jd.com/`;
-
-let cookiesArr = [], cookie = '';
-let hotFlag = 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 {
-  cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
-}
-
-//最大化硬币收益模式
-$.JOY_COIN_MAXIMIZE = process.env.JOY_COIN_MAXIMIZE === '1'
-$.log(`最大化收益模式: 已${$.JOY_COIN_MAXIMIZE ? `默认开启` : `关闭`}  `)
-
-$.invitePin = ['So1GaedHGcIYZaFuv10dTw']
-message = ""
-!(async () => {
-  if (!cookiesArr[0]) {
-    $.msg($.name, '【提示】请先获取cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', {
-      "open-url": "https://bean.m.jd.com/"
-    });
-    return;
-  }
-  if (process.env.JD_JOY_PARK && process.env.JD_JOY_PARK === 'false') {
-    console.log(`\n******检测到您设置了不运行汪汪乐园,停止运行此脚本******\n`)
-    return;
-  }
-  for (let i = 0; i < cookiesArr.length; i++) {
-    //$.wait(50)
-    // if (process.env.JOYPARK_JOY_START && i == process.env.JOYPARK_JOY_START){
-    //   console.log(`\n汪汪乐园养joy 只运行 ${process.env.JOYPARK_JOY_START} 个Cookie\n`);
-    //   break
-    // }
-    cookie = cookiesArr[i];
-    $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
-    $.index = i + 1;
-    $.isLogin = true;
-    $.nickName = '';
-    $.maxJoyCount = 10
-    //await TotalBean();
-    if (!$.isLogin) {
-      $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
-      if ($.isNode()) {
-        await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
-      }
-      continue
-    }
-    console.log(`\n\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
-    if ($.isNode()) {
-      if (process.env.HELP_JOYPARK && process.env.HELP_JOYPARK == "false") {
-      } else {
-        if ($.invitePin  && $.invitePin .length) {
-          $.log("开始帮作者助力开工位\n");
-          $.invitePin  = [...($.invitePin  || [])][Math.floor((Math.random() * $.invitePin .length))];
-          let resp = await getJoyBaseInfo(undefined, 2, $.invitePin );
-          await $.wait(1500);
-          if (resp.helpState && resp.helpState === 1) {
-            $.log("帮作者开工位成功,感谢!\n");
-          } else if (resp.helpState && resp.helpState === 3) {
-            $.log("你不是新用户!跳过开工位助力\n");
-          } else if (resp.helpState && resp.helpState === 2) {
-            $.log(`他的工位已全部开完啦!\n`);
-          } else {
-            $.log("开工位失败!\n");
-            console.log(`${JSON.stringify(resp)}`)
-          }
-        }
-      }
-    }
-    //下地后还有有钱买Joy并且买了Joy
-    $.hasJoyCoin = true
-    await getJoyBaseInfo(undefined, undefined, undefined, true);
-    await $.wait(3000)
-    $.activityJoyList = []
-    $.workJoyInfoList = []
-    await getJoyList(true);
-    await $.wait(3000)
-    await getGameShopList()
-    await $.wait(3000)
-    //清理工位
-    await doJoyMoveDownAll($.workJoyInfoList)
-    await $.wait(3000)
-    //从低合到高
-    await doJoyMergeAll($.activityJoyList)
-    await $.wait(3000)
-    await getGameMyPrize()
-    await $.wait(5000)
-
-  }
-
-})()
-    .catch((e) => $.logErr(e))
-    .finally(() => $.done())
-
-
-async function getJoyBaseInfo(taskId = '', inviteType = '', inviterPin = '', printLog = false) {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"taskId":"${taskId}","inviteType":"${inviteType}","inviterPin":"${inviterPin}","linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyBaseInfo`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} getJoyBaseInfo API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (printLog) {
-            $.log(`等级: ${data.data.level}|金币: ${data.data.joyCoin}`);
-            if (data.data.level >= 30 && $.isNode()) {
-            //   await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName || $.UserName}\n当前等级: ${data.data.level}\n已达到单次最高等级奖励\n请前往京东极速版APP查看使用优惠券\n活动入口:京东极速版APP->我的->汪汪乐园`);
-              $.log(`\n请去极速版app手动解锁新场景...\n`);
-            //   await doJoyRestart()
-            }
-          }
-          $.joyBaseInfo = data.data
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve($.joyBaseInfo);
-      }
-    })
-  })
-}
-
-function getJoyList(printLog = false) {
-  //e18ed
-  $.h5st = '20220526203414393%3B5316297164080644%3Be18ed%3Btk02w90831ba818n0FXZRP9aZKuPjhU4esrQ7a25F0acoFJWvcMmzsFM%2Fzi8yWb%2BJJBpLC5Lz4%2BMY%2Fv%2BwIwGzqf3Bzy%2F%3B326131f68af8d7cb7403e7f0fcfe6eab17bc95192f357cd8175ec8d295fa8012%3B3.0%3B1653568454393';
-  return new Promise(resolve => {
-    $.get(taskGetClientActionUrl(`appid=activities_platform&body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&t=${Date.now()}&cthr=1&h5st=${$.h5st}`, `joyList`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (printLog) {
-            $.log(`\n===== 【京东账号${$.index}】${$.nickName || $.UserName} joy 状态 start =====`)
-            $.log("在逛街的joy⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️")
-            for (let i = 0; i < data.data.activityJoyList.length; i++) {
-              await $.wait(1500);
-              $.log(`id:${data.data.activityJoyList[i].id}|name: ${data.data.activityJoyList[i].name}|level: ${data.data.activityJoyList[i].level}`);
-              if (data.data.activityJoyList[i].level >= 30 && $.isNode()) {
-                // await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName || $.UserName}\n当前等级: ${data.data.level}\n已达到单次最高等级奖励\n请尽快前往活动查看领取\n活动入口:京东极速版APP->汪汪乐园\n`);
-                $.log(`\n请去极速版app手动解锁新场景...\n`);
-                // await doJoyRestart()
-              }
-            }
-            $.log("\n在铲土的joy⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️")
-            for (let i = 0; i < data.data.workJoyInfoList.length; i++) {
-              await $.wait(1500);
-              $.log(`工位: ${data.data.workJoyInfoList[i].location} [${data.data.workJoyInfoList[i].unlock ? `已开` : `未开`}]|joy= ${data.data.workJoyInfoList[i].joyDTO ? `id:${data.data.workJoyInfoList[i].joyDTO.id}|name: ${data.data.workJoyInfoList[i].joyDTO.name}|level: ${data.data.workJoyInfoList[i].joyDTO.level}` : `毛都没有`}`)
-            }
-            $.log(`===== 【京东账号${$.index}】${$.nickName || $.UserName} joy 状态  end  =====\n`)
-          }
-          $.activityJoyList = data.data.activityJoyList
-          $.workJoyInfoList = data.data.workJoyInfoList
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data.data);
-      }
-    })
-  })
-}
-
-function getGameShopList() {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.get(taskGetClientActionUrl(`appid=activities_platform&body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}`, `gameShopList`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          //排除不能购买的
-          data = JSON.parse(data).data.filter(row => row.shopStatus === 1);
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-async function doJoyMoveUpAll(activityJoyList, workJoyInfoList) {
-  let workJoyInfoUnlockList = workJoyInfoList.filter(row => row.unlock && row.joyDTO === null)
-  if (activityJoyList.length !== 0 && workJoyInfoUnlockList.length !== 0) {
-    let maxLevelJoy = Math.max.apply(Math, activityJoyList.map(o => o.level))
-    let maxLevelJoyList = activityJoyList.filter(row => row.level === maxLevelJoy)
-    $.log(`下地干活! joyId= ${maxLevelJoyList[0].id} location= ${workJoyInfoUnlockList[0].location}`)
-    await doJoyMove(maxLevelJoyList[0].id, workJoyInfoUnlockList[0].location)
-    await getJoyList()
-    await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList)
-  }
-  else if ($.JOY_COIN_MAXIMIZE) {
-    await joyCoinMaximize(workJoyInfoUnlockList)
-  }
-
-}
-
-async function joyCoinMaximize(workJoyInfoUnlockList) {
-  if (workJoyInfoUnlockList.length !== 0 && $.hasJoyCoin) {
-    $.log(`竟然还有工位挖土?开启瞎买瞎下地模式!`);
-    let joyBaseInfo = await getJoyBaseInfo()
-    let joyCoin = joyBaseInfo.joyCoin
-    $.log(`还有${joyCoin}金币,看看还能买啥下地`)
-    let shopList = await getGameShopList()
-    let newBuyCount = false;
-    for (let i = shopList.length - 1; i >= 0 && i - 3 >= 0; i--) { //向下买3级
-      if (joyCoin > shopList[i].consume) {
-        $.log(`买一只 ${shopList[i].userLevel}级的!`);
-        joyCoin = joyCoin - shopList[i].consume;
-        let buyResp = await doJoyBuy(shopList[i].userLevel);
-        await $.wait(1500);
-        if (!buyResp.success) {
-          break;
-        } else {
-          newBuyCount = true
-          $.hasJoyCoin = false
-          i++
-        }
-      }
-      await $.wait(1500);
-    }
-    $.hasJoyCoin = false
-    if (newBuyCount) {
-      await getJoyList();
-      await $.wait(1500);
-      await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList);
-      await $.wait(1500);
-      await getJoyBaseInfo();
-    }
-  }
-}
-
-async function doJoyMoveDownAll(workJoyInfoList) {
-  if (workJoyInfoList.filter(row => row.joyDTO).length === 0) {
-    $.log(`工位清理完成!`)
-    return true
-  }
-  for (let i = 0; i < workJoyInfoList.length; i++) {
-    //$.wait(50)
-    if (workJoyInfoList[i].unlock && workJoyInfoList[i].joyDTO) {
-      $.log(`从工位移除 => id:${workJoyInfoList[i].joyDTO.id}|name: ${workJoyInfoList[i].joyDTO.name}|level: ${workJoyInfoList[i].joyDTO.level}`)
-      await doJoyMove(workJoyInfoList[i].joyDTO.id, 0)
-      await $.wait(1500);
-    }
-  }
-  //check
-  await getJoyList();
-  await $.wait(1500);
-  await doJoyMoveDownAll($.workJoyInfoList);
-  await $.wait(1500);
-}
-
-async function doJoyMergeAll(activityJoyList) {
-  let minLevel = Math.min.apply(Math, activityJoyList.map(o => o.level))
-  let joyMinLevelArr = activityJoyList.filter(row => row.level === minLevel);
-  let joyBaseInfo = await getJoyBaseInfo()
-  let fastBuyLevel = joyBaseInfo.fastBuyLevel
-  if (joyMinLevelArr.length >= 2) {
-    $.log(`开始合成 ${minLevel} ${joyMinLevelArr[0].id} <=> ${joyMinLevelArr[1].id} 【限流严重,5秒后合成!如失败会重试】`);
-    await $.wait(5000)
-    await doJoyMerge(joyMinLevelArr[0].id, joyMinLevelArr[1].id);
-    if (hotFlag) {
-      return false;
-    }
-    await getJoyList()
-    await doJoyMergeAll($.activityJoyList)
-  } else if (joyMinLevelArr.length === 1 && joyMinLevelArr[0].level < fastBuyLevel) {
-    let buyResp = await doJoyBuy(joyMinLevelArr[0].level, $.activityJoyList);
-    if (buyResp.success) {
-      await getJoyList();
-      await doJoyMergeAll($.activityJoyList);
-    } else {
-      $.log("完成!")
-      await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList)
-    }
-  } else {
-    $.log(`没有需要合成的joy 开始买买买🛒🛒🛒🛒🛒🛒🛒🛒`)
-    $.log(`现在最高可以购买: ${fastBuyLevel}  购买 ${fastBuyLevel} 的joy   你还有${joyBaseInfo.joyCoin}金币`)
-    let buyResp = await doJoyBuy(fastBuyLevel, $.activityJoyList);
-    if (buyResp.success) {
-      await getJoyList();
-      await doJoyMergeAll($.activityJoyList);
-    } else {
-      $.log("完成!")
-      await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList)
-    }
-  }
-}
-
-function doJoyMove(joyId, location) {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.post(taskGetClientActionUrl(`body={"joyId":${joyId},"location":${location},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyMove`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          if (location !== 0) {
-            $.log(`下地完成了!`);
-          }
-          data = JSON.parse(data);
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data.data);
-      }
-    })
-  })
-}
-
-function doJoyMerge(joyId1, joyId2) {
-  //b08cf
-  $.h5st = '20220526204915679%3B3946208156885550%3Bb08cf%3Btk02we1ee1dbb18nffWdQwiLx71mV9VoyryciNclmi3XcKWh%2B%2B1rcvkrZ7S7J8O1uQoPtbNM0ohylcwdqjuciHhlrFMB%3Bca4678a12faa4690140d2d5446233a79ab86be2e5590d468d98b4c3d532f75e9%3B3.0%3B1653569355679';
-  return new Promise(resolve => {
-    $.get(taskGetClientActionUrl(`body={"joyOneId":${joyId1},"joyTwoId":${joyId2},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform&cthr=1&h5st=${$.h5st}`, `joyMergeGet`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-          data = {}
-          hotFlag = true;
-        } else {
-          data = JSON.parse(data);
-          $.log(`合成 ${joyId1} <=> ${joyId2} ${data.success ? `成功!` : `失败!【${data.errMsg}】 code=${data.code}`}`)
-          if (data.code == '1006') {
-            hotFlag = true
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-        hotFlag = true;
-      } finally {
-        resolve(data.data);
-      }
-    })
-  })
-}
-
-async function doJoyBuy(level, activityJoyList) {
-  await $.wait(1500);
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"level":${level},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyBuy`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          let codeMsg = '【不知道啥意思】'
-          switch (data.code) {
-            case 519:
-              codeMsg = '【没钱了】';
-              break
-            case 518:
-              codeMsg = '【没空位】';
-              if (activityJoyList) {//正常买模式
-                $.log(`因为购买 ${level}级🐶 没空位 所以我要删掉比低级的狗了`);
-                let minLevel = Math.min.apply(Math, activityJoyList.map(o => o.level))
-                await doJoyRecovery(activityJoyList.filter(row => row.level === minLevel)[0].id);
-              }
-              break
-            case 0:
-              codeMsg = '【OK】';
-              break
-          }
-
-          $.log(`购买joy level: ${level} ${data.success ? `成功!` : `失败!${data.errMsg} code=${data.code}`}  code的意思是=${codeMsg}`)
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function doJoyRecovery(joyId) {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"joyId":${joyId},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyRecovery`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-          data = {}
-        } else {
-          data = JSON.parse(data);
-          $.log(`回收🐶 ${data.success ? `成功!` : `失败!【${data.errMsg}】 code=${data.code}`}`)
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function doJoyRestart() {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyRestart`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          $.log(`新场景解锁 ${data.success ? `成功!` : `失败!【${data.errMsg}】 code=${data.code}`}`)
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function getGameMyPrize() {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `gameMyPrize`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (data.success && data.data) {
-            $.Vos = data.data.gamePrizeItemVos
-            for (let i = 0; i < $.Vos.length; i++) {
-              if ($.Vos[i].prizeType == 4 && $.Vos[i].status == 1 && $.Vos[i].prizeTypeVO.prizeUsed == 0) {
-                $.log(`\n当前账号有【${$.Vos[i].prizeName}】可提现`)
-                $.id = $.Vos[i].prizeTypeVO.id
-                $.poolBaseId = $.Vos[i].prizeTypeVO.poolBaseId
-                $.prizeGroupId = $.Vos[i].prizeTypeVO.prizeGroupId
-                $.prizeBaseId = $.Vos[i].prizeTypeVO.prizeBaseId
-                await apCashWithDraw($.id, $.poolBaseId, $.prizeGroupId, $.prizeBaseId)
-              }
-              await $.wait(1500);
-            }
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function apCashWithDraw(id, poolBaseId, prizeGroupId, prizeBaseId) {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"businessSource":"JOY_PARK","base":{"id":${id},"business":"joyPark","poolBaseId":${poolBaseId},"prizeGroupId":${prizeGroupId},"prizeBaseId":${prizeBaseId},"prizeType":4},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&_t=${+new Date()}&appid=activities_platform`, `apCashWithDraw`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (data.success && data.data) {
-            console.log(`提现结果:${JSON.stringify(data)}`)
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function taskPostClientActionUrl(body, functionId) {
-  return {
-    url: `https://api.m.jd.com/?${functionId ? `functionId=${functionId}` : ``}`,
-    body: body,
-    headers: {
-      'User-Agent': $.isNode() ? (process.env.JS_USER_AGENT ? process.env.JS_USER_AGENT : (require('./JS_USER_AGENTS').USER_AGENT)) : ($.getdata('JSUA') ? $.getdata('JSUA') : "'jdltapp;iPad;3.8.10;14.4;network/wifi;Mozilla/5.0 (iPad; CPU OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-      'Content-Type': 'application/x-www-form-urlencoded',
-      'Host': 'api.m.jd.com',
-      'Origin': 'https://joypark.jd.com',
-      'Referer': 'https://joypark.jd.com/?activityId=LsQNxL7iWDlXUs6cFl-AAg&lng=113.387899&lat=22.512678&sid=4d76080a9da10fbb31f5cd43396ed6cw&un_area=19_1657_52093_0',
-      'Cookie': cookie,
-    }
-  }
-}
-
-function taskGetClientActionUrl(body, functionId) {
-  return {
-    url: `https://api.m.jd.com/?functionId=${functionId}${body ? `&${body}` : ``}`,
-    // body: body,
-    headers: {
-      'User-Agent': $.isNode() ? (process.env.JS_USER_AGENT ? process.env.JS_USER_AGENT : (require('./JS_USER_AGENTS').USER_AGENT)) : ($.getdata('JSUA') ? $.getdata('JSUA') : "'jdltapp;iPad;3.8.10;14.4;network/wifi;Mozilla/5.0 (iPad; CPU OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
-      'Content-Type': 'application/x-www-form-urlencoded',
-      'Host': 'api.m.jd.com',
-      'Origin': 'https://joypark.jd.com',
-      'Referer': 'https://joypark.jd.com/?activityId=LsQNxL7iWDlXUs6cFl-AAg&lng=113.388006&lat=22.512549&sid=4d76080a9da10fbb31f5cd43396ed6cw&un_area=19_1657_52093_0',
-      'Cookie': cookie,
-    }
-  }
-}
-
-function TotalBean() {
-  return new Promise(async resolve => {
-    const options = {
-      "url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`,
-      "headers": {
-        "Accept": "application/json,text/plain, */*",
-        "Content-Type": "application/x-www-form-urlencoded",
-        "Accept-Encoding": "gzip, deflate, br",
-        "Accept-Language": "zh-cn",
-        "Connection": "keep-alive",
-        "Cookie": cookie,
-        "Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2",
-        "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.2 Mobile/15E148 Safari/604.1"
-      }
-    }
-    $.post(options, (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          if (data) {
-            data = JSON.parse(data);
-            if (data['retcode'] === 13) {
-              $.isLogin = false; //cookie过期
-              return
-            }
-            if (data['retcode'] === 0) {
-              $.nickName = (data['base'] && data['base'].nickname) || $.UserName;
-            } else {
-              $.nickName = $.UserName
-            }
-          } else {
-            console.log(`京东服务器返回空数据`)
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve();
-      }
-    })
-  })
-}
-
-function jsonParse(str) {
-  if (typeof str == "string") {
-    try {
-      return JSON.parse(str);
-    } catch (e) {
-      console.log(e);
-      $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
-      return [];
-    }
-  }
-}
-
-
-
-
-// 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) }
\ No newline at end of file
diff --git a/jd_joy_park_Mod.js b/jd_joy_park_Mod.js
deleted file mode 100644
index b54ddd6..0000000
--- a/jd_joy_park_Mod.js
+++ /dev/null
@@ -1,597 +0,0 @@
-// @grant nodejs
-/*
-ENV
-
-JOY_COIN_MAXIMIZE =      最大化硬币收益,如果合成后全部挖土后还有空位,则开启此模式(默认开启) 0关闭 1开启
-
-请确保新用户助力过开工位,否则开启游戏了就不算新用户,后面就不能助力开工位了!!!!!!!!!!
-
-如需关闭请添加变量,变量名:HELP_JOYPARK,变量值:false
-
-更新地址:https://github.com/Tsukasa007/my_script
-
-============Quantumultx===============
-[task_local]
-#汪汪乐园养joy
-20 0-23/3 * * * jd_joypark_joy.js, tag=汪汪乐园养joy, img-url=https://raw.githubusercontent.com/tsukasa007/icon/master/jd_joypark_joy.png, enabled=true
-
-================Loon==============
-[Script]
-cron "20 0-23/3 * * *" script-path=jd_joypark_joy.js,tag=汪汪乐园养joy
-
-===============Surge=================
-汪汪乐园养joy = type=cron,cronexp="20 0-23/3 * * *",wake-system=1,timeout=3600,script-path=jd_joypark_joy.js
-
-============小火箭=========
-汪汪乐园养joy = type=cron,script-path=jd_joypark_joy.js, cronexpr="20 0-23/3 * * *", timeout=3600, enable=true
-*/
-const $ = new Env('汪汪乐园养joy');
-const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
-
-const notify = $.isNode() ? require('./sendNotify') : '';
-//IOS等用户直接用NobyDa的jd cookie
-let cookiesArr = [],
-  cookie = '';
-let hotFlag = 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 {
-  cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
-}
-
-//最大化硬币收益模式
-$.JOY_COIN_MAXIMIZE = process.env.JOY_COIN_MAXIMIZE === '1'
-$.log(`最大化收益模式: 已${$.JOY_COIN_MAXIMIZE ? `默认开启` : `关闭`}  `)
-
-const JD_API_HOST = `https://api.m.jd.com/client.action`;
-message = ""
-!(async () => {
-  if (!cookiesArr[0]) {
-    $.msg($.name, '【提示】请先获取cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', {
-      "open-url": "https://bean.m.jd.com/"
-    });
-    return;
-  }
-  if (process.env.JD_JOY_PARK && process.env.JD_JOY_PARK === 'false') {
-    console.log(`\n******检测到您设置了不运行汪汪乐园,停止运行此脚本******\n`)
-    return;
-  }
-  for (let i = 0; i < cookiesArr.length; i++) {
-    //$.wait(50) 
-    // if (process.env.JOYPARK_JOY_START && i == process.env.JOYPARK_JOY_START){
-    //   console.log(`\n汪汪乐园养joy 只运行 ${process.env.JOYPARK_JOY_START} 个Cookie\n`);
-    //   break
-    // }
-    cookie = cookiesArr[i];
-    if (cookie) {
-        $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1]);
-        $.index = i + 1;
-        $.isLogin = true;
-        $.nickName = '';
-        $.maxJoyCount = 10;
-		$.UA = `jdapp;iPhone;10.1.4;13.1.2;${randomString(40)};network/wifi;model/iPhone8,1;addressid/2308460611;appBuild/167814;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 13_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1`
-
-            await TotalBean();
-        if (!$.isLogin) {
-            $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {
-                "open-url": "https://bean.m.jd.com/bean/signIndex.action"
-            });
-
-            if ($.isNode()) {
-                await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
-            }
-            continue
-        }
-        console.log(`\n\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
-
-    }
-      //下地后还有有钱买Joy并且买了Joy
-      $.hasJoyCoin = true
-      await getJoyBaseInfo(undefined, undefined, undefined, true);
-      $.activityJoyList = []
-      $.workJoyInfoList = []
-      await getJoyList(true);
-      await getGameShopList()
-      //清理工位
-      await doJoyMoveDownAll($.workJoyInfoList)
-      //从低合到高
-	  try{	  
-		  await doJoyMergeAll($.activityJoyList)
-		  await getGameMyPrize()
-	  } catch (e) {
-        $.logErr(e)
-      }
-	  await $.wait(1500)
-  }
-})()
-  .catch((e) => $.logErr(e))
-  .finally(() => $.done())
-
-
-async function getJoyBaseInfo(taskId = '', inviteType = '', inviterPin = '', printLog = false) {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"taskId":"${taskId}","inviteType":"${inviteType}","inviterPin":"${inviterPin}","linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyBaseInfo`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} getJoyBaseInfo API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (printLog) {
-            $.log(`等级: ${data.data.level}|金币: ${data.data.joyCoin}`);
-            if (data.data.level >= 30 && $.isNode()) {
-              await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName || $.UserName}\n当前等级: ${data.data.level}\n已达到单次最高等级奖励\n请前往京东极速版APP查看使用优惠券\n活动入口:京东极速版APP->我的->汪汪乐园`);
-              //$.log(`\n开始解锁新场景...\n`);
-              //await doJoyRestart()
-            }
-          }
-          $.joyBaseInfo = data.data
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve($.joyBaseInfo);
-      }
-    })
-  })
-}
-
-function getJoyList(printLog = false) {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.get(taskGetClientActionUrl(`appid=activities_platform&body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}`, `joyList`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (printLog) {
-            $.log(`\n===== 【京东账号${$.index}】${$.nickName || $.UserName} joy 状态 start =====`)
-            $.log("在逛街的joy⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️")
-			
-            for (let i = 0; i < data.data.activityJoyList.length; i++) {
-              //$.wait(50);
-              $.log(`id:${data.data.activityJoyList[i].id}|name: ${data.data.activityJoyList[i].name}|level: ${data.data.activityJoyList[i].level}`);
-              if (data.data.activityJoyList[i].level >= 30 && $.isNode()) {
-                await notify.sendNotify(`${$.name} - 账号${$.index} - ${$.nickName}`, `【京东账号${$.index}】${$.nickName || $.UserName}\n当前等级: ${data.data.level}\n已达到单次最高等级奖励\n请尽快前往活动查看领取\n活动入口:京东极速版APP->汪汪乐园\n`);
-                //$.log(`\n开始解锁新场景...\n`);
-                //await doJoyRestart()
-              }
-            }
-            $.log("\n在铲土的joy⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️")
-            for (let i = 0; i < data.data.workJoyInfoList.length; i++) {
-              //$.wait(50)
-              $.log(`工位: ${data.data.workJoyInfoList[i].location} [${data.data.workJoyInfoList[i].unlock ? `已开` : `未开`}]|joy= ${data.data.workJoyInfoList[i].joyDTO ? `id:${data.data.workJoyInfoList[i].joyDTO.id}|name: ${data.data.workJoyInfoList[i].joyDTO.name}|level: ${data.data.workJoyInfoList[i].joyDTO.level}` : `毛都没有`}`)
-            }
-            $.log(`===== 【京东账号${$.index}】${$.nickName || $.UserName} joy 状态  end  =====\n`)
-          }
-          $.activityJoyList = data.data.activityJoyList
-          $.workJoyInfoList = data.data.workJoyInfoList
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data.data);
-      }
-    })
-  })
-}
-
-function getGameShopList() {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.get(taskGetClientActionUrl(`appid=activities_platform&body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}`, `gameShopList`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          //排除不能购买的
-          data = JSON.parse(data).data.filter(row => row.shopStatus === 1);
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-async function doJoyMoveUpAll(activityJoyList, workJoyInfoList) {
-  let workJoyInfoUnlockList = workJoyInfoList.filter(row => row.unlock && row.joyDTO === null)
-  if (activityJoyList.length !== 0 && workJoyInfoUnlockList.length !== 0) {
-    let maxLevelJoy = Math.max.apply(Math, activityJoyList.map(o => o.level))
-    let maxLevelJoyList = activityJoyList.filter(row => row.level === maxLevelJoy)
-    $.log(`下地干活! joyId= ${maxLevelJoyList[0].id} location= ${workJoyInfoUnlockList[0].location}`)
-    await doJoyMove(maxLevelJoyList[0].id, workJoyInfoUnlockList[0].location)
-    await getJoyList()
-    await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList)
-  }
-  else if ($.JOY_COIN_MAXIMIZE) {
-    await joyCoinMaximize(workJoyInfoUnlockList)
-  }
-
-}
-
-async function joyCoinMaximize(workJoyInfoUnlockList) {
-  if (workJoyInfoUnlockList.length !== 0 && $.hasJoyCoin) {
-    $.log(`竟然还有工位挖土?开启瞎买瞎下地模式!`);
-    let joyBaseInfo = await getJoyBaseInfo()
-    let joyCoin = joyBaseInfo.joyCoin
-    $.log(`还有${joyCoin}金币,看看还能买啥下地`)
-    let shopList = await getGameShopList()
-    let newBuyCount = false;
-    for (let i = shopList.length - 1; i >= 0 && i - 3 >= 0; i--) { //向下买3级
-      if (joyCoin > shopList[i].consume) {
-        $.log(`买一只 ${shopList[i].userLevel}级的!`);
-        joyCoin = joyCoin - shopList[i].consume;
-        let buyResp = await doJoyBuy(shopList[i].userLevel);
-        if (!buyResp.success) {
-          break;
-        } else {
-          newBuyCount = true
-          $.hasJoyCoin = false
-          i++
-        }
-      }
-    }
-    $.hasJoyCoin = false
-    if (newBuyCount) {
-      await getJoyList()
-      await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList)
-      await getJoyBaseInfo();
-    }
-  }
-}
-
-async function doJoyMoveDownAll(workJoyInfoList) {
-  if (workJoyInfoList.filter(row => row.joyDTO).length === 0) {
-    $.log(`工位清理完成!`)
-    return true
-  }
-  for (let i = 0; i < workJoyInfoList.length; i++) {
-    //$.wait(50)
-    if (workJoyInfoList[i].unlock && workJoyInfoList[i].joyDTO) {
-      $.log(`从工位移除 => id:${workJoyInfoList[i].joyDTO.id}|name: ${workJoyInfoList[i].joyDTO.name}|level: ${workJoyInfoList[i].joyDTO.level}`)
-      await doJoyMove(workJoyInfoList[i].joyDTO.id, 0)
-    }
-  }
-  //check
-  await getJoyList()
-  await doJoyMoveDownAll($.workJoyInfoList)
-}
-
-async function doJoyMergeAll(activityJoyList) {
-  let minLevel = Math.min.apply(Math, activityJoyList.map(o => o.level))
-  let joyMinLevelArr = activityJoyList.filter(row => row.level === minLevel);
-  let joyBaseInfo = await getJoyBaseInfo();
-  await $.wait(2000)
-  if(!joyBaseInfo.fastBuyLevel){
-	  await $.wait(5000)
-	  joyBaseInfo = await getJoyBaseInfo();
-  }
-  if(!joyBaseInfo.fastBuyLevel){
-	   $.log(`出错,下地后跳出......`)
-	  await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList);	  
-	  return false;
-  }
-  
-  let fastBuyLevel = joyBaseInfo.fastBuyLevel
-  if (joyMinLevelArr.length >= 2) {
-    $.log(`开始合成 ${minLevel} ${joyMinLevelArr[0].id} <=> ${joyMinLevelArr[1].id} 【限流严重,5秒后合成!如失败会重试】`);
-    await $.wait(5000)
-    await doJoyMerge(joyMinLevelArr[0].id, joyMinLevelArr[1].id);
-	if (hotFlag) {
-	  joyBaseInfo = await getJoyBaseInfo();
-	  await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList);
-      return false;
-    }
-    await getJoyList()
-    await doJoyMergeAll($.activityJoyList)
-  } else if (joyMinLevelArr.length === 1 && joyMinLevelArr[0].level < fastBuyLevel) {
-    let buyResp = await doJoyBuy(joyMinLevelArr[0].level, $.activityJoyList);
-    if (buyResp.success) {
-      await getJoyList();
-      await doJoyMergeAll($.activityJoyList);
-    } else {
-      $.log("完成!")
-      await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList)
-    }
-  } else {
-    $.log(`没有需要合成的joy 开始买买买🛒🛒🛒🛒🛒🛒🛒🛒`)
-    $.log(`现在最高可以购买: ${fastBuyLevel}  购买 ${fastBuyLevel} 的joy   你还有${joyBaseInfo.joyCoin}金币`)
-    let buyResp = await doJoyBuy(fastBuyLevel, $.activityJoyList);
-    if (buyResp.success) {
-      await getJoyList();
-      await doJoyMergeAll($.activityJoyList);
-    } else {
-      $.log("完成!")
-      await doJoyMoveUpAll($.activityJoyList, $.workJoyInfoList)
-    }
-  }
-}
-
-function doJoyMove(joyId, location) {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.post(taskGetClientActionUrl(`body={"joyId":${joyId},"location":${location},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyMove`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          if (location !== 0) {
-            $.log(`下地完成了!`);
-          }
-          data = JSON.parse(data);
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data.data);
-      }
-    })
-  })
-}
-
-function doJoyMerge(joyId1, joyId2) {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.get(taskGetClientActionUrl(`body={"joyOneId":${joyId1},"joyTwoId":${joyId2},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyMergeGet`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-          data = {}
-          hotFlag = true;
-        } else {
-          data = JSON.parse(data);
-          $.log(`合成 ${joyId1} <=> ${joyId2} ${data.success ? `成功!` : `失败!【${data.errMsg}】 code=${data.code}`}`)
-          if (data.code == '1006') {
-            hotFlag = true
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-        hotFlag = true;
-      } finally {
-        resolve(data.data);
-      }
-    })
-  })
-}
-
-async function doJoyBuy(level, activityJoyList) {
-  //await $.wait(20)
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"level":${level},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyBuy`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          let codeMsg = '【不知道啥意思】'
-          switch (data.code) {
-            case 519:
-              codeMsg = '【没钱了】';
-              break
-            case 518:
-              codeMsg = '【没空位】';
-              if (activityJoyList) {//正常买模式
-                $.log(`因为购买 ${level}级🐶 没空位 所以我要删掉比低级的狗了`);
-                let minLevel = Math.min.apply(Math, activityJoyList.map(o => o.level))
-                await doJoyRecovery(activityJoyList.filter(row => row.level === minLevel)[0].id);
-              }
-              break
-            case 0:
-              codeMsg = '【OK】';
-              break
-          }
-
-          $.log(`购买joy level: ${level} ${data.success ? `成功!` : `失败!${data.errMsg} code=${data.code}`}  code的意思是=${codeMsg}`)
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function doJoyRecovery(joyId) {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"joyId":${joyId},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyRecovery`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-          data = {}
-        } else {
-          data = JSON.parse(data);
-          $.log(`回收🐶 ${data.success ? `成功!` : `失败!【${data.errMsg}】 code=${data.code}`}`)
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function doJoyRestart() {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `joyRestart`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          $.log(`新场景解锁 ${data.success ? `成功!` : `失败!【${data.errMsg}】 code=${data.code}`}`)
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function getGameMyPrize() {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`, `gameMyPrize`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (data.success && data.data) {
-            $.Vos = data.data.gamePrizeItemVos
-            for (let i = 0; i < $.Vos.length; i++) {
-              if ($.Vos[i].prizeType == 4 && $.Vos[i].status == 1 && $.Vos[i].prizeTypeVO.prizeUsed == 0) {
-                $.log(`\n当前账号有【${$.Vos[i].prizeName}】可提现`)
-                $.id = $.Vos[i].prizeTypeVO.id
-                $.poolBaseId = $.Vos[i].prizeTypeVO.poolBaseId
-                $.prizeGroupId = $.Vos[i].prizeTypeVO.prizeGroupId
-                $.prizeBaseId = $.Vos[i].prizeTypeVO.prizeBaseId
-                await apCashWithDraw($.id, $.poolBaseId, $.prizeGroupId, $.prizeBaseId)
-              }
-            }
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function apCashWithDraw(id, poolBaseId, prizeGroupId, prizeBaseId) {
-  return new Promise(resolve => {
-    $.post(taskPostClientActionUrl(`body={"businessSource":"JOY_PARK","base":{"id":${id},"business":"joyPark","poolBaseId":${poolBaseId},"prizeGroupId":${prizeGroupId},"prizeBaseId":${prizeBaseId},"prizeType":4},"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&_t=${+new Date()}&appid=activities_platform`, `apCashWithDraw`), async (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          data = JSON.parse(data);
-          if (data.success && data.data) {
-            console.log(`提现结果:${JSON.stringify(data)}`)
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function taskPostClientActionUrl(body, functionId) {
-  return {
-    url: `https://api.m.jd.com/client.action?${functionId ? `functionId=${functionId}` : ``}`,
-    body: body,
-    headers: {
-      'User-Agent': $.UA,
-      'Content-Type': 'application/x-www-form-urlencoded',
-      'Host': 'api.m.jd.com',
-      'Origin': 'https://joypark.jd.com',
-      'Referer': 'https://joypark.jd.com/?activityId=LsQNxL7iWDlXUs6cFl-AAg&lng=113.387899&lat=22.512678&sid=4d76080a9da10fbb31f5cd43396ed6cw&un_area=19_1657_52093_0',
-      'Cookie': cookie,
-    }
-  }
-}
-
-function taskGetClientActionUrl(body, functionId) {
-  return {
-    url: `https://api.m.jd.com/client.action?functionId=${functionId}${body ? `&${body}` : ``}`,
-    // body: body,
-    headers: {
-      'User-Agent': $.UA,
-      'Content-Type': 'application/x-www-form-urlencoded',
-      'Host': 'api.m.jd.com',
-      'Origin': 'https://joypark.jd.com',
-      'Referer': 'https://joypark.jd.com/?activityId=LsQNxL7iWDlXUs6cFl-AAg&lng=113.388006&lat=22.512549&sid=4d76080a9da10fbb31f5cd43396ed6cw&un_area=19_1657_52093_0',
-      'Cookie': cookie,
-    }
-  }
-}
-
-function TotalBean() {
-  return new Promise(async resolve => {
-    const options = {
-      "url": `https://wq.jd.com/user/info/QueryJDUserInfo?sceneval=2`,
-      "headers": {
-        "Accept": "application/json,text/plain, */*",
-        "Content-Type": "application/x-www-form-urlencoded",
-        "Accept-Encoding": "gzip, deflate, br",
-        "Accept-Language": "zh-cn",
-        "Connection": "keep-alive",
-        "Cookie": cookie,
-        "Referer": "https://wqs.jd.com/my/jingdou/my.shtml?sceneval=2",
-        "User-Agent": $.UA
-      }
-    }
-    $.post(options, (err, resp, data) => {
-      try {
-        if (err) {
-          console.log(`${JSON.stringify(err)}`)
-          console.log(`${$.name} API请求失败,请检查网路重试`)
-        } else {
-          if (data) {
-            data = JSON.parse(data);
-            if (data['retcode'] === 13) {
-              $.isLogin = false; //cookie过期
-              return
-            }
-            if (data['retcode'] === 0) {
-              $.nickName = (data['base'] && data['base'].nickname) || $.UserName;
-            } else {
-              $.nickName = $.UserName
-            }
-          } else {
-            console.log(`京东服务器返回空数据`)
-          }
-        }
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve();
-      }
-    })
-  })
-}
-function randomString(e) {
-  e = e || 32;
-  let t = "abcdef0123456789", a = t.length, n = "";
-  for (i = 0; i < e; i++)
-    n += t.charAt(Math.floor(Math.random() * a));
-  return n
-}
-function jsonParse(str) {
-  if (typeof str == "string") {
-    try {
-      return JSON.parse(str);
-    } catch (e) {
-      console.log(e);
-      $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
-      return [];
-    }
-  }
-}
-// 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) }
diff --git a/jd_mpdz6-isv.js b/jd_mpdz6-isv.js
deleted file mode 100755
index 315f6b9..0000000
--- a/jd_mpdz6-isv.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
-
-*/
-const $ = new Env("八月联合营销");
-const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
-const notify = $.isNode() ? require('./sendNotify') : '';
-let cookiesArr = [], cookie = '', message = '';
-let ownCode = null;
-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);
-}
-var _0xodD='jsjiami.com.v6',_0xodD_=['‮_0xodD'],_0x5404=[_0xodD,'TkFCbG8=','ZnVlV2M=','cXFKSGY=','WUFoSFU=','T3lEUlI=','YXBpLm0uamQuY29t','Ki8q','emgtY24=','aHR0cHM6Ly9hcGkubS5qZC5jb20vY2xpZW50LmFjdGlvbj9hcHBpZD1qZF9zaG9wX21lbWJlciZmdW5jdGlvbklkPWdldFNob3BPcGVuQ2FyZEluZm8mYm9keT0=','dVFXTFo=','c3RyaW5naWZ5','JmNsaWVudD1INSZjbGllbnRWZXJzaW9uPTkuMi4wJnV1aWQ9ODg4ODg=','TEFOZEg=','RXJtclQ=','QVBHYUo=','amRhcHA7aVBob25lOzkuNS40OzEzLjY7','O25ldHdvcmsvd2lmaTtBRElELw==','O21vZGVsL2lQaG9uZTEwLDM7YWRkcmVzc2lkLzA7YXBwQnVpbGQvMTY3NjY4O2pkU3VwcG9ydERhcmtNb2RlLzA7TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM182IGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgTW9iaWxlLzE1RTE0ODtzdXBwb3J0SkRTSFdLLzE=','Y3FiYUE=','aHR0cHM6Ly9zaG9wbWVtYmVyLm0uamQuY29tLw==','akZqenE=','enhwYXM=','YWRtRGs=','SGlpVlQ=','T2FPU2I=','eUVjUHM=','bmpOS3k=','cUxvdGw=','VXJUUlg=','WHd0elM=','U09PUkg=','T1FlQ2Q=','aXFOQmY=','WEd0YkE=','YXJtZUg=','VHVkV3g=','aUN1VlU=','UHZ4REo=','ZEFCU1c=','eFNxU1c=','cVNsSk8=','eHBmZFA=','b0xIZHI=','d01LQXU=','VGVzaFQ=','U1h3WnU=','aHR0cHM6Ly9tcGR6Ni1kei5pc3ZqY2xvdWQuY29tL2RtL2Zyb250L2pkVW5pb25PcmRlci8=','P29wZW5faWQ9Jm1peF9uaWNrPQ==','JnVzZXJfaWQ9','SlZIa2Q=','Z2xjQ2g=','SGdjTXQ=','SGtnSmI=','TlFteE8=','cFJaZFg=','QU9nUUQ=','eWhZeEY=','Z2V0','Z05lckI=','YkFkdGE=','ZHdLUm0=','ZkNjU1A=','UWlCU2Q=','V2pqUXM=','dUxndnc=','V0FUb2Q=','ZnZMTWg=','SVlneHY=','QndHWno=','Z3VlcU0=','T0pUT1k=','Zmxvb3I=','TXREV0c=','cmFuZG9t','bE1FZXM=','cVp0SVU=','Unp0eEE=','ZUxpT2M=','R3lJeVA=','aGxYbVE=','bnVvVnQ=','VXB1U0w=','UnZJTVI=','YmluZFdpdGhWZW5kZXI=','UERQWHU=','Wm9QR0Q=','aHR0cHM6Ly9hcGkubS5qZC5jb20vY2xpZW50LmFjdGlvbj8=','YURlWUk=','WVdpa0E=','Y0pFdVc=','b1FYU20=','aHR0cHM6Ly9zaG9wbWVtYmVyLm0uamQuY29tL3Nob3BjYXJkLz92ZW5kZXJJZD0=','fSZjaGFubmVsPTQwMSZyZXR1cm5Vcmw9','Um9XbHE=','YWN0aXZpdHlVcmw=','bUV6WFI=','a3pudHI=','ZVlkdEk=','YWtLblI=','REREdno=','a0dwc3c=','dE1OQnQ=','Y2pmaWU=','U1pqUU0=','SlZnenQ=','bFdRbXg=','bmh5YXE=','eU1la0U=','SW90TEI=','UVBrY2E=','bXZIRWI=','QW5JQmw=','anhCelo=','WGR1Q1g=','YmluZFdpdGhWZW5kZXJtZXNzYWdl','bWVzc2FnZQ==','UXVXWWU=','QlFFcUE=','Q0l6aFE=','dEJUSVI=','bkRCS1E=','dG9TdHJpbmc=','dG9VcHBlckNhc2U=','dlVFYVQ=','eUhRU04=','dm9iVm0=','dHlIZ2g=','UlRiekI=','MTAwMQ==','dXNlckluZm8=','OGFkZmI=','amRfc2hvcF9tZW1iZXI=','OS4yLjA=','amRzaWduLmNm','V2FoeEQ=','ZGljcFA=','WHhLblo=','RURGdVA=','SGRsQ2c=','aUFCd2E=','UmR5Vlo=','aHFkS2c=','ZWVwSHc=','YU1iSkY=','R2FudlQ=','ZG5UdWU=','aUtia3E=','aHR0cHM6Ly9jZG4ubnoubHUvZ2V0aDVzdA==','RlJTckE=','RktwUXA=','SUN4elI=','YXBwbHk=','WXFtQlc=','cmV0Y29kZQ==','bnRzbWc=','SE9PVEg=','aGFzT3duUHJvcGVydHk=','R29jT0M=','YmFzZUluZm8=','bmlja25hbWU=','QlpkTm0=','TGhtTVo=','S0FiUkU=','WWtSd2I=','dHZMYmM=','ZkVDTHQ=','dXBNVWE=','WEpWanU=','WlByYm4=','cm9YSGQ=','R0doTGU=','VFpCQnk=','SWJlbGE=','cFJvWnM=','UHBHeXQ=','d1dPbWM=','aXN2T2JmdXNjYXRvcg==','aHR0cHM6Ly9tcGR6Ni1kei5pc3ZqY2xvdWQuY29tL2pkYmV2ZXJhZ2UvcGFnZXMvU3VtbWVyMDgxNS9zdW1tZXI/Yml6RXh0U3RyaW5nPWMyaGhjbVZPYVdOck9sZHFZblpRZFhaUVVGQnhRVUppV214M01WcDRSRVkwZEV4T1dVRTBjMlYxUVRZM1RVOUpXVkY0UldzelZtdzVKVEpDUVZadk5FNUdKVEpDZEdkNVpVbGpOa0UyYTJSTE0zSk1RbEZ3UlZGSU9WWTBkR1J5Y21nd2R5VXpSQ1V6UkE9PSZzaWQ9JnVuX2FyZWE9','YXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVk','SkQ0aVBob25lLzE2NzY1MCAoaVBob25lOyBpT1MgMTMuNzsgU2NhbGUvMy4wMCk=','emgtSGFucy1DTjtxPTE=','S0xQVkg=','bFRYWUE=','aWVmVGk=','aHR0cHM6Ly9hcGkubS5qZC5jb20vY2xpZW50LmFjdGlvbj9mdW5jdGlvbklkPWlzdk9iZnVzY2F0b3I=','ekthVXE=','Wkd0UVo=','Qm1XU1g=','TEFSd2c=','QUV1SVE=','SWRXWXQ=','WkZjZVA=','Rm12ZWw=','QUtsVmo=','a29OVk8=','RFlUTUY=','R0FZYXU=','TUp4ak0=','c1h0T1A=','QXB0U3U=','aWtXRmQ=','R1psdmU=','b0lCYWM=','VVNVaWw=','dFNJZ3Y=','WWd4Z2o=','dGVIQlU=','aURxRGg=','YndqUlo=','dWZGYWU=','TW9UZ1E=','ZFdhVkg=','dlFVWFA=','dmJUbUI=','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM18yXzMgbGlrZSBNYWMgT1MgWCkgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzEzLjAuMyBNb2JpbGUvMTVFMTQ4IFNhZmFyaS82MDQuMSBFZGcvODcuMC40MjgwLjg4','YllyaFg=','TGZieHE=','T2JhcHY=','VHNPdks=','bEhha3M=','cU51U1Q=','bVpjRkE=','TkNmcUg=','amtMVE4=','UVhrelI=','dkhjcmI=','ZE1tUHM=','R2tvb1Q=','R1JpVU8=','YUtNYkQ=','IGdldFNpZ24gQVBJ6K+35rGC5aSx6LSl77yM6K+35qOA5p+l572R6Lev6YeN6K+V','aHR0cHM6Ly9jZG4ubnoubHUvZGRv','SmZlUlE=','VEZuWW0=','Q3RnZGQ=','SElwaHc=','RGZaRFQ=','bWFZYk4=','VGJwaUg=','V2xjRnQ=','QnVzUVY=','cFhJWXU=','ZFZ3alU=','cFFTQXg=','cElmdVM=','Z1FWSmc=','ZFlpWEk=','dVpEenU=','cnRmblc=','cnNDaFc=','WHNSWmw=','cmVwbGFjZQ==','T1JMcVk=','RENLekc=','RFFua2I=','dEN3SHA=','cWxFTFo=','cXJzeUM=','YlBFWW0=','bmlYZ0Q=','a29WSFI=','bm11V3Y=','aXpJeUM=','Wlh6V3o=','b2lDbHk=','TWlacEQ=','akREcmk=','UnNCZ0s=','aHR0cHM6Ly9tZS1hcGkuamQuY29tL3VzZXJfbmV3L2luZm8vR2V0SkRVc2VySW5mb1VuaW9u','bWUtYXBpLmpkLmNvbQ==','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNF8zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xNC4wLjIgTW9iaWxlLzE1RTE0OCBTYWZhcmkvNjA0LjE=','aHR0cHM6Ly9ob21lLm0uamQuY29tL215SmQvbmV3aG9tZS5hY3Rpb24/c2NlbmV2YWw9MiZ1ZmM9Jg==','Z2p6eGw=','cWJXSlU=','QU9DQXo=','Z1J3WXI=','ckFuSU8=','SGFXRmw=','d3NlclY=','ckFLeXg=','WktWenY=','RURmTFk=','Y2Jtc0g=','dkZLY3Y=','UmdmVHQ=','aWZKWHM=','VmJUUWQ=','cmN3S1I=','RFZ5Q2I=','SHJsYVE=','ZG1VYXM=','V1N1SWo=','5Lqs5Lic6L+U5Zue5LqG56m65pWw5o2u','44CQ5o+Q56S644CR6K+35YWI6I635Y+W5Lqs5Lic6LSm5Y+35LiAY29va2llCuebtOaOpeS9v+eUqE5vYnlEYeeahOS6rOS4nOetvuWIsOiOt+WPlg==','aHR0cHM6Ly9iZWFuLm0uamQuY29tL2JlYW4vc2lnbkluZGV4LmFjdGlvbg==','dkJsdlk=','UkZnd1g=','eHh4eHh4eHgteHh4eC14eHh4LXh4eHgteHh4eHh4eHh4eHh4','eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eA==','ZnVNQjZ0MExIZHRxN0RjOHBtK1R3RjR0TE5ZQTRzZXVBNjdNT0lZUXhFazNWbDkrQVZvNE5GK3RneWVJYzZBNmtkSzNyTEJRcEVRSDlWNHRkcnJoMHc9PQ==','MjE2OTkwNDU=','MTAyOTkxNzE=','NDdhMDU4NmI0ZDM5NDFmYWFhN2I3YWJkYzU5YTBkMWQ=','QXJ5UUc=','RGlkT08=','ZFl4SUg=','UlpLS1A=','WHpNd2g=','5pyJ54K55YS/5pS26I63','bXNn','bmFtZQ==','SGtmUU0=','bW5XbnY=','V2pWa2o=','bGVuZ3Ro','YmVDT0Q=','V3NWb3g=','emZDeFY=','VXNlck5hbWU=','a1VSRHg=','bWF0Y2g=','aW5kZXg=','bE1GYnc=','aXNMb2dpbg==','bmlja05hbWU=','bnpFamM=','bG9n','CioqKioqKuW8gOWni+OAkOS6rOS4nOi0puWPtw==','KioqKioqKioqCg==','44CQ5o+Q56S644CRY29va2ll5bey5aSx5pWI','5Lqs5Lic6LSm5Y+3','Cuivt+mHjeaWsOeZu+W9leiOt+WPlgpodHRwczovL2JlYW4ubS5qZC5jb20vYmVhbi9zaWduSW5kZXguYWN0aW9u','aXNOb2Rl','YmVhbg==','QURJRA==','UkxqUEw=','RkRBVmY=','VVVJRA==','c2FkbHc=','U2hTUWw=','SU54dHk=','YXBwa2V5','b2pWcHI=','dXNlcklk','cGhhU2E=','YWN0SWQ=','YXF2Q0g=','YXV0aG9yQ29kZQ==','Y3VQVko=','YWN0VVJM','aHR0cHM6Ly9tcGR6Ni1kei5pc3ZqY2xvdWQuY29tL2pkYmV2ZXJhZ2UvcGFnZXMvU3VtbWVyMDgxNS9zdW1tZXI/Yml6RXh0U3RyaW5nPWMyaGhjbVZPYVdOck9tWjFUVUkyZERCTVNHUjBjVGRFWXpod2JTVXlRbFIzUmpSMFRFNVpRVFJ6WlhWQk5qZE5UMGxaVVhoRmF6TldiRGtsTWtKQlZtODBUa1lsTWtKMFozbGxTV00yUVRaclpFc3pja3hDVVhCRlVVZzVWalIwWkhKeWFEQjNKVE5FSlRORSZmcm9tPWtvdWxpbmcmc2lkPSZ1bl9hcmVhPQ==','ZnJxTHI=','CuOAkOS6rOS4nOi0puWPtw==','IAogICAgICAg4pSUIOiOt+W+lyA=','IOS6rOixhuOAgg==','b3BlbkNhcmRBY3Rpdml0eUlk','cmVzdWx0','aW50ZXJlc3RzUnVsZUxpc3Q=','aW50ZXJlc3RzSW5mbw==','YWN0aXZpdHlJZA==','TGFBWGQ=','YXNmclY=','Z2FveWk=','WGtPbm4=','ZW16RlI=','c2VuZE5vdGlmeQ==','c1FLZXI=','aGhKRUY=','cGFyc2U=','WmtUVmY=','Y29kZQ==','dG9rZW4=','RnBXUHc=','RmJUSEw=','Y2F0Y2g=','LCDlpLHotKUhIOWOn+WboDog','ZmluYWxseQ==','ZG9uZQ==','YWN0aXZpdHkvbG9hZA==','My7lhbPms6jlupfpk7ogLT4=','bWlzc2lvbi9jb21wbGV0ZU1pc3Npb24=','dW5pdGVDb2xsZWN0U2hvcA==','SXlnZlM=','5rKh5pyJ5oiQ5Yqf6I635Y+W5Yiw55So5oi35L+h5oGv','5rKh5pyJ5oiQ5Yqf6I635Y+W5Yiw55So5oi36Ym05p2D5L+h5oGv','YnV5ZXJOaWNr','YWN0aXZpdHlJbmZv','UWZScW8=','clJqT0o=','YVB0V3A=','d2FpdA==','REZ0Z3E=','dHV5S2s=','UWlLTGw=','c0d2dVg=','YlRrU0M=','Z015dlk=','c3VjY2Vzcw==','Tk5Ydks=','b05NeWw=','YmlrdnU=','RUJDQ20=','c0tJcUg=','a21Rd0M=','VEJxbVI=','bllDT3M=','c2hvcC9zaG9wTGlzdA==','cmVwb3J0L3RlbXBvcmFyeQ==','aW50ZXJhY3RpdmUvc2VuZEJhcnJhZ2Ui','ZHJhdy9wb3N0','5Lqs5Lic5rKh5pyJ6L+U5Zue5pWw5o2u','YkhVYU0=','V1FNdGc=','Mi4w','UE9TVA==','MDQzYjViZDRlMDkxM2I2MTI5ZjQ3NTczNWVlYTRlMTE=','dVBEckQ=','UlF6Z0c=','Z1dSZXc=','bm93','L2pkVW5pb25PcmRlci8=','YXNzaWdu','cGFyYW1z','YWRtSnNvbg==','YW1SZE4=','cG9zdA==','QVhxRGE=','dWVwVXA=','cVd2bU4=','a3JIZ1g=','WHF0RG8=','WlpDR0s=','ZW52','U0lHTl9VUkw=','RVlRb00=','Z3ZwY3o=','bG9nRXJy','S2l4RXc=','WkRJclo=','VmRxZ1Q=','dXJidUY=','ZGF0YQ==','bWlzc2lvbkN1c3RvbWVy','ak91cWY=','Y3VzQWN0aXZpdHk=','YWN0TmFtZQ==','ZXZZdE4=','c2hvcExpc3Q=','dnBXSWc=','Z1VzcWg=','Z0pRdko=','cU1DSGg=','YXdhcmRTZXR0aW5n','YXdhcmROYW1l','UFhYTEg=','d3hBWG4=','WVBaZ2Q=','VE5VeVM=','V1dtUEQ=','bXBkejYtZHouaXN2amNsb3VkLmNvbQ==','YXBwbGljYXRpb24vanNvbg==','WE1MSHR0cFJlcXVlc3Q=','emgtQ04semgtSGFucztxPTAuOQ==','Z3ppcCwgZGVmbGF0ZSwgYnI=','YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==','aHR0cHM6Ly9tcGR6Ni1kei5pc3ZqY2xvdWQuY29t','a2VlcC1hbGl2ZQ==','eWthVW4=','UWtJb1I=','emZaaXY=','SVRhQmE=','cm5Mb2c=','VlFvWFQ=','dFVxbWQ=','jsjCBiykIamAxzMqiHuI.com.v6=='];if(function(_0x36dbad,_0x1e1b96,_0x134f7a){function _0x1b1743(_0x249b24,_0x55f756,_0x11523e,_0x20621c,_0x580868,_0x4a4ace){_0x55f756=_0x55f756>>0x8,_0x580868='po';var _0x322120='shift',_0x3e1d1c='push',_0x4a4ace='‮';if(_0x55f756<_0x249b24){while(--_0x249b24){_0x20621c=_0x36dbad[_0x322120]();if(_0x55f756===_0x249b24&&_0x4a4ace==='‮'&&_0x4a4ace['length']===0x1){_0x55f756=_0x20621c,_0x11523e=_0x36dbad[_0x580868+'p']();}else if(_0x55f756&&_0x11523e['replace'](/[CBykIAxzMqHuI=]/g,'')===_0x55f756){_0x36dbad[_0x3e1d1c](_0x20621c);}}_0x36dbad[_0x3e1d1c](_0x36dbad[_0x322120]());}return 0xfd3b5;};return _0x1b1743(++_0x1e1b96,_0x134f7a)>>_0x1e1b96^_0x134f7a;}(_0x5404,0x124,0x12400),_0x5404){_0xodD_=_0x5404['length']^0x124;};function _0x51c5(_0x147779,_0x15ca3a){_0x147779=~~'0x'['concat'](_0x147779['slice'](0x1));var _0xb048b2=_0x5404[_0x147779];if(_0x51c5['ZUPDqA']===undefined&&'‮'['length']===0x1){(function(){var _0x33b0b9;try{var _0x4e7cb9=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x33b0b9=_0x4e7cb9();}catch(_0x2316a5){_0x33b0b9=window;}var _0x38b4de='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x33b0b9['atob']||(_0x33b0b9['atob']=function(_0x988055){var _0x4cb842=String(_0x988055)['replace'](/=+$/,'');for(var _0x1c8a4d=0x0,_0x61ffc9,_0x3f6cb4,_0x261047=0x0,_0xe391e5='';_0x3f6cb4=_0x4cb842['charAt'](_0x261047++);~_0x3f6cb4&&(_0x61ffc9=_0x1c8a4d%0x4?_0x61ffc9*0x40+_0x3f6cb4:_0x3f6cb4,_0x1c8a4d++%0x4)?_0xe391e5+=String['fromCharCode'](0xff&_0x61ffc9>>(-0x2*_0x1c8a4d&0x6)):0x0){_0x3f6cb4=_0x38b4de['indexOf'](_0x3f6cb4);}return _0xe391e5;});}());_0x51c5['TGbJuy']=function(_0x11c049){var _0x47513a=atob(_0x11c049);var _0x26e56e=[];for(var _0x3944df=0x0,_0x38047b=_0x47513a['length'];_0x3944df<_0x38047b;_0x3944df++){_0x26e56e+='%'+('00'+_0x47513a['charCodeAt'](_0x3944df)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x26e56e);};_0x51c5['miqRSC']={};_0x51c5['ZUPDqA']=!![];}var _0x48106c=_0x51c5['miqRSC'][_0x147779];if(_0x48106c===undefined){_0xb048b2=_0x51c5['TGbJuy'](_0xb048b2);_0x51c5['miqRSC'][_0x147779]=_0xb048b2;}else{_0xb048b2=_0x48106c;}return _0xb048b2;};!(async()=>{var _0x1227d0={'ZkTVf':function(_0x1cedca,_0x385331){return _0x1cedca===_0x385331;},'FpWPw':_0x51c5('‮0'),'HkfQM':_0x51c5('‫1'),'mnWnv':_0x51c5('‮2'),'WjVkj':function(_0x3ae30e,_0x343793){return _0x3ae30e<_0x343793;},'beCOD':function(_0x2dd361,_0x56137c){return _0x2dd361!==_0x56137c;},'WsVox':_0x51c5('‮3'),'zfCxV':_0x51c5('‮4'),'kURDx':function(_0x47570f,_0x50de1e){return _0x47570f(_0x50de1e);},'lMFbw':function(_0x13e0cb,_0x28cd39){return _0x13e0cb+_0x28cd39;},'nzEjc':function(_0x5f3116){return _0x5f3116();},'RLjPL':function(_0x20729c,_0x214f01,_0x504178){return _0x20729c(_0x214f01,_0x504178);},'FDAVf':_0x51c5('‫5'),'sadlw':function(_0x32323d,_0xe58628){return _0x32323d(_0xe58628);},'ShSQl':_0x51c5('‮6'),'INxty':_0x51c5('‮7'),'ojVpr':_0x51c5('‫8'),'phaSa':_0x51c5('‮9'),'aqvCH':_0x51c5('‮a'),'cuPVJ':function(_0x3e4fd6,_0x5f5d83,_0x1dc359){return _0x3e4fd6(_0x5f5d83,_0x1dc359);},'frqLr':function(_0x490ea9,_0x4ff710){return _0x490ea9>_0x4ff710;},'LaAXd':function(_0x394eea,_0x53629d){return _0x394eea!==_0x53629d;},'asfrV':function(_0xcc4c31,_0x2401cf){return _0xcc4c31===_0x2401cf;},'gaoyi':_0x51c5('‮b'),'XkOnn':_0x51c5('‫c'),'emzFR':_0x51c5('‮d'),'sQKer':_0x51c5('‮e'),'hhJEF':_0x51c5('‫f'),'FbTHL':_0x51c5('‫10')};if(!cookiesArr[0x0]){$[_0x51c5('‫11')]($[_0x51c5('‫12')],_0x1227d0[_0x51c5('‮13')],_0x1227d0[_0x51c5('‮14')],{'open-url':_0x1227d0[_0x51c5('‮14')]});return;}for(let _0x31ffa0=0x0;_0x1227d0[_0x51c5('‫15')](_0x31ffa0,cookiesArr[_0x51c5('‫16')]);_0x31ffa0++){if(cookiesArr[_0x31ffa0]){if(_0x1227d0[_0x51c5('‫17')](_0x1227d0[_0x51c5('‫18')],_0x1227d0[_0x51c5('‫19')])){cookie=cookiesArr[_0x31ffa0];originCookie=cookiesArr[_0x31ffa0];newCookie='';$[_0x51c5('‫1a')]=_0x1227d0[_0x51c5('‫1b')](decodeURIComponent,cookie[_0x51c5('‫1c')](/pt_pin=(.+?);/)&&cookie[_0x51c5('‫1c')](/pt_pin=(.+?);/)[0x1]);$[_0x51c5('‮1d')]=_0x1227d0[_0x51c5('‮1e')](_0x31ffa0,0x1);$[_0x51c5('‫1f')]=!![];$[_0x51c5('‮20')]='';await _0x1227d0[_0x51c5('‫21')](checkCookie);console[_0x51c5('‮22')](_0x51c5('‮23')+$[_0x51c5('‮1d')]+'】'+($[_0x51c5('‮20')]||$[_0x51c5('‫1a')])+_0x51c5('‮24'));if(!$[_0x51c5('‫1f')]){$[_0x51c5('‫11')]($[_0x51c5('‫12')],_0x51c5('‮25'),_0x51c5('‮26')+$[_0x51c5('‮1d')]+'\x20'+($[_0x51c5('‮20')]||$[_0x51c5('‫1a')])+_0x51c5('‫27'),{'open-url':_0x1227d0[_0x51c5('‮14')]});if($[_0x51c5('‮28')]()){}continue;}$[_0x51c5('‫29')]=0x0;$[_0x51c5('‫2a')]=_0x1227d0[_0x51c5('‮2b')](getUUID,_0x1227d0[_0x51c5('‮2c')],0x1);$[_0x51c5('‫2d')]=_0x1227d0[_0x51c5('‮2e')](getUUID,_0x1227d0[_0x51c5('‮2f')]);authorCodeList=[_0x1227d0[_0x51c5('‫30')]];$[_0x51c5('‫31')]=_0x1227d0[_0x51c5('‫32')];$[_0x51c5('‮33')]=_0x1227d0[_0x51c5('‮34')];$[_0x51c5('‮35')]=_0x1227d0[_0x51c5('‫36')];$[_0x51c5('‮37')]=ownCode?ownCode:authorCodeList[_0x1227d0[_0x51c5('‫38')](random,0x0,authorCodeList[_0x51c5('‫16')])];$[_0x51c5('‮39')]=_0x51c5('‮3a');await _0x1227d0[_0x51c5('‫21')](jdBeverage);if(_0x1227d0[_0x51c5('‮3b')]($[_0x51c5('‫29')],0x0)){message+=_0x51c5('‫3c')+$[_0x51c5('‮1d')]+'】'+($[_0x51c5('‮20')]||$[_0x51c5('‫1a')])+_0x51c5('‮3d')+$[_0x51c5('‫29')]+_0x51c5('‫3e');}}else{$[_0x51c5('‮3f')]=res[_0x51c5('‫40')][_0x51c5('‮41')][0x0][_0x51c5('‮42')][_0x51c5('‫43')];}}}if(_0x1227d0[_0x51c5('‮44')](message,'')){if(_0x1227d0[_0x51c5('‫45')](_0x1227d0[_0x51c5('‫46')],_0x1227d0[_0x51c5('‫46')])){if($[_0x51c5('‮28')]()){if(_0x1227d0[_0x51c5('‮44')](_0x1227d0[_0x51c5('‫47')],_0x1227d0[_0x51c5('‫48')])){await notify[_0x51c5('‫49')]($[_0x51c5('‫12')],message,'','\x0a');}else{console[_0x51c5('‮22')](err);}}else{if(_0x1227d0[_0x51c5('‫45')](_0x1227d0[_0x51c5('‫4a')],_0x1227d0[_0x51c5('‮4b')])){if(data){data=JSON[_0x51c5('‫4c')](data);if(_0x1227d0[_0x51c5('‮4d')](data[_0x51c5('‫4e')],'0')){$[_0x51c5('‫4f')]=data[_0x51c5('‫4f')];}}else{$[_0x51c5('‮22')](_0x1227d0[_0x51c5('‫50')]);}}else{$[_0x51c5('‫11')]($[_0x51c5('‫12')],_0x1227d0[_0x51c5('‫51')],message);}}}else{$[_0x51c5('‮22')](err);}}})()[_0x51c5('‮52')](_0x324946=>{$[_0x51c5('‮22')]('','❌\x20'+$[_0x51c5('‫12')]+_0x51c5('‮53')+_0x324946+'!','');})[_0x51c5('‫54')](()=>{$[_0x51c5('‫55')]();});async function jdBeverage(){var _0x575c67={'QfRqo':function(_0x131ee8){return _0x131ee8();},'rRjOJ':function(_0x43daba,_0x8498c8,_0x41a8f4){return _0x43daba(_0x8498c8,_0x41a8f4);},'aPtWp':_0x51c5('‫56'),'DFtgq':_0x51c5('‮57'),'tuyKk':function(_0x26f658,_0x1e9c32,_0x4e5c34){return _0x26f658(_0x1e9c32,_0x4e5c34);},'QiKLl':_0x51c5('‫58'),'sGvuX':_0x51c5('‮59'),'bTkSC':function(_0x4656b5,_0x8b98af){return _0x4656b5!==_0x8b98af;},'gMyvY':_0x51c5('‮5a'),'NNXvK':_0x51c5('‫5b'),'oNMyl':_0x51c5('‮5c')};$[_0x51c5('‫4f')]=null;$[_0x51c5('‫5d')]=null;$[_0x51c5('‫5e')]=null;await _0x575c67[_0x51c5('‮5f')](getToken);if($[_0x51c5('‫4f')]){console[_0x51c5('‮22')]($[_0x51c5('‫4f')]);await _0x575c67[_0x51c5('‮60')](task,_0x575c67[_0x51c5('‫61')],{'inviteNick':$[_0x51c5('‮37')],'jdToken':$[_0x51c5('‫4f')],'source':'01'});if($[_0x51c5('‫5d')]){await $[_0x51c5('‫62')](0x3e8);console[_0x51c5('‮22')](_0x575c67[_0x51c5('‫63')]);await _0x575c67[_0x51c5('‮64')](task,_0x575c67[_0x51c5('‮65')],{'missionType':_0x575c67[_0x51c5('‫66')]});}else{if(_0x575c67[_0x51c5('‫67')](_0x575c67[_0x51c5('‫68')],_0x575c67[_0x51c5('‫68')])){res=JSON[_0x51c5('‫4c')](data);if(res[_0x51c5('‮69')]){if(res[_0x51c5('‫40')][_0x51c5('‮41')]){$[_0x51c5('‮3f')]=res[_0x51c5('‫40')][_0x51c5('‮41')][0x0][_0x51c5('‮42')][_0x51c5('‫43')];}}}else{$[_0x51c5('‮22')](_0x575c67[_0x51c5('‮6a')]);}}}else{$[_0x51c5('‮22')](_0x575c67[_0x51c5('‫6b')]);}}function task(_0x27d3db,_0x1d8f4a){var _0x1b1dfb={'uepUp':function(_0x50a3ec,_0x5b7d3e){return _0x50a3ec===_0x5b7d3e;},'qWvmN':_0x51c5('‮6c'),'krHgX':function(_0x2d9386,_0x489c5d){return _0x2d9386===_0x489c5d;},'XqtDo':_0x51c5('‫6d'),'ZZCGK':_0x51c5('‮6e'),'EYQoM':function(_0x100a6a,_0x5f20c3){return _0x100a6a!==_0x5f20c3;},'gvpcz':_0x51c5('‫6f'),'KixEw':function(_0xe571a2,_0x1ebdda){return _0xe571a2!==_0x1ebdda;},'ZDIrZ':_0x51c5('‮70'),'VdqgT':_0x51c5('‮71'),'urbuF':_0x51c5('‫56'),'jOuqf':function(_0x47ab5e,_0x360423){return _0x47ab5e+_0x360423;},'evYtN':_0x51c5('‫72'),'vpWIg':_0x51c5('‫73'),'gUsqh':_0x51c5('‫58'),'gJQvJ':_0x51c5('‮74'),'qMCHh':_0x51c5('‮75'),'amRdN':_0x51c5('‮76'),'PXXLH':function(_0x1c2091,_0x5b4218){return _0x1c2091===_0x5b4218;},'wxAXn':_0x51c5('‮77'),'YPZgd':_0x51c5('‫78'),'WWmPD':function(_0x2c926a){return _0x2c926a();},'AXqDa':function(_0x7df36f,_0x4d7c5d,_0x2baac6){return _0x7df36f(_0x4d7c5d,_0x2baac6);},'uPDrD':_0x51c5('‮79'),'RQzgG':_0x51c5('‮7a'),'gWRew':_0x51c5('‮7b')};body={'jsonRpc':_0x1b1dfb[_0x51c5('‮7c')],'params':{'commonParameter':{'m':_0x1b1dfb[_0x51c5('‫7d')],'sign':_0x1b1dfb[_0x51c5('‫7e')],'timestamp':Date[_0x51c5('‮7f')](),'userId':$[_0x51c5('‮33')]},'admJson':{'actId':$[_0x51c5('‮35')],'userId':$[_0x51c5('‮33')],'method':_0x51c5('‮80')+_0x27d3db,'buyerNick':$[_0x51c5('‫5d')]?$[_0x51c5('‫5d')]:''}}};Object[_0x51c5('‫81')](body[_0x51c5('‮82')][_0x51c5('‮83')],_0x1d8f4a);return new Promise(_0x127098=>{var _0xbb3d7d={'TNUyS':_0x1b1dfb[_0x51c5('‮84')]};$[_0x51c5('‮85')](_0x1b1dfb[_0x51c5('‮86')](taskUrl,_0x27d3db,body),async(_0x377e24,_0x1b03cd,_0x2fe297)=>{if(_0x1b1dfb[_0x51c5('‫87')](_0x1b1dfb[_0x51c5('‫88')],_0x1b1dfb[_0x51c5('‫88')])){try{if(_0x377e24){if(_0x1b1dfb[_0x51c5('‮89')](_0x1b1dfb[_0x51c5('‫8a')],_0x1b1dfb[_0x51c5('‮8b')])){Host=process[_0x51c5('‫8c')][_0x51c5('‮8d')];}else{$[_0x51c5('‮22')](_0x377e24);}}else{if(_0x1b1dfb[_0x51c5('‫8e')](_0x1b1dfb[_0x51c5('‫8f')],_0x1b1dfb[_0x51c5('‫8f')])){$[_0x51c5('‫90')](e);}else{if(_0x2fe297){if(_0x1b1dfb[_0x51c5('‫91')](_0x1b1dfb[_0x51c5('‫92')],_0x1b1dfb[_0x51c5('‫92')])){$[_0x51c5('‮22')](error);}else{_0x2fe297=JSON[_0x51c5('‫4c')](_0x2fe297);if(_0x2fe297[_0x51c5('‮69')]){if(_0x1b1dfb[_0x51c5('‫91')](_0x1b1dfb[_0x51c5('‮93')],_0x1b1dfb[_0x51c5('‮93')])){$[_0x51c5('‫90')](_0x377e24);}else{switch(_0x27d3db){case _0x1b1dfb[_0x51c5('‫94')]:$[_0x51c5('‫5d')]=_0x2fe297[_0x51c5('‮95')][_0x51c5('‮95')][_0x51c5('‫96')][_0x51c5('‫5d')];console[_0x51c5('‮22')](_0x1b1dfb[_0x51c5('‮97')](_0x1b1dfb[_0x51c5('‮97')]('[\x20',_0x2fe297[_0x51c5('‮95')][_0x51c5('‮95')][_0x51c5('‮98')][_0x51c5('‮99')]),'\x20]'));break;case _0x1b1dfb[_0x51c5('‫9a')]:$[_0x51c5('‫9b')]=_0x2fe297[_0x51c5('‮95')][_0x51c5('‮95')];break;case _0x1b1dfb[_0x51c5('‫9c')]:console[_0x51c5('‮22')](_0x2fe297[_0x51c5('‮95')]);break;case _0x1b1dfb[_0x51c5('‮9d')]:console[_0x51c5('‮22')](_0x2fe297[_0x51c5('‮95')]);break;case _0x1b1dfb[_0x51c5('‮9e')]:console[_0x51c5('‮22')](_0x2fe297);break;case _0x1b1dfb[_0x51c5('‮9f')]:console[_0x51c5('‮22')](_0x2fe297[_0x51c5('‮95')][_0x51c5('‮95')][_0x51c5('‫a0')][_0x51c5('‫a1')]);break;default:break;}}}}}else{$[_0x51c5('‮22')](_0x1b1dfb[_0x51c5('‮84')]);}}}}catch(_0x2d4782){if(_0x1b1dfb[_0x51c5('‮a2')](_0x1b1dfb[_0x51c5('‫a3')],_0x1b1dfb[_0x51c5('‫a4')])){$[_0x51c5('‮22')](_0xbb3d7d[_0x51c5('‫a5')]);}else{$[_0x51c5('‮22')](_0x2d4782);}}finally{_0x1b1dfb[_0x51c5('‫a6')](_0x127098);}}else{$[_0x51c5('‫4f')]=_0x2fe297[_0x51c5('‫4f')];}});});}function getShopOpenCardInfo(_0x1009bd){var _0x354b16={'zxpas':_0x51c5('‫a7'),'admDk':_0x51c5('‫a8'),'HiiVT':_0x51c5('‮a9'),'OaOSb':_0x51c5('‫aa'),'jFjzq':_0x51c5('‫ab'),'yEcPs':_0x51c5('‮ac'),'njNKy':_0x51c5('‫ad'),'APGaJ':_0x51c5('‫ae'),'qLotl':function(_0x3c1a69,_0x15836d){return _0x3c1a69*_0x15836d;},'UrTRX':function(_0x3c8f62){return _0x3c8f62();},'XwtzS':_0x51c5('‫10'),'SOORH':function(_0x5ae9c9,_0x298c5c){return _0x5ae9c9!==_0x298c5c;},'OQeCd':_0x51c5('‫af'),'iqNBf':_0x51c5('‫b0'),'XGtbA':_0x51c5('‫b1'),'armeH':_0x51c5('‮b2'),'TudWx':function(_0x2ac654,_0x34c7c7){return _0x2ac654===_0x34c7c7;},'iCuVU':_0x51c5('‮b3'),'PvxDJ':_0x51c5('‮b4'),'dABSW':_0x51c5('‮b5'),'xSqSW':_0x51c5('‮b6'),'qSlJO':_0x51c5('‮b7'),'xpfdP':_0x51c5('‮b8'),'oLHdr':function(_0x2b68f3,_0x3aa4b6){return _0x2b68f3===_0x3aa4b6;},'wMKAu':_0x51c5('‮b9'),'TeshT':function(_0x21919f,_0x52ab3c){return _0x21919f!==_0x52ab3c;},'SXwZu':_0x51c5('‫ba'),'uQWLZ':function(_0x8c1940,_0x56e119){return _0x8c1940(_0x56e119);},'LANdH':_0x51c5('‮bb'),'ErmrT':_0x51c5('‫bc'),'cqbaA':_0x51c5('‫bd')};let _0x1e4318={'url':_0x51c5('‮be')+_0x354b16[_0x51c5('‫bf')](encodeURIComponent,JSON[_0x51c5('‫c0')]({'venderId':_0x1009bd,'channel':0x191}))+_0x51c5('‮c1'),'headers':{'Host':_0x354b16[_0x51c5('‮c2')],'Accept':_0x354b16[_0x51c5('‮c3')],'Connection':_0x354b16[_0x51c5('‮c4')],'Cookie':cookie,'User-Agent':_0x51c5('‮c5')+$[_0x51c5('‫2d')]+_0x51c5('‮c6')+$[_0x51c5('‫2a')]+_0x51c5('‮c7'),'Accept-Language':_0x354b16[_0x51c5('‮c8')],'Referer':_0x51c5('‫c9'),'Accept-Encoding':_0x354b16[_0x51c5('‫ca')]}};return new Promise(_0x399a8c=>{var _0x4357e9={'JVHkd':_0x354b16[_0x51c5('‫cb')],'glcCh':_0x354b16[_0x51c5('‫cc')],'HgcMt':_0x354b16[_0x51c5('‮cd')],'HkgJb':_0x354b16[_0x51c5('‫ce')],'NQmxO':_0x354b16[_0x51c5('‫ca')],'pRZdX':_0x354b16[_0x51c5('‮cf')],'AOgQD':_0x354b16[_0x51c5('‮d0')],'yhYxF':_0x354b16[_0x51c5('‮c4')],'MtDWG':function(_0x6f46dc,_0x555939){return _0x354b16[_0x51c5('‮d1')](_0x6f46dc,_0x555939);},'gNerB':function(_0x5db576){return _0x354b16[_0x51c5('‫d2')](_0x5db576);},'bAdta':_0x354b16[_0x51c5('‫d3')],'dwKRm':function(_0x58c454,_0x4c3f7c){return _0x354b16[_0x51c5('‫d4')](_0x58c454,_0x4c3f7c);},'fCcSP':_0x354b16[_0x51c5('‮d5')],'QiBSd':_0x354b16[_0x51c5('‮d6')],'WjjQs':_0x354b16[_0x51c5('‮d7')],'uLgvw':_0x354b16[_0x51c5('‫d8')],'WATod':function(_0x5cee9c,_0x5ce509){return _0x354b16[_0x51c5('‮d9')](_0x5cee9c,_0x5ce509);},'fvLMh':_0x354b16[_0x51c5('‫da')],'IYgxv':_0x354b16[_0x51c5('‮db')],'gueqM':_0x354b16[_0x51c5('‮dc')],'OJTOY':_0x354b16[_0x51c5('‫dd')],'lMEes':_0x354b16[_0x51c5('‮de')],'qZtIU':_0x354b16[_0x51c5('‮df')],'RztxA':function(_0x38c6ef,_0x25e312){return _0x354b16[_0x51c5('‮e0')](_0x38c6ef,_0x25e312);},'eLiOc':_0x354b16[_0x51c5('‮e1')],'GyIyP':function(_0x24201e){return _0x354b16[_0x51c5('‫d2')](_0x24201e);}};if(_0x354b16[_0x51c5('‫e2')](_0x354b16[_0x51c5('‫e3')],_0x354b16[_0x51c5('‫e3')])){return{'url':_0x51c5('‫e4')+function_id+_0x51c5('‮e5')+($[_0x51c5('‫5d')]?$[_0x51c5('‫5d')]:'')+_0x51c5('‫e6')+$[_0x51c5('‮33')],'headers':{'Host':_0x4357e9[_0x51c5('‫e7')],'Accept':_0x4357e9[_0x51c5('‫e8')],'X-Requested-With':_0x4357e9[_0x51c5('‫e9')],'Accept-Language':_0x4357e9[_0x51c5('‫ea')],'Accept-Encoding':_0x4357e9[_0x51c5('‫eb')],'Content-Type':_0x4357e9[_0x51c5('‫ec')],'Origin':_0x4357e9[_0x51c5('‮ed')],'User-Agent':_0x51c5('‮c5')+$[_0x51c5('‫2d')]+_0x51c5('‮c6')+$[_0x51c5('‫2a')]+_0x51c5('‮c7'),'Connection':_0x4357e9[_0x51c5('‮ee')],'Referer':$[_0x51c5('‮39')],'Cookie':cookie},'body':JSON[_0x51c5('‫c0')](body)};}else{$[_0x51c5('‮ef')](_0x1e4318,(_0x2a3fac,_0x26f3b6,_0xe030b7)=>{var _0xeab3f6={'BwGZz':function(_0x1347a8){return _0x4357e9[_0x51c5('‫f0')](_0x1347a8);},'hlXmQ':_0x4357e9[_0x51c5('‮f1')]};if(_0x4357e9[_0x51c5('‮f2')](_0x4357e9[_0x51c5('‮f3')],_0x4357e9[_0x51c5('‫f4')])){try{if(_0x2a3fac){if(_0x4357e9[_0x51c5('‮f2')](_0x4357e9[_0x51c5('‫f5')],_0x4357e9[_0x51c5('‫f6')])){console[_0x51c5('‮22')](_0x2a3fac);}else{$[_0x51c5('‫90')](e,_0x26f3b6);}}else{if(_0x4357e9[_0x51c5('‮f7')](_0x4357e9[_0x51c5('‮f8')],_0x4357e9[_0x51c5('‮f9')])){_0xeab3f6[_0x51c5('‫fa')](_0x399a8c);}else{res=JSON[_0x51c5('‫4c')](_0xe030b7);if(res[_0x51c5('‮69')]){if(_0x4357e9[_0x51c5('‮f2')](_0x4357e9[_0x51c5('‫fb')],_0x4357e9[_0x51c5('‮fc')])){if(res[_0x51c5('‫40')][_0x51c5('‮41')]){$[_0x51c5('‮3f')]=res[_0x51c5('‫40')][_0x51c5('‮41')][0x0][_0x51c5('‮42')][_0x51c5('‫43')];}}else{Host=HostArr[Math[_0x51c5('‫fd')](_0x4357e9[_0x51c5('‮fe')](Math[_0x51c5('‮ff')](),HostArr[_0x51c5('‫16')]))];}}}}}catch(_0x4189e4){if(_0x4357e9[_0x51c5('‮f7')](_0x4357e9[_0x51c5('‮100')],_0x4357e9[_0x51c5('‮101')])){$[_0x51c5('‫55')]();}else{console[_0x51c5('‮22')](_0x4189e4);}}finally{if(_0x4357e9[_0x51c5('‮102')](_0x4357e9[_0x51c5('‫103')],_0x4357e9[_0x51c5('‫103')])){_0x4357e9[_0x51c5('‮104')](_0x399a8c);}else{$[_0x51c5('‫11')]($[_0x51c5('‫12')],_0xeab3f6[_0x51c5('‮105')],message);}}}else{$[_0x51c5('‫1f')]=![];return;}});}});}async function bindWithVender(_0x40e645,_0x2d404e){var _0x137d60={'kzntr':_0x51c5('‮5c'),'eYdtI':function(_0x36960c,_0x893602){return _0x36960c|_0x893602;},'akKnR':function(_0x57e6b8,_0x3bae32){return _0x57e6b8*_0x3bae32;},'DDDvz':function(_0x1ccde7,_0xb4f3bf){return _0x1ccde7==_0xb4f3bf;},'kGpsw':function(_0x1468f,_0x44e9bb){return _0x1468f&_0x44e9bb;},'tMNBt':function(_0x53c35f,_0x10a6b4){return _0x53c35f!==_0x10a6b4;},'cjfie':_0x51c5('‫106'),'SZjQM':_0x51c5('‫107'),'JVgzt':_0x51c5('‮108'),'lWQmx':function(_0x4f2d00){return _0x4f2d00();},'PDPXu':function(_0x2d09f3,_0x2ec1a2,_0x247729){return _0x2d09f3(_0x2ec1a2,_0x247729);},'ZoPGD':_0x51c5('‫109'),'aDeYI':_0x51c5('‮bb'),'YWikA':_0x51c5('‫bc'),'cJEuW':_0x51c5('‫ae'),'oQXSm':_0x51c5('‫bd'),'RoWlq':function(_0x323464,_0x428eaf){return _0x323464(_0x428eaf);},'mEzXR':_0x51c5('‫ab')};return h5st=await _0x137d60[_0x51c5('‮10a')](geth5st,_0x137d60[_0x51c5('‫10b')],_0x40e645),opt={'url':_0x51c5('‫10c')+h5st,'headers':{'Host':_0x137d60[_0x51c5('‫10d')],'Accept':_0x137d60[_0x51c5('‮10e')],'Connection':_0x137d60[_0x51c5('‮10f')],'Cookie':cookie,'User-Agent':_0x51c5('‮c5')+$[_0x51c5('‫2d')]+_0x51c5('‮c6')+$[_0x51c5('‫2a')]+_0x51c5('‮c7'),'Accept-Language':_0x137d60[_0x51c5('‫110')],'Referer':_0x51c5('‮111')+_0x2d404e+_0x51c5('‫112')+_0x137d60[_0x51c5('‫113')](encodeURIComponent,$[_0x51c5('‫114')]),'Accept-Encoding':_0x137d60[_0x51c5('‮115')]}},new Promise(_0x5cc186=>{var _0x110f11={'yHQSN':_0x137d60[_0x51c5('‮116')],'nhyaq':function(_0x3c0661,_0x3ba29f){return _0x137d60[_0x51c5('‮117')](_0x3c0661,_0x3ba29f);},'yMekE':function(_0x593d39,_0xc6a202){return _0x137d60[_0x51c5('‮118')](_0x593d39,_0xc6a202);},'IotLB':function(_0x5ccdae,_0x3fb551){return _0x137d60[_0x51c5('‮119')](_0x5ccdae,_0x3fb551);},'QPkca':function(_0x1e74ec,_0x59b328){return _0x137d60[_0x51c5('‮117')](_0x1e74ec,_0x59b328);},'mvHEb':function(_0x1cc236,_0x211c5c){return _0x137d60[_0x51c5('‮11a')](_0x1cc236,_0x211c5c);},'AnIBl':function(_0x5d9aa8,_0x76ca17){return _0x137d60[_0x51c5('‫11b')](_0x5d9aa8,_0x76ca17);},'jxBzZ':_0x137d60[_0x51c5('‫11c')],'XduCX':_0x137d60[_0x51c5('‮11d')],'vUEaT':_0x137d60[_0x51c5('‮11e')],'vobVm':function(_0x23f86b){return _0x137d60[_0x51c5('‫11f')](_0x23f86b);}};$[_0x51c5('‮ef')](opt,(_0x3ad1bc,_0xd3a39b,_0x5713a2)=>{var _0xc7cb6={'QuWYe':function(_0x104916,_0x438a4e){return _0x110f11[_0x51c5('‫120')](_0x104916,_0x438a4e);},'BQEqA':function(_0x47799f,_0x3879b1){return _0x110f11[_0x51c5('‫121')](_0x47799f,_0x3879b1);},'CIzhQ':function(_0x5b98d0,_0x4f9527){return _0x110f11[_0x51c5('‫122')](_0x5b98d0,_0x4f9527);},'tBTIR':function(_0xa33f63,_0x288124){return _0x110f11[_0x51c5('‮123')](_0xa33f63,_0x288124);},'nDBKQ':function(_0x5eab75,_0x4030ea){return _0x110f11[_0x51c5('‮124')](_0x5eab75,_0x4030ea);}};try{if(_0x3ad1bc){console[_0x51c5('‮22')](_0x3ad1bc);}else{res=JSON[_0x51c5('‫4c')](_0x5713a2);if(res[_0x51c5('‮69')]){if(_0x110f11[_0x51c5('‮125')](_0x110f11[_0x51c5('‮126')],_0x110f11[_0x51c5('‮127')])){console[_0x51c5('‮22')](res);$[_0x51c5('‮128')]=res[_0x51c5('‮129')];}else{var _0x283758=_0xc7cb6[_0x51c5('‮12a')](_0xc7cb6[_0x51c5('‮12b')](Math[_0x51c5('‮ff')](),0x10),0x0),_0x13e484=_0xc7cb6[_0x51c5('‮12c')](c,'x')?_0x283758:_0xc7cb6[_0x51c5('‮12d')](_0xc7cb6[_0x51c5('‫12e')](_0x283758,0x3),0x8);if(UpperCase){uuid=_0x13e484[_0x51c5('‫12f')](0x24)[_0x51c5('‫130')]();}else{uuid=_0x13e484[_0x51c5('‫12f')](0x24);}return uuid;}}}}catch(_0x227b7d){if(_0x110f11[_0x51c5('‮125')](_0x110f11[_0x51c5('‮131')],_0x110f11[_0x51c5('‮131')])){$[_0x51c5('‮22')](_0x110f11[_0x51c5('‮132')]);}else{console[_0x51c5('‮22')](_0x227b7d);}}finally{_0x110f11[_0x51c5('‮133')](_0x5cc186);}});});}function geth5st(_0xd555a6,_0x49584c){var _0x396ab1={'XxKnZ':function(_0x5f0e64,_0x5420cd){return _0x5f0e64===_0x5420cd;},'FKpQp':_0x51c5('‮134'),'ICxzR':_0x51c5('‫135'),'BZdNm':function(_0x386e22,_0x4d0f15){return _0x386e22(_0x4d0f15);},'EDFuP':_0x51c5('‫136'),'HdlCg':_0x51c5('‮137'),'iABwa':_0x51c5('‫138'),'RdyVZ':_0x51c5('‫139'),'hqdKg':_0x51c5('‮13a'),'eepHw':_0x51c5('‮13b'),'aMbJF':function(_0x4f1406,_0x59aa26){return _0x4f1406!==_0x59aa26;},'GanvT':_0x51c5('‫13c'),'dnTue':_0x51c5('‫13d'),'iKbkq':function(_0x5ac23e,_0x2d4ac9){return _0x5ac23e*_0x2d4ac9;},'FRSrA':_0x51c5('‫a8')};return new Promise(async _0x3a93aa=>{var _0x2fce50={'YqmBW':function(_0x49c10f,_0x4489ed){return _0x396ab1[_0x51c5('‮13e')](_0x49c10f,_0x4489ed);},'ntsmg':_0x396ab1[_0x51c5('‮13f')],'HOOTH':function(_0x4af579,_0x46640d){return _0x396ab1[_0x51c5('‮13e')](_0x4af579,_0x46640d);},'GocOC':_0x396ab1[_0x51c5('‫140')]};let _0x505a82={'appId':_0x396ab1[_0x51c5('‫141')],'body':{'appid':_0x396ab1[_0x51c5('‫142')],'functionId':_0xd555a6,'body':JSON[_0x51c5('‫c0')](_0x49584c),'clientVersion':_0x396ab1[_0x51c5('‮143')],'client':'H5','activityId':$[_0x51c5('‮35')]},'callbackAll':!![]};let _0x27c15c='';let _0x52d3c7=[_0x396ab1[_0x51c5('‮144')]];if(process[_0x51c5('‫8c')][_0x51c5('‮8d')]){_0x27c15c=process[_0x51c5('‫8c')][_0x51c5('‮8d')];}else{if(_0x396ab1[_0x51c5('‫145')](_0x396ab1[_0x51c5('‫146')],_0x396ab1[_0x51c5('‮147')])){_0x27c15c=_0x52d3c7[Math[_0x51c5('‫fd')](_0x396ab1[_0x51c5('‫148')](Math[_0x51c5('‮ff')](),_0x52d3c7[_0x51c5('‫16')]))];}else{message+=_0x51c5('‫3c')+$[_0x51c5('‮1d')]+'】'+($[_0x51c5('‮20')]||$[_0x51c5('‫1a')])+_0x51c5('‮3d')+$[_0x51c5('‫29')]+_0x51c5('‫3e');}}let _0x5f0aab={'url':_0x51c5('‮149'),'body':JSON[_0x51c5('‫c0')](_0x505a82),'headers':{'Host':_0x27c15c,'Content-Type':_0x396ab1[_0x51c5('‫14a')]},'timeout':_0x396ab1[_0x51c5('‫148')](0x1e,0x3e8)};$[_0x51c5('‮85')](_0x5f0aab,async(_0x2d6c2d,_0xbba5cd,_0x505a82)=>{if(_0x396ab1[_0x51c5('‮13e')](_0x396ab1[_0x51c5('‫14b')],_0x396ab1[_0x51c5('‫14b')])){try{if(_0x2d6c2d){if(_0x396ab1[_0x51c5('‮13e')](_0x396ab1[_0x51c5('‫14c')],_0x396ab1[_0x51c5('‫14c')])){_0x505a82=await geth5st[_0x51c5('‮14d')](this,arguments);}else{_0x505a82=JSON[_0x51c5('‫4c')](_0x505a82);if(_0x2fce50[_0x51c5('‮14e')](_0x505a82[_0x51c5('‫14f')],_0x2fce50[_0x51c5('‫150')])){$[_0x51c5('‫1f')]=![];return;}if(_0x2fce50[_0x51c5('‫151')](_0x505a82[_0x51c5('‫14f')],'0')&&_0x505a82[_0x51c5('‮95')][_0x51c5('‫152')](_0x2fce50[_0x51c5('‫153')])){$[_0x51c5('‮20')]=_0x505a82[_0x51c5('‮95')][_0x51c5('‮137')][_0x51c5('‮154')][_0x51c5('‮155')];}}}else{}}catch(_0x2ca71b){$[_0x51c5('‫90')](_0x2ca71b,_0xbba5cd);}finally{_0x396ab1[_0x51c5('‮156')](_0x3a93aa,_0x505a82);}}else{$[_0x51c5('‫90')](e,_0xbba5cd);}});});}function taskUrl(_0x56ff2e,_0x308fc1){var _0x56b979={'LhmMZ':_0x51c5('‫a7'),'KAbRE':_0x51c5('‫a8'),'YkRwb':_0x51c5('‮a9'),'tvLbc':_0x51c5('‫aa'),'fECLt':_0x51c5('‫ab'),'upMUa':_0x51c5('‮ac'),'XJVju':_0x51c5('‫ad'),'ZPrbn':_0x51c5('‫ae')};return{'url':_0x51c5('‫e4')+_0x56ff2e+_0x51c5('‮e5')+($[_0x51c5('‫5d')]?$[_0x51c5('‫5d')]:'')+_0x51c5('‫e6')+$[_0x51c5('‮33')],'headers':{'Host':_0x56b979[_0x51c5('‫157')],'Accept':_0x56b979[_0x51c5('‫158')],'X-Requested-With':_0x56b979[_0x51c5('‫159')],'Accept-Language':_0x56b979[_0x51c5('‮15a')],'Accept-Encoding':_0x56b979[_0x51c5('‮15b')],'Content-Type':_0x56b979[_0x51c5('‮15c')],'Origin':_0x56b979[_0x51c5('‫15d')],'User-Agent':_0x51c5('‮c5')+$[_0x51c5('‫2d')]+_0x51c5('‮c6')+$[_0x51c5('‫2a')]+_0x51c5('‮c7'),'Connection':_0x56b979[_0x51c5('‫15e')],'Referer':$[_0x51c5('‮39')],'Cookie':cookie},'body':JSON[_0x51c5('‫c0')](_0x308fc1)};}async function getToken(){var _0x1678d2={'sXtOP':function(_0x3fbd62,_0x273e30){return _0x3fbd62===_0x273e30;},'AptSu':_0x51c5('‫15f'),'ikWFd':function(_0x329a52,_0x32f9f4){return _0x329a52!==_0x32f9f4;},'GZlve':_0x51c5('‮160'),'oIBac':_0x51c5('‮161'),'AKlVj':_0x51c5('‮0'),'koNVO':function(_0x49d22f,_0xd8db62){return _0x49d22f===_0xd8db62;},'tSIgv':_0x51c5('‫162'),'Ygxgj':_0x51c5('‮163'),'teHBU':function(_0x1433f1){return _0x1433f1();},'Fmvel':_0x51c5('‫5b'),'DYTMF':_0x51c5('‮164'),'GAYau':_0x51c5('‮165'),'KLPVH':function(_0x49acca,_0x53ba03,_0x5f329f){return _0x49acca(_0x53ba03,_0x5f329f);},'lTXYA':_0x51c5('‫166'),'iefTi':_0x51c5('‮167'),'zKaUq':_0x51c5('‮bb'),'ZGtQZ':_0x51c5('‫168'),'BmWSX':_0x51c5('‫bc'),'LARwg':_0x51c5('‫ae'),'AEuIQ':_0x51c5('‫169'),'IdWYt':_0x51c5('‫16a'),'ZFceP':_0x51c5('‫ab')};let _0x562e6f=await _0x1678d2[_0x51c5('‮16b')](getSign,_0x1678d2[_0x51c5('‫16c')],{'id':'','url':_0x1678d2[_0x51c5('‮16d')]});let _0x2d0f62={'url':_0x51c5('‮16e'),'headers':{'Host':_0x1678d2[_0x51c5('‮16f')],'Content-Type':_0x1678d2[_0x51c5('‮170')],'Accept':_0x1678d2[_0x51c5('‫171')],'Connection':_0x1678d2[_0x51c5('‮172')],'Cookie':cookie,'User-Agent':_0x1678d2[_0x51c5('‮173')],'Accept-Language':_0x1678d2[_0x51c5('‮174')],'Accept-Encoding':_0x1678d2[_0x51c5('‮175')]},'body':_0x562e6f};return new Promise(_0x5e0cad=>{var _0x2f6fb9={'MJxjM':_0x1678d2[_0x51c5('‮176')],'USUil':_0x1678d2[_0x51c5('‫177')]};if(_0x1678d2[_0x51c5('‮178')](_0x1678d2[_0x51c5('‫179')],_0x1678d2[_0x51c5('‮17a')])){$[_0x51c5('‮22')](_0x2f6fb9[_0x51c5('‫17b')]);}else{$[_0x51c5('‮85')](_0x2d0f62,(_0x368a95,_0x1c8fab,_0x59bda9)=>{try{if(_0x1678d2[_0x51c5('‫17c')](_0x1678d2[_0x51c5('‫17d')],_0x1678d2[_0x51c5('‫17d')])){if(_0x368a95){$[_0x51c5('‮22')](_0x368a95);}else{if(_0x1678d2[_0x51c5('‮17e')](_0x1678d2[_0x51c5('‫17f')],_0x1678d2[_0x51c5('‮180')])){if(_0x59bda9){_0x59bda9=JSON[_0x51c5('‫4c')](_0x59bda9);if(_0x1678d2[_0x51c5('‫17c')](_0x59bda9[_0x51c5('‫4e')],'0')){$[_0x51c5('‫4f')]=_0x59bda9[_0x51c5('‫4f')];}}else{$[_0x51c5('‮22')](_0x1678d2[_0x51c5('‫177')]);}}else{if(res[_0x51c5('‫40')][_0x51c5('‮41')]){$[_0x51c5('‮3f')]=res[_0x51c5('‫40')][_0x51c5('‮41')][0x0][_0x51c5('‮42')][_0x51c5('‫43')];}}}}else{$[_0x51c5('‮22')](_0x2f6fb9[_0x51c5('‫181')]);}}catch(_0x5a7f1a){$[_0x51c5('‮22')](_0x5a7f1a);}finally{if(_0x1678d2[_0x51c5('‮178')](_0x1678d2[_0x51c5('‫182')],_0x1678d2[_0x51c5('‫183')])){console[_0x51c5('‮22')](_0x368a95);}else{_0x1678d2[_0x51c5('‮184')](_0x5e0cad);}}});}});}function getSign(_0x5a82f3,_0x4b7bda){var _0x1eceb7={'bYrhX':_0x51c5('‫1'),'Lfbxq':_0x51c5('‮2'),'Obapv':function(_0x204af6,_0x35ae8e){return _0x204af6*_0x35ae8e;},'TsOvK':function(_0xdb3e7c,_0x2df534){return _0xdb3e7c===_0x2df534;},'lHaks':_0x51c5('‫185'),'qNuST':_0x51c5('‮186'),'mZcFA':_0x51c5('‮187'),'NCfqH':function(_0x8e60b1,_0x16a943){return _0x8e60b1!==_0x16a943;},'jkLTN':_0x51c5('‫188'),'QXkzR':_0x51c5('‫189'),'vHcrb':function(_0x394b20,_0x376447){return _0x394b20(_0x376447);},'dMmPs':_0x51c5('‮13b'),'GkooT':_0x51c5('‫18a'),'GRiUO':_0x51c5('‮18b'),'aKMbD':function(_0x16a891,_0x22393c){return _0x16a891*_0x22393c;},'JfeRQ':_0x51c5('‫18c')};return new Promise(async _0xeb1f73=>{var _0x776a6e={'maYbN':_0x1eceb7[_0x51c5('‫18d')],'TbpiH':_0x1eceb7[_0x51c5('‫18e')],'pXIYu':function(_0x305935,_0x2897aa){return _0x1eceb7[_0x51c5('‮18f')](_0x305935,_0x2897aa);},'TFnYm':function(_0x355b6a,_0x5133e1){return _0x1eceb7[_0x51c5('‫190')](_0x355b6a,_0x5133e1);},'Ctgdd':_0x1eceb7[_0x51c5('‫191')],'HIphw':_0x1eceb7[_0x51c5('‮192')],'DfZDT':_0x1eceb7[_0x51c5('‮193')],'WlcFt':function(_0x551591,_0x2a999f){return _0x1eceb7[_0x51c5('‫194')](_0x551591,_0x2a999f);},'BusQV':_0x1eceb7[_0x51c5('‮195')],'dVwjU':_0x1eceb7[_0x51c5('‮196')],'pQSAx':function(_0x52ac51,_0x759ec9){return _0x1eceb7[_0x51c5('‮197')](_0x52ac51,_0x759ec9);}};let _0x2ac459={'functionId':_0x5a82f3,'body':JSON[_0x51c5('‫c0')](_0x4b7bda),'activityId':$[_0x51c5('‮35')]};let _0x51c1be='';let _0x22ebf7=[_0x1eceb7[_0x51c5('‫198')]];if(process[_0x51c5('‫8c')][_0x51c5('‮8d')]){_0x51c1be=process[_0x51c5('‫8c')][_0x51c5('‮8d')];}else{if(_0x1eceb7[_0x51c5('‫194')](_0x1eceb7[_0x51c5('‫199')],_0x1eceb7[_0x51c5('‫19a')])){_0x51c1be=_0x22ebf7[Math[_0x51c5('‫fd')](_0x1eceb7[_0x51c5('‫19b')](Math[_0x51c5('‮ff')](),_0x22ebf7[_0x51c5('‫16')]))];}else{console[_0x51c5('‮22')](''+JSON[_0x51c5('‫c0')](err));console[_0x51c5('‮22')]($[_0x51c5('‫12')]+_0x51c5('‮19c'));}}let _0x39eaa9={'url':_0x51c5('‫19d'),'body':JSON[_0x51c5('‫c0')](_0x2ac459),'headers':{'Host':_0x51c1be,'User-Agent':_0x1eceb7[_0x51c5('‮19e')]},'timeout':_0x1eceb7[_0x51c5('‫19b')](0x1e,0x3e8)};$[_0x51c5('‮85')](_0x39eaa9,(_0x704288,_0x33171a,_0x2ac459)=>{if(_0x776a6e[_0x51c5('‫19f')](_0x776a6e[_0x51c5('‮1a0')],_0x776a6e[_0x51c5('‮1a0')])){try{if(_0x776a6e[_0x51c5('‫19f')](_0x776a6e[_0x51c5('‮1a1')],_0x776a6e[_0x51c5('‮1a2')])){$[_0x51c5('‫11')]($[_0x51c5('‫12')],_0x776a6e[_0x51c5('‮1a3')],_0x776a6e[_0x51c5('‮1a4')],{'open-url':_0x776a6e[_0x51c5('‮1a4')]});return;}else{if(_0x704288){if(_0x776a6e[_0x51c5('‫1a5')](_0x776a6e[_0x51c5('‫1a6')],_0x776a6e[_0x51c5('‫1a6')])){_0x51c1be=_0x22ebf7[Math[_0x51c5('‫fd')](_0x776a6e[_0x51c5('‮1a7')](Math[_0x51c5('‮ff')](),_0x22ebf7[_0x51c5('‫16')]))];}else{console[_0x51c5('‮22')](''+JSON[_0x51c5('‫c0')](_0x704288));console[_0x51c5('‮22')]($[_0x51c5('‫12')]+_0x51c5('‮19c'));}}else{}}}catch(_0x1a6806){if(_0x776a6e[_0x51c5('‫19f')](_0x776a6e[_0x51c5('‫1a8')],_0x776a6e[_0x51c5('‫1a8')])){$[_0x51c5('‫90')](_0x1a6806,_0x33171a);}else{res=JSON[_0x51c5('‫4c')](_0x2ac459);if(res[_0x51c5('‮69')]){console[_0x51c5('‮22')](res);$[_0x51c5('‮128')]=res[_0x51c5('‮129')];}}}finally{_0x776a6e[_0x51c5('‫1a9')](_0xeb1f73,_0x2ac459);}}else{_0x51c1be=process[_0x51c5('‫8c')][_0x51c5('‮8d')];}});});}function random(_0x1f00d1,_0x1600c9){var _0x1dc81b={'pIfuS':function(_0x2848e7,_0x1a5e38){return _0x2848e7+_0x1a5e38;},'gQVJg':function(_0x548fe1,_0x80b72c){return _0x548fe1*_0x80b72c;},'dYiXI':function(_0x30f71c,_0x20c062){return _0x30f71c-_0x20c062;}};return _0x1dc81b[_0x51c5('‫1aa')](Math[_0x51c5('‫fd')](_0x1dc81b[_0x51c5('‫1ab')](Math[_0x51c5('‮ff')](),_0x1dc81b[_0x51c5('‫1ac')](_0x1600c9,_0x1f00d1))),_0x1f00d1);}function getUUID(_0xbf42dd=_0x51c5('‮6'),_0x49cb1f=0x0){var _0x2c4134={'ZXzWz':function(_0x177e1e){return _0x177e1e();},'oiCly':function(_0x1793c7,_0x1cf22b){return _0x1793c7(_0x1cf22b);},'ORLqY':function(_0x259b38,_0x43df61){return _0x259b38!==_0x43df61;},'DCKzG':_0x51c5('‮1ad'),'DQnkb':_0x51c5('‫1ae'),'tCwHp':function(_0x2a7ffa,_0x2f0c52){return _0x2a7ffa|_0x2f0c52;},'qlELZ':function(_0x42b3cb,_0x5ae798){return _0x42b3cb*_0x5ae798;},'qrsyC':function(_0x59bd35,_0x257ceb){return _0x59bd35==_0x257ceb;},'bPEYm':function(_0x1e6b52,_0x1114f3){return _0x1e6b52&_0x1114f3;},'niXgD':function(_0x2f6ea1,_0x1f5c2d){return _0x2f6ea1===_0x1f5c2d;},'koVHR':_0x51c5('‫1af'),'nmuWv':function(_0x1f4ae7,_0x4c50b1){return _0x1f4ae7===_0x4c50b1;},'izIyC':_0x51c5('‮1b0')};return _0xbf42dd[_0x51c5('‫1b1')](/[xy]/g,function(_0xbc1e85){if(_0x2c4134[_0x51c5('‫1b2')](_0x2c4134[_0x51c5('‮1b3')],_0x2c4134[_0x51c5('‮1b4')])){var _0x11389c=_0x2c4134[_0x51c5('‮1b5')](_0x2c4134[_0x51c5('‮1b6')](Math[_0x51c5('‮ff')](),0x10),0x0),_0x4035df=_0x2c4134[_0x51c5('‮1b7')](_0xbc1e85,'x')?_0x11389c:_0x2c4134[_0x51c5('‮1b5')](_0x2c4134[_0x51c5('‮1b8')](_0x11389c,0x3),0x8);if(_0x49cb1f){if(_0x2c4134[_0x51c5('‮1b9')](_0x2c4134[_0x51c5('‫1ba')],_0x2c4134[_0x51c5('‫1ba')])){uuid=_0x4035df[_0x51c5('‫12f')](0x24)[_0x51c5('‫130')]();}else{$[_0x51c5('‮20')]=data[_0x51c5('‮95')][_0x51c5('‮137')][_0x51c5('‮154')][_0x51c5('‮155')];}}else{if(_0x2c4134[_0x51c5('‮1bb')](_0x2c4134[_0x51c5('‫1bc')],_0x2c4134[_0x51c5('‫1bc')])){uuid=_0x4035df[_0x51c5('‫12f')](0x24);}else{_0x2c4134[_0x51c5('‮1bd')](resolve);}}return uuid;}else{_0x2c4134[_0x51c5('‫1be')](resolve,data);}});}function checkCookie(){var _0x163e14={'cbmsH':function(_0x84c660,_0x49104f){return _0x84c660===_0x49104f;},'vFKcv':_0x51c5('‫136'),'RgfTt':function(_0x305af0,_0xc4bedc){return _0x305af0===_0xc4bedc;},'ifJXs':_0x51c5('‮137'),'VbTQd':_0x51c5('‮0'),'rcwKR':function(_0x478ba4,_0x11e14e){return _0x478ba4!==_0x11e14e;},'DVyCb':_0x51c5('‮1bf'),'HrlaQ':_0x51c5('‫1c0'),'dmUas':function(_0x5ae988){return _0x5ae988();},'WSuIj':function(_0x250f65,_0x186048){return _0x250f65(_0x186048);},'ZKVzv':function(_0x4fb919,_0x432d9c){return _0x4fb919===_0x432d9c;},'EDfLY':_0x51c5('‮1c1'),'gjzxl':_0x51c5('‮1c2'),'qbWJU':_0x51c5('‮1c3'),'AOCAz':_0x51c5('‫bc'),'gRwYr':_0x51c5('‫ae'),'rAnIO':_0x51c5('‮1c4'),'HaWFl':_0x51c5('‫bd'),'wserV':_0x51c5('‮1c5'),'rAKyx':_0x51c5('‫ab')};const _0x5ba2e2={'url':_0x163e14[_0x51c5('‮1c6')],'headers':{'Host':_0x163e14[_0x51c5('‮1c7')],'Accept':_0x163e14[_0x51c5('‫1c8')],'Connection':_0x163e14[_0x51c5('‫1c9')],'Cookie':cookie,'User-Agent':_0x163e14[_0x51c5('‮1ca')],'Accept-Language':_0x163e14[_0x51c5('‫1cb')],'Referer':_0x163e14[_0x51c5('‮1cc')],'Accept-Encoding':_0x163e14[_0x51c5('‮1cd')]}};return new Promise(_0x1dd1d3=>{if(_0x163e14[_0x51c5('‮1ce')](_0x163e14[_0x51c5('‫1cf')],_0x163e14[_0x51c5('‫1cf')])){$[_0x51c5('‮ef')](_0x5ba2e2,(_0x51c3bf,_0xbf2338,_0x556fb9)=>{try{if(_0x51c3bf){$[_0x51c5('‫90')](_0x51c3bf);}else{if(_0x556fb9){_0x556fb9=JSON[_0x51c5('‫4c')](_0x556fb9);if(_0x163e14[_0x51c5('‫1d0')](_0x556fb9[_0x51c5('‫14f')],_0x163e14[_0x51c5('‮1d1')])){$[_0x51c5('‫1f')]=![];return;}if(_0x163e14[_0x51c5('‫1d2')](_0x556fb9[_0x51c5('‫14f')],'0')&&_0x556fb9[_0x51c5('‮95')][_0x51c5('‫152')](_0x163e14[_0x51c5('‫1d3')])){$[_0x51c5('‮20')]=_0x556fb9[_0x51c5('‮95')][_0x51c5('‮137')][_0x51c5('‮154')][_0x51c5('‮155')];}}else{$[_0x51c5('‮22')](_0x163e14[_0x51c5('‮1d4')]);}}}catch(_0x2f6d5d){$[_0x51c5('‫90')](_0x2f6d5d);}finally{if(_0x163e14[_0x51c5('‮1d5')](_0x163e14[_0x51c5('‫1d6')],_0x163e14[_0x51c5('‫1d7')])){_0x163e14[_0x51c5('‮1d8')](_0x1dd1d3);}else{uuid=v[_0x51c5('‫12f')](0x24);}}});}else{_0x163e14[_0x51c5('‮1d9')](_0x1dd1d3,data);}});};_0xodD='jsjiami.com.v6';
-// prettier-ignore
-!function (n) { "use strict"; function t(n, t) { var r = (65535 & n) + (65535 & t); return (n >> 16) + (t >> 16) + (r >> 16) << 16 | 65535 & r } function r(n, t) { return n << t | n >>> 32 - t } function e(n, e, o, u, c, f) { return t(r(t(t(e, n), t(u, f)), c), o) } function o(n, t, r, o, u, c, f) { return e(t & r | ~t & o, n, t, u, c, f) } function u(n, t, r, o, u, c, f) { return e(t & o | r & ~o, n, t, u, c, f) } function c(n, t, r, o, u, c, f) { return e(t ^ r ^ o, n, t, u, c, f) } function f(n, t, r, o, u, c, f) { return e(r ^ (t | ~o), n, t, u, c, f) } function i(n, r) { n[r >> 5] |= 128 << r % 32, n[14 + (r + 64 >>> 9 << 4)] = r; var e, i, a, d, h, l = 1732584193, g = -271733879, v = -1732584194, m = 271733878; for (e = 0; e < n.length; e += 16)i = l, a = g, d = v, h = m, g = f(g = f(g = f(g = f(g = c(g = c(g = c(g = c(g = u(g = u(g = u(g = u(g = o(g = o(g = o(g = o(g, v = o(v, m = o(m, l = o(l, g, v, m, n[e], 7, -680876936), g, v, n[e + 1], 12, -389564586), l, g, n[e + 2], 17, 606105819), m, l, n[e + 3], 22, -1044525330), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 4], 7, -176418897), g, v, n[e + 5], 12, 1200080426), l, g, n[e + 6], 17, -1473231341), m, l, n[e + 7], 22, -45705983), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 8], 7, 1770035416), g, v, n[e + 9], 12, -1958414417), l, g, n[e + 10], 17, -42063), m, l, n[e + 11], 22, -1990404162), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 12], 7, 1804603682), g, v, n[e + 13], 12, -40341101), l, g, n[e + 14], 17, -1502002290), m, l, n[e + 15], 22, 1236535329), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 1], 5, -165796510), g, v, n[e + 6], 9, -1069501632), l, g, n[e + 11], 14, 643717713), m, l, n[e], 20, -373897302), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 5], 5, -701558691), g, v, n[e + 10], 9, 38016083), l, g, n[e + 15], 14, -660478335), m, l, n[e + 4], 20, -405537848), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 9], 5, 568446438), g, v, n[e + 14], 9, -1019803690), l, g, n[e + 3], 14, -187363961), m, l, n[e + 8], 20, 1163531501), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 13], 5, -1444681467), g, v, n[e + 2], 9, -51403784), l, g, n[e + 7], 14, 1735328473), m, l, n[e + 12], 20, -1926607734), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 5], 4, -378558), g, v, n[e + 8], 11, -2022574463), l, g, n[e + 11], 16, 1839030562), m, l, n[e + 14], 23, -35309556), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 1], 4, -1530992060), g, v, n[e + 4], 11, 1272893353), l, g, n[e + 7], 16, -155497632), m, l, n[e + 10], 23, -1094730640), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 13], 4, 681279174), g, v, n[e], 11, -358537222), l, g, n[e + 3], 16, -722521979), m, l, n[e + 6], 23, 76029189), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 9], 4, -640364487), g, v, n[e + 12], 11, -421815835), l, g, n[e + 15], 16, 530742520), m, l, n[e + 2], 23, -995338651), v = f(v, m = f(m, l = f(l, g, v, m, n[e], 6, -198630844), g, v, n[e + 7], 10, 1126891415), l, g, n[e + 14], 15, -1416354905), m, l, n[e + 5], 21, -57434055), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 12], 6, 1700485571), g, v, n[e + 3], 10, -1894986606), l, g, n[e + 10], 15, -1051523), m, l, n[e + 1], 21, -2054922799), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 8], 6, 1873313359), g, v, n[e + 15], 10, -30611744), l, g, n[e + 6], 15, -1560198380), m, l, n[e + 13], 21, 1309151649), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 4], 6, -145523070), g, v, n[e + 11], 10, -1120210379), l, g, n[e + 2], 15, 718787259), m, l, n[e + 9], 21, -343485551), l = t(l, i), g = t(g, a), v = t(v, d), m = t(m, h); return [l, g, v, m] } function a(n) { var t, r = "", e = 32 * n.length; for (t = 0; t < e; t += 8)r += String.fromCharCode(n[t >> 5] >>> t % 32 & 255); return r } function d(n) { var t, r = []; for (r[(n.length >> 2) - 1] = void 0, t = 0; t < r.length; t += 1)r[t] = 0; var e = 8 * n.length; for (t = 0; t < e; t += 8)r[t >> 5] |= (255 & n.charCodeAt(t / 8)) << t % 32; return r } function h(n) { return a(i(d(n), 8 * n.length)) } function l(n, t) { var r, e, o = d(n), u = [], c = []; for (u[15] = c[15] = void 0, o.length > 16 && (o = i(o, 8 * n.length)), r = 0; r < 16; r += 1)u[r] = 909522486 ^ o[r], c[r] = 1549556828 ^ o[r]; return e = i(u.concat(d(t)), 512 + 8 * t.length), a(i(c.concat(e), 640)) } function g(n) { var t, r, e = ""; for (r = 0; r < n.length; r += 1)t = n.charCodeAt(r), e += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t); return e } function v(n) { return unescape(encodeURIComponent(n)) } function m(n) { return h(v(n)) } function p(n) { return g(m(n)) } function s(n, t) { return l(v(n), v(t)) } function C(n, t) { return g(s(n, t)) } function A(n, t, r) { return t ? r ? s(t, n) : C(t, n) : r ? m(n) : p(n) } $.md5 = A }(this);
-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) }
diff --git a/jd_supermh.js b/jd_supermh.js
deleted file mode 100644
index 92b57d5..0000000
--- a/jd_supermh.js
+++ /dev/null
@@ -1,346 +0,0 @@
-/*
-京东超级盲盒
-活动入口:京东APP --我的--超级盲盒
-#京东超级盲盒
-cron "1 15,20 * * *" jd_supermh.js, tag=京东超级盲盒, enabled=true
-*/
-
-const $ = new Env('京东超级盲盒');
-const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
-const notify = $.isNode() ? require('./sendNotify') : '';
-
-
-const linkId = '9Ff9Nj3xSRJlPyJInuDoKA';
-let cookiesArr = [], cookie = '';
-if ($.isNode()) {
-    Object.keys(jdCookieNode).forEach((item) => { cookiesArr.push(jdCookieNode[item]) })
-    if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
-} else {
-    cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
-}
-$.invitePinTaskList = []
-!(async () => {
-    if (!cookiesArr[0]) {
-        $.msg($.name, '【提示】请先获取cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', { "open-url": "https://bean.m.jd.com/" }); return;
-    }
-
-    for (let i = 0; i < cookiesArr.length; i++) {
-        cookie = cookiesArr[i];
-        if (cookie) {
-            $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
-            $.index = i + 1;
-            $.isLogin = true;
-            $.nickName = '';
-            UA = await getUa();
-            console.log(`\n\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
-            if (!$.isLogin) {
-                $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {
-                    "open-url": "https://bean.m.jd.com/bean/signIndex.action"
-                });
-                if ($.isNode()) {
-                    await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
-                }
-                continue
-            }
-            await run();
-        }
-    }
-
-})()
-    .catch((e) => $.logErr(e))
-    .finally(() => $.done())
-
-
-async function run() {
-    try {
-        info = await starShopPageInfo();
-        if (info.planDrawTime <= (new Date).getTime()) {
-            console.log('开始抽奖拉!');
-            await starShopDraw()
-        } else {
-            console.log('还没有到开奖时间');
-        }
-        if (info.currentGoodRoleValue != info.goodRoleValue) {
-            await getTaskList();
-            // 签到 / 逛会场 / 浏览商品
-            for (const task of $.taskList) {
-                if (task.taskType === 'SIGN') {
-                    $.log(`${task.taskTitle} 签到`)
-                    await apDoTask(task.id, task.taskType, undefined);
-                    await $.wait(3500);
-                    // $.log(`${task.taskTitle} 领取签到奖励`)
-                    // await apTaskDrawAward(task.id, task.taskType);
-                }
-                if (task.taskType === 'BROWSE_CHANNEL') {
-                    $.log(`${task.taskTitle} `)
-                    await apDoTask(task.id, task.taskType, encodeURIComponent(task.taskSourceUrl));
-                    await $.wait(3500);
-                    // $.log(`${task.taskTitle} 领取奖励`)
-                    // await apTaskDrawAward(task.id, task.taskType);
-                }
-                if (task.taskType === 'BROWSE_PRODUCT') {
-                    let productList = await apTaskDetail(task.id, task.taskType);
-                    await $.wait(3500);
-                    let productListNow = 0;
-                    if (productList.length === 0) {
-                        let resp = await apTaskDrawAward(task.id, task.taskType);
-                        if (!resp.success) {
-                            $.log(`${task.taskTitle} 领取完成!`)
-                            productList = await apTaskDetail(task.id, task.taskType);
-
-                        }
-                    }
-                    //做
-                    while (task.taskLimitTimes - task.taskDoTimes >= 0) {
-                        if (productList.length === 0) {
-                            $.log(`${task.taskTitle} 活动火爆,素材库没有素材,我也不知道啥回事 = = `);
-                            break;
-                        }
-                        $.log(`${task.taskTitle} ${task.taskDoTimes}/${task.taskLimitTimes}`);
-                        let resp = await apDoTask(task.id, task.taskType, productList[productListNow].itemId, productList[productListNow].appid);
-                        if (resp.code === 2005 || resp.code === 0) {
-                            $.log(`${task.taskTitle} 任务完成!`)
-                        } else {
-                            $.log(`${resp.echo} 任务失败!`)
-                        }
-                        await $.wait(2500)
-                        productListNow++;
-                        task.taskDoTimes++;
-                        if (!productList[productListNow]) {
-                            break
-                        }
-                    }
-                    //领
-                    for (let j = 0; j < task.taskLimitTimes; j++) {
-                        let resp = await apTaskDrawAward(task.id, task.taskType);
-                        await $.wait(1000);
-                        if (!resp.success) {
-                            $.log(`${task.taskTitle} 领取完成!`)
-                            break
-                        }
-                    }
-                }
-            }
-        } else {
-            console.log('你已经做完任务等待开奖吧!');
-        }
-    } catch (error) {
-        console.log(error)
-    }
-}
-
-//任务列表
-function getTaskList() {
-    return new Promise(resolve => {
-        $.post(taskPostClientActionUrl('apTaskList', { "linkId": linkId }), async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    $.taskList = data.data
-                    if (data.success) {
-                        $.log('=== 任务列表 start ===')
-                        for (const row of $.taskList) {
-                            $.log(`${row.taskTitle} ${row.taskDoTimes}/${row.taskLimitTimes}`)
-                        }
-                        $.log('=== 任务列表 end  ===')
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-function apDoTask(taskId, taskType, itemId = '') {
-    return new Promise(resolve => {
-        $.post(taskPostClientActionUrl('apDoTask', { "taskType": taskType, "taskId": taskId, "channel": 4, "linkId": linkId, "itemId": itemId }), async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.code == 0) {
-                        console.log('任务完成,成功!');
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-function apTaskDetail(taskId, taskType) {
-    //await $.wait(20)
-    return new Promise(resolve => {
-        $.post(taskPostClientActionUrl('apTaskDetail', { "taskType": taskType, "taskId": taskId, "channel": 4, "linkId": linkId }), async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`apTaskDetail API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (!data.success) {
-                        $.taskDetailList = []
-                    } else {
-                        $.taskDetailList = data.data.taskItemList;
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                if (!data.success) {
-                    resolve([]);
-                } else {
-                    resolve(data.data.taskItemList);
-                }
-            }
-        })
-    })
-}
-
-function apTaskDrawAward(taskId, taskType) {
-    return new Promise(resolve => {
-        $.post(taskPostClientActionUrl('apTaskDrawAward', { "taskType": taskType, "taskId": taskId, "linkId": linkId }), async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`apTaskDrawAward API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    $.log("领取奖励")
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-function starShopPageInfo() {
-    body = { "taskId": "", "encryptionPin": "", "linkId": linkId }
-    opt = {
-        url: `https://api.m.jd.com/?functionId=starShopPageInfo&appid=activities_platform&body=${encodeURIComponent(JSON.stringify(body))}&_t=${(new Date).getTime()}&cthr=1`,
-        headers: {
-            'User-Agent': UA,
-            'Content-Type': 'application/x-www-form-urlencoded',
-            'Host': 'api.m.jd.com',
-            'Origin': 'https://pro.m.jd.com/',
-            'Referer': `https://pro.m.jd.com/`,
-            'Cookie': cookie + "cid=3",
-        }
-    }
-    return new Promise(resolve => {
-        $.get(opt, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`starShopPageInfo API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.code == 0) {
-                        res = data.data
-                    } else {
-                        console.log(`失败原因: ${data.errMsg}`);
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(res);
-            }
-        })
-    })
-}
-
-function starShopDraw() {
-    body = { "linkId": linkId }
-    opt = {
-        url: `https://api.m.jd.com/?functionId=starShopDraw&appid=activities_platform&body=${encodeURIComponent(JSON.stringify(body))}&_t=${(new Date).getTime()}&cthr=1`,
-        headers: {
-            'User-Agent': UA,
-            'Content-Type': 'application/x-www-form-urlencoded',
-            'Host': 'api.m.jd.com',
-            'Origin': 'https://pro.m.jd.com/',
-            'Referer': `https://pro.m.jd.com/`,
-            'Cookie': cookie + "cid=3",
-        }
-    }
-    return new Promise(resolve => {
-        $.get(opt, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`starShopDraw API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.code == 0) {
-                        console.log(data.data);
-                    } {
-                        console.log(`失败原因: ${data.errMsg}`);
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve();
-            }
-        })
-    })
-}
-
-function taskPostClientActionUrl(functionId, body, time = (new Date).getTime(), h5st) {
-    bodyinfo = `${functionId ? `functionId=${functionId}` : ``}&appid=activities_platform&body=${JSON.stringify(body)}&t=${time}&cthr=1`
-    if (h5st) {
-        bodyinfo += `&h5st=${encodeURIComponent(h5st)}`
-    }
-    return {
-        url: `https://api.m.jd.com`,
-        body: bodyinfo,
-        headers: {
-            'User-Agent': UA,
-            'Content-Type': 'application/x-www-form-urlencoded',
-            'Host': 'api.m.jd.com',
-            'Origin': 'https://pro.m.jd.com/',
-            'Referer': `https://pro.m.jd.com/`,
-            'Cookie': cookie + "cid=3",
-        }
-    }
-}
-
-function jsonParse(str) {
-    if (typeof str == "string") {
-        try {
-            return JSON.parse(str);
-        } catch (e) {
-            console.log(e);
-            $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
-            return [];
-        }
-    }
-}
-
-async function getUa() {
-    for (var t = "", n = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", r = 0; r < 16; r++) {
-        var i = Math.round(Math.random() * (n.length - 1));
-        t += n.substring(i, i + 1)
-    }
-    uuid = Buffer.from(t, 'utf8').toString('base64')
-    ep = encodeURIComponent(JSON.stringify({ "hdid": "JM9F1ywUPwflvMIpYPok0tt5k9kW4ArJEU3lfLhxBqw=", "ts": (new Date).getTime(), "ridx": -1, "cipher": { "sv": "CJK=", "ad": uuid, "od": "CNKmCNKmCNKjCNKmCM0mCNKmBJKmCNKjCNKmCNKmCNKmCNKm", "ov": "Ctu=", "ud": uuid }, "ciphertype": 5, "version": "1.2.0", "appname": "com.jd.jdlite" }))
-    return `jdltapp;android;3.8.16;;;appBuild/2314;ef/1;ep/${ep};Mozilla/5.0 (Linux; Android 10; WLZ-AN01 Build/HUAWEIWLZ-AN01; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/89.0.4389.72 MQQBrowser/6.2 TBS/045837 Mobile Safari/537.36`
-}
-
-
-// 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) }
diff --git a/jd_ylyn.js b/jd_ylyn.js
deleted file mode 100644
index 91ac5a7..0000000
--- a/jd_ylyn.js
+++ /dev/null
@@ -1,563 +0,0 @@
-/*
-伊利养牛记
-
-如果提示没有养牛 自己手动进去养一只
-活动入口:伊利京东自营旗舰店->伊利牛奶
-21.0复制整段话 Http:/JnE0bflXQPzN4R 伊利云养一头牛,赢1分钱得牛奶一提!坚持打卡~每日多个好礼相送哟!快来云养的牛宝宝吧!#f1EQN5nQJa%去【椋〣崬】
-
-[task_local]
-#伊利养牛记
-cron 38 5,18 * * * jd_ylyn.js, tag=伊利养牛记, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true
-*/
-const $ = new Env('伊利养牛记');
-//Node.js用户请在jdCookie.js处填写京东ck;
-const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
-const randomCount = $.isNode() ? 20 : 5;
-const notify = $.isNode() ? require('./sendNotify') : '';
-let merge = {}
-let codeList = []
-Exchange = $.isNode() ? (process.env.Cowexchange ? process.env.Cowexchange : false) : ($.getdata("Cowexchange") ? $.getdata("Cowexchange") : false);
-//IOS等用户直接用NobyDa的jd cookie
-let cookiesArr = [],
-    cookie = '';
-if ($.isNode()) {
-    Object.keys(jdCookieNode).forEach((item) => {
-        cookiesArr.push(jdCookieNode[item])
-    })
-    if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
-} else {
-    cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
-}
-
-const JD_API_HOST = `https://api.m.jd.com/client.action`;
-message = ""
-$.shareuuid = "7eaf779f13f64e2cbb2b1a55fd1de09f" //
-    !(async () => {
-        console.log(`入口:21.0复制整段话 Http:/JnE0bflXQPzN4R 伊利云养一头牛,赢1分钱得牛奶一提!坚持打卡~每日多个好礼相送哟!快来云养的牛宝宝吧!#f1EQN5nQJa%去【椋〣崬】\n`)
-        if (!cookiesArr[0]) {
-            $.msg($.name, '【提示】请先获取cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/', {
-                "open-url": "https://bean.m.jd.com/"
-            });
-            return;
-        }
-        for (let i = 0; i <cookiesArr.length; i++) {
-            cookie = cookiesArr[i];
-            cookie1 = cookiesArr[i];
-            if (cookie) {
-                $.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
-                $.index = i + 1;
-                $.cando = true
-                $.quming = true
-                $.cow = ""
-                $.openCard = true
-                $.isLogin = true;
-                $.needhelp = true
-                $.foodNum = 0
-                $.nickName = '';
-                $.drawresult = ""
-                $.exchange =0
-                console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
-                if (!$.isLogin) {
-                    $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/bean/signIndex.action`, {
-                        "open-url": "https://bean.m.jd.com/bean/signIndex.action"
-                    });
-                    if ($.isNode()) {
-                        await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
-                    }
-                    continue
-                }
-                await genToken()
-                await getActCk()
-                await getToken2()
-                await getshopid()
-                await getMyPin()
-                await adlog()
-                await getUserInfo()
-                if ($.cando) {
-                    await join(100000000000168,1000013402)
-                   await saveCow()   
-                    await getUid($.shareuuid)
-                    await dotask(0)
-                    await dotask(1)
-                    await dotask(12)
-                    await dotask(13,"ziying")
-                    await dotask(13,"pop")
-                    await dotask(21)
-                    await feedCow()
-                    for (let i = 0; i < $.cs; i++) {
-                     await feedCow()   
-                    }
-                    
-                    for (let i = 0; i < $.cj; i++) {
-                     await draw()   
-                    }
-                    
-
-                }
-            }
-        }
-
-    })()
-    .catch((e) => $.logErr(e))
-    .finally(() => $.done())
-//获取活动信息
-
-
-
-//genToken
-function genToken() {
-    let config = {
-        url: 'https://api.m.jd.com/client.action?functionId=genToken&clientVersion=10.0.4&build=88641&client=android&d_brand=OPPO&d_model=PCAM00&osVersion=10&screen=2208*1080&partner=oppo&oaid=&openudid=7049442d7e415232&eid=eidAfb0d81231cs3I4yd3GgLRjqcx9qFEcJEmyOMn1BwD8wvLt/pM7ENipVIQXuRiDyQ0FYw2aud9+AhtGqo1Zhp0TsLEgoKZvAWkaXhApgim9hlEyRB&sdkVersion=29&lang=zh_CN&uuid=7049442d7e415232&aid=7049442d7e415232&area=4_48201_54794_0&networkType=wifi&wifiBssid=774de7601b5cddf9aad1ae30f3a3dfc0&uts=0f31TVRjBSsqndu4%2FjgUPz6uymy50MQJ3DxdOrbYUybTe3dL1fv5SZqA7LxGNRtzSOx8fh0f3M1MbIvt421AKNKOpCPfGQrrVUodx%2Fkyzv10ruE8Nej2sOUKwb8tCv2kUQ1xlvckMf%2F%2BQlbGZpk3SF6y3AMv848PpSuaIzc4Wef2Q%2FEVdfQwC5mHEU9bM129HM13EJuyirzz6m2X3KkBMA%3D%3D&uemps=0-0&st=1626585864591&sign=b8c73932c27934ace61d09b492e47cd1&sv=101',
-        body: 'body=%7B%22action%22%3A%22to%22%2C%22to%22%3A%22https%253A%252F%252Flzdz-isv.isvjcloud.com%252Fdingzhi%252Fyili%252Fyangniu%252Factivity%252F5070687%253FactivityId%253Ddz2103100001340201%2526shareUuid%253Dbd93957c016242f6a51194d35449432c%2526adsource%253Dziying%2526shareuserid4minipg%253Du%252FcWHIy7%252Fx3Ij%252BHjfbnnePkaL5GGqMTUc8u%252Fotw2E%252Ba7Ak3lgFoFQlZmf45w8Jzw%2526shopid%253D1000013402%22%7D&',
-        headers: {
-            'Host': 'api.m.jd.com',
-            'accept': '*/*',
-            'user-agent': 'JD4iPhone/167490 (iPhone; iOS 14.2; Scale/3.00)',
-            'accept-language': 'zh-Hans-JP;q=1, en-JP;q=0.9, zh-Hant-TW;q=0.8, ja-JP;q=0.7, en-US;q=0.6',
-            'content-type': 'application/x-www-form-urlencoded',
-            'Cookie': cookie
-        }
-    }
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${$.name} API请求失败,请检查网路重试`);
-                    console.log(`${JSON.stringify(err)}`)
-                } else {
-                    data = JSON.parse(data);
-                    $.isvToken = data['tokenKey']
-                       //console.log($.isvToken)
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-//获取pin需要用到
-function getToken2() {
-    let config = {
-        url: 'https://api.m.jd.com/client.action?functionId=isvObfuscator&clientVersion=10.0.4&build=88641&client=android&d_brand=OPPO&d_model=PCAM00&osVersion=10&screen=2208*1080&partner=oppo&oaid=&openudid=7049442d7e415232&eid=eidAfb0d81231cs3I4yd3GgLRjqcx9qFEcJEmyOMn1BwD8wvLt/pM7ENipVIQXuRiDyQ0FYw2aud9+AhtGqo1Zhp0TsLEgoKZvAWkaXhApgim9hlEyRB&sdkVersion=29&lang=zh_CN&uuid=7049442d7e415232&aid=7049442d7e415232&area=4_48201_54794_0&networkType=wifi&wifiBssid=774de7601b5cddf9aad1ae30f3a3dfc0&uts=0f31TVRjBSsqndu4%2FjgUPz6uymy50MQJ3DxdOrbYUybTe3dL1fv5SZqA7LxGNRtzSOx8fh0f3M1MbIvt421AKNKOpCPfGQrrVUodx%2Fkyzv10ruE8Nej2sOUKwb8tCv2kUQ1xlvckMf%2F%2BQlbGZpk3SF6y3AMv848PpSuaIzc4Wef2Q%2FEVdfQwC5mHEU9bM129HM13EJuyirzz6m2X3KkBMA%3D%3D&uemps=0-0&st=1626585867093&sign=35d78547e97fda4666f0819866a13b19&sv=121',
-        body: 'body=%7B%22id%22%3A%22%22%2C%22url%22%3A%22https%3A%2F%2Flzdz-isv.isvjcloud.com%22%7D&',
-        headers: {
-            'Host': 'api.m.jd.com',
-            'accept': '*/*',
-            'user-agent': 'JD4iPhone/167490 (iPhone; iOS 14.2; Scale/3.00)',
-            'accept-language': 'zh-Hans-JP;q=1, en-JP;q=0.9, zh-Hant-TW;q=0.8, ja-JP;q=0.7, en-US;q=0.6',
-            'content-type': 'application/x-www-form-urlencoded',
-            'Cookie': cookie
-        }
-    }
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    $.token2 = data['token']
-                       //console.log($.token2)
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-
-
-
-//抄的书店的 不过不加好像也能进去
-function getActCk() {
-    return new Promise(resolve => {
-        $.get(taskUrl("/dingzhi/yili/yangniu/activity", `activityId=dz2103100001340201&shareUuid=bd93957c016242f6a51194d35449432c&adsource=ziying&shareuserid4minipg=u/cWHIy7/x3Ij+HjfbnnePkaL5GGqMTUc8u/otw2E+a7Ak3lgFoFQlZmf45w8Jzw&shopid=1000013402&lng=114.062541&lat=29.541254&sid=eec1865d9c44c1070f3b5e6718c9ee1w&un_area=4_48201_54794_0`), (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    if ($.isNode())
-                        for (let ck of resp['headers']['set-cookie']) {
-                            cookie = `${cookie}; ${ck.split(";")[0]};`
-                        }
-                    else {
-                        for (let ck of resp['headers']['Set-Cookie'].split(',')) {
-                            cookie = `${cookie}; ${ck.split(";")[0]};`
-                        }
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-//获取我的pin
-function getshopid() {
-    let config = taskPostUrl("/dz/common/getSimpleActInfoVo", "activityId=dz2103100001340201")
-  
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-             
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.result) {
-                        $.shopid = data.data.venderId
-                            //console.log($.shopid)
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-//获取我的pin
-function getMyPin() {
-    let config = taskPostUrl("/customer/getMyPing", `userId=${$.shopid}&token=${encodeURIComponent($.token2)}&fromType=APP`)
-    //   console.log(config)
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.data && data.data.secretPin) {
-                        $.pin = data.data.secretPin
-                        //    console.log($.pin)
-                        $.nickname = data.data.nickname
-                        $.lz_jdpin_token = resp['headers']['set-cookie'].filter(row => row.indexOf("lz_jdpin_token") !== -1)[0]
-                        // console.log(data)
-                        console.log(`${$.nickname}`);
-                        
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-function adlog() {
-    let config = taskPostUrl("/common/accessLogWithAD", `venderId=1000013402&code=99&pin=${encodeURIComponent($.pin)}&activityId=dz2103100001340201&pageUrl=https%3A%2F%2Flzdz-isv.isvjcloud.com%2Fdingzhi%2Fyili%2Fyangniu%2Factivity%2F4827909%3FactivityId%3Ddz2103100001340201%26shareUuid%3Db44243656a694b6f94bb30a4a5f2a45d%26adsource%3Dziying%26shareuserid4minipg%3D5Iufa9rY657S3OP3PLSpK07oeVP9kq2pYSH90mYt4m3fwcJlClpxrfmVYaGKuquQkdK3rLBQpEQH9V4tdrrh0w%3D%3D%26shopid%3D1000013402%26lng%3D114.062604%26lat%3D29.541501%26sid%3D6e9bfee3838075a72533536815d8f3ew%26un_area%3D4_48201_54794_0&subType=app&adSource=ziying`)
-    //   console.log(config)
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    //  data = JSON.parse(data);
-                    if ($.isNode())
-                        for (let ck of resp['headers']['set-cookie']) {
-                            cookie = `${cookie}; ${ck.split(";")[0]};`
-                        }
-                    else {
-                        for (let ck of resp['headers']['Set-Cookie'].split(',')) {
-                            cookie = `${cookie}; ${ck.split(";")[0]};`
-                        }
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-function saveCow() {
-    return new Promise(resolve => {
-        
-        let body = `activityId=dz2103100001340201&actorUuid=${$.shareuuid}&shareUuid=${$.shareuuid}&cowNick=%E6%9F%A0%E6%AA%AC`
-        let config = taskPostUrl('/dingzhi/yili/yangniu/saveCow', body)
-        //   console.log(config)
-        $.post(config, async (err, resp, data) => {
-            //$.log(data)
-            try {
-                if (err) {
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.result == true) {
-                        $.cowNick = data.data.cowNick
-                        $.log("取名:"+$.cowNick)
-                    } else if(data.result == false){
-                        
-                        $.log(data.errorMessage)
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-// 获得用户信息
-function getUserInfo() {
-    return new Promise(resolve => {
-        let body = `pin=${encodeURIComponent($.pin)}`
-        let config = taskPostUrl('/wxActionCommon/getUserInfo', body)
-        //   console.log(config)
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.data) {
-                        $.userId = data.data.id
-                        $.pinImg = data.data.yunMidImageUrl
-                        $.nick = data.data.nickname
-                    } else {
-                        $.cando = false
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-
-function getUid() {
-    return new Promise(resolve => {
-        let body = `activityId=dz2103100001340201&pin=${encodeURIComponent($.pin)}&pinImg=${$.pinImg }&nick=${encodeURIComponent($.nick)}&cjyxPin=&cjhyPin=&shareUuid=${$.shareuuid}`
-        $.post(taskPostUrl('/dingzhi/yili/yangniu/activityContent', body), async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                        if (data.result) {
-                           if(data.data.openCard == false){
-                           console.log("当前未开卡,无法助力和兑换奖励哦")
-                           await join(100000000000168,1000013402)
-                          
-                           }
-                            $.shareuuid = data.data.actorUuid
-                            console.log(`\n【京东账号${$.index}(${$.UserName})的${$.name}\n好友互助码】${$.shareuuid}\n`);
-                            
-                            
-                        }
-                      }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-function join(venderId,shopId) {
-  return new Promise(resolve => {
-let joinurl ={
-    url: `https://api.m.jd.com/client.action?appid=jd_shop_member&functionId=bindWithVender&body={"venderId":"${venderId}","shopId":"${shopId}","bindByVerifyCodeFlag":1,"registerExtend":{},"writeChildFlag":0}&client=H5&clientVersion=8.5.6&uuid=88888&jsonp=jsonp_1599410555929_50468`,
-    headers: {
-      'Origin': 'https://api.m.jd.com',
-      'Host': 'api.m.jd.com',
-      'accept': '*/*',
-      'user-agent': 'Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1)',
-      'accept-language': 'zh-Hans-JP;q=1, en-JP;q=0.9, zh-Hant-TW;q=0.8, ja-JP;q=0.7, en-US;q=0.6',
-      'Referer': `https://api.m.jd.com/client.action?appid=jd_shop_member&functionId=bindWithVender&body={"venderId":"${venderId}","shopId":"${shopId}","bindByVerifyCodeFlag":1,"registerExtend":{},"writeChildFlag":0}&client=H5&clientVersion=8.5.6&uuid=88888&jsonp=jsonp_1599410555929_50468`,
-      'Cookie': cookie1,
-    }
-  }
-    
-    $.get(joinurl, async (err, resp, data) => {
-      try {
-
-        data = data.match(/(\{().+\})/)[1]
-        data = JSON.parse(data);
-          if(data.success == true){
-              $.log(data.message)
-          }else if(data.success == false){
-           $.log(data.message)   
-          } 
-
-      } catch (e) {
-        $.logErr(e, resp)
-      } finally {
-        resolve(data);
-      }
-    })
-  })
-}
-
-function feedCow() {
-   
-    let config = taskPostUrl("/dingzhi/yili/yangniu/feedCow", `activityId=dz2103100001340201&actorUuid=${$.shareuuid}&pin=${encodeURIComponent($.pin)}`)
-    //     console.log(config)
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.result) {
-                        if (data.data) {
-                            $.cs = data.data.score2*0.1
-                            $.cj = data.data.assistCount
-                            $.log($.cj)
-                            console.log(`老牛等级:${data.data.level}\n下一等级还需吃奶:${data.data.score*0.1}\n剩余奶滴:${data.data.score2*0.1}`)
-                        }
-                    } else {
-                        console.log(data.errorMessage)
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-
-}
-
-
-function dotask(taskType, taskValue) {
-   
-    let config = taskPostUrl("/dingzhi/yili/yangniu/saveTask", `activityId=dz2103100001340201&actorUuid=${$.shareuuid}&pin=${encodeURIComponent($.pin)}&taskType=${taskType}&taskValue=${taskValue}`)
-    //     console.log(config)
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.result) {
-                        if (data.data) {
-                            console.log("恭喜你,获得奶滴: " + data.data.milkCount )
-                        }
-                    } else {
-                        console.log(data.errorMessage)
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-
-}
-
-function draw() {
-    
-    let config = taskPostUrl("/dingzhi/yili/yangniu/start", `activityId=dz2103100001340201&pin=${encodeURIComponent($.pin)}&actorUuid=${$.shareuuid}`)
-    //  console.log(config)
-    return new Promise(resolve => {
-        $.post(config, async (err, resp, data) => {
-            try {
-                if (err) {
-                    console.log(`${JSON.stringify(err)}`)
-                    console.log(`${$.name} API请求失败,请检查网路重试`)
-                } else {
-                    data = JSON.parse(data);
-                    if (data.result) {
-                        if (Object.keys(data.data).length == 0) {
-                            console.log("抽奖成功,恭喜你抽了个寂寞: ")
-                        } else {
-                            console.log(`恭喜你抽中 ${data.data.name}`)
-                            $.drawresult += `恭喜你抽中 ${data.data.name} `
-                        }
-                    } else {
-                        console.log(data.errorMessage)
-                    }
-                }
-            } catch (e) {
-                $.logErr(e, resp)
-            } finally {
-                resolve(data);
-            }
-        })
-    })
-}
-function taskUrl(url, body) {
-    const time = Date.now();
-    //  console.log(cookie)
-    return {
-        url: `https://lzdz-isv.isvjcloud.com${url}?${body}`,
-        headers: {
-            'Host': 'lzdz-isv.isvjcloud.com',
-            'Accept': 'application/json',
-            //     'X-Requested-With': 'XMLHttpRequest',
-            'Referer': 'https://lzdz-isv.isvjcloud.com/dingzhi/yili/yangniu/activity/4827909?activityId=dz2103100001340201&shareUuid=b44243656a694b6f94bb30a4a5f2a45d&adsource=ziying&shareuserid4minipg=5Iufa9rY657S3OP3PLSpK07oeVP9kq2pYSH90mYt4m3fwcJlClpxrfmVYaGKuquQkdK3rLBQpEQH9V4tdrrh0w==&shopid=1000013402&lng=114.062604&lat=29.541501&sid=6e9bfee3838075a72533536815d8f3ew&un_area=4_48201_54794_0',
-            'user-agent': 'jdapp;android;10.0.4;11;2393039353533623-7383235613364343;network/wifi;model/Redmi K30;addressid/138549750;aid/290955c2782e1c44;oaid/b30cf82cacfa8972;osVer/30;appBuild/88641;partner/xiaomi001;eufv/1;jdSupportDarkMode/0;Mozilla/5.0 (Linux; Android 11; Redmi K30 Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045537 Mobile Safari/537.36',
-            'content-type': 'application/x-www-form-urlencoded',
-            'Cookie': `${cookie} IsvToken=${$.IsvToken};AUTH_C_USER=${$.pin}`,
-        }
-    }
-}
-
-
-
-function taskPostUrl(url, body) {
-    return {
-        url: `https://lzdz-isv.isvjcloud.com${url}`,
-        body: body,
-        headers: {
-            'Host': 'lzdz-isv.isvjcloud.com',
-            'Accept': 'application/json',
-            'X-Requested-With': 'XMLHttpRequest',
-            
-
-            'Referer': 'https://lzdz-isv.isvjcloud.com/dingzhi/yili/yangniu/activity/4827909?activityId=dz2103100001340201&shareUuid=b44243656a694b6f94bb30a4a5f2a45d&adsource=ziying&shareuserid4minipg=5Iufa9rY657S3OP3PLSpK07oeVP9kq2pYSH90mYt4m3fwcJlClpxrfmVYaGKuquQkdK3rLBQpEQH9V4tdrrh0w==&shopid=1000013402&lng=114.062604&lat=29.541501&sid=6e9bfee3838075a72533536815d8f3ew&un_area=4_48201_54794_0',
-            'user-agent': 'jdapp;android;10.0.4;11;2393039353533623-7383235613364343;network/wifi;model/Redmi K30;addressid/138549750;aid/290955c2782e1c44;oaid/b30cf82cacfa8972;osVer/30;appBuild/88641;partner/xiaomi001;eufv/1;jdSupportDarkMode/0;Mozilla/5.0 (Linux; Android 11; Redmi K30 Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045537 Mobile Safari/537.36',
-            'content-type': 'application/x-www-form-urlencoded',
-            'Cookie': `${cookie} IsvToken=${$.IsvToken};AUTH_C_USER=${$.pin};${$.lz_jdpin_token}`,
-        }
-    }
-}
-
-
-
-
-function jsonParse(str) {
-    if (typeof str == "string") {
-        try {
-            return JSON.parse(str);
-        } catch (e) {
-            console.log(e);
-            $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
-            return [];
-        }
-    }
-}
-// 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,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)}