jdpro/jd_mk_game.js

6 lines
130 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
2 2 29 2 * jd_mk_game.js
*/
const $ = new Env('赚汪贝兑礼品')
2024-09-06 14:41:42 +00:00
const _0x52bb=['jg7dVKiubL5jaZW','WQ3cO8osW5zIW7GRW609ca','W6rlWQ3dLmkBhW1dW6es','pmoQDdKoW4LtW7P2WRu','WPrDbSkYW4i','qmoBaG','W57cN8oPpMKcjCovgCoD','W40nDqe+W7tdUa','kSoXWPb6WPNcHmoO','ivpcOMBdIW','W77cKmocW4VcMWJdGx/cHq','uI/cM8kRWOaPqeNdUG','jSk1W756yvxdSmoGuWG','pK1CWQVcHSkwWRuDqLa','BSkbcb7cLq','WOihng86','WPfCmW','WORcMmojW6faq8ohvG','W5DnW5LmW6DWWRedW6zM','vmoBgmkHuSo1v8kzWRyr','pK1CWQVcHSkwWRuDqG','d0mTW6dcRfldHmovBq','W6qgFbWr','W7fllmkNWO7dUmkAyeXwWR8L','W5z3W4Tk','lHBcQKP9jCoxWQtdIMa','WQ/cMSotW5b+xW','nuOPWQpcOa','qCkhW7D1WRVdS8kgwmo7W74','uCkAW7v4WRddPCkz','WP3cG0mw','AHJdQCkdg8k6','W4rHWQnzvh0','WRtdLCoqWPP7vSkhbSoGW64','rbpcNq','CSo5CIj+W5ztW7L2W7u','sd3cL8ksWOq0x0NdUG','W7zne3bd','W79/WOK1A8oLWRuUlGa','ceONzG','W6SxDX1yW5ddPSonWOb9','WOvRmu3cHCodDW','WORcLaHrWP5qnmkipSkL','D1adW7O','FaLVWP7cT8kiWOKItMC','W7SchxrKov1gWQ7dLG','WRn3EmoRDeHz','WR7cLmotW5DWrG','WP9Yf8kgW4S','WPtcVv/dJSkH','ttxcNG','trldOG','iCkuqqeWFCkdpc3dPGWJ','kNZdMLO7n0HnfWK','nvWYWQm','W5vhW5S','WP7dJCkSbvXQh8olea','b8koW4RdN8oPWR3cPdZdImoA','CSkpCfVdLG','EmkvW7iSW7S','W5ftWPeByW','WRJcQCoyW4nWqmonlmoHW6u','ie06q8o2','W7hdKSo9WRP/W4RdMCk2','vJ7cJdq','W5WOCa7dG8obyrSQW6u','W57cMmoMW6hcSq','WO8Kkte','WRT5vhy','dea3','eh4ttW','W5HBW49bW4vMWR8oW6L8','WQeAE8oZW4NcVmkIvMbR','na3cQ3jPmSozWP4','WOOJlWGZ','WO3dOaVcOSkUW4nqWP7cVXSOW64','W4RcNSoeW5q','WOC+brey','eeVcHNhdJSooW5hdKmkDEq','kCkjW4rqyW','WPtcLSoqW7bx','hCkUW6rzCLJdSSoZ','WOZcR3uniG','WRfSASoSFunyWOqYW4W','W6VdImo/WQj/W53dV8kQwrC','luZcN3hdJ8oBW5pdICke','WPCgWPi','W6ZdLCoZWRn5W5RdNCkOtq','F8khDuddQ8oXwhNcQSkY','juXkWO/cLmoFW7f7r3m','k29yWOFcJq','WQulECo1W47cPSkaxeP9','fwRdIKmp','WPJdQSkhbvi','W7hdM8oWWRTVW4ddImkmwq','W4RdL8kDWPFdPCoqDSkFWPnJ','W7TvWPquuG','qWRcVIhdUq','W5lcM8oeW47cLq','DmoFd0PypCkvlGBdHG','WOObomobW7T4i21GtW','zvOhW7hcMmoqW5tcSSoTWPC','DHZcLmk3WRy','nfZdTw8c','5y6u5yc9WRNcOG','ut/dP8kLjq','W6/cP1VdSCop','jNVdHwGG','CmoKAx5lW41yW6LZW6G','WO0sC8onW4jS','W75uWQ/dS8kyhaX5W4Oa','W6bRiKLpWOzYWRPWoG','DmoodvfXjSkeic7dKa','W4RdL8kDWPFdPCofBmkZWO9U','fNOox8o2Cq','WRFcSSosW5nJWQWKW619tq','WRmAD8oKW58','W5v+WPi7CmoH','W43cICoTnNWio8o5gCop','WQr2DmoGAvLuWOWS','W7P9i2HK','k11PWOZcQW','WPHoASo3va','6lYT5ysb5Qgu5l6b5Pwm5ysu5AY4WQlLUjtORQC','W4Trjvn2','dea3z0m/ESkVWQm','WQC4osCqW7HSWPpcLSkI','W7VdK8oWWQv+W5ZdICkMsr0','W73dGSkKWRldLq','wH7dOCkgh8k6emooeCoa','nwhdUW','W7TnWQ0','W5tcVmovW6ZcGW','qCotArDL','W6KhzJOKW6ddR8kB','fmoIrvJdUmkIW6S','WOW6s8kLW5q','CmodgKP+p8kegbtdHW','W5v+WPK1','E8kCW6bZWQZdOCkwFSo3W78','A8k0W4KKW4RdKmkTWPvAoW','WRvNAColsG','WPX2wN8eWPu5W6C','W6n2offjWObfWP5XjG','WR4ndw0ylxGqWRddSq','WRajFCofW6u','W5xcPLRdVSotWPa','WRL9EmoHvq','FCklEfBdRmoWExxcTCk4','hmk0W79TCfhdKmo7xHS','aMTlWPlcOG','lGRcR3a','W5xcSf7dT8ov','e0a1WQFcVfNdK8oLpSkP','ieyHWQpcVKNcJCoPpSkS','WQWwFW','WPXUW6NdPxS','wJZcUG7dOq','bMiRqum','jgBdOeWRg0Xqla','ixi5qwC','q8ogBHT0','WOZcJN8kbSoC','W5ZcNmooW4xcGr7dN1tdNmkL','m0dcPN3dTW','WP0/kIWPW7X2','dKW4ECol','aSkXW4pdTSoV','j0G1WOZcRW','evCTWQZcQ17dLmoLna','W6ZdHCoVWRLs','W4PbW5Tg','W5ZLVipLPBVLG7BNU6pOKQ/KUR7KUzxcVSk+','b8k6W7xdKmok','WRPSW5C','amk1W4T8z13dPCo9tGC','WQ3cNSosW4Lb','rSoCdmkhBmoIu8kzWRW','oLdcGgBdMCobW4BdTmkvAa','eLeWWQ/cOfRdICokkq','o1fkWOy','xa7dVSoS','FSkOW4u8W5BdG8kTWPPijq','WP1gW77dO0q','W50QysZdLCkml0y+W54','CSoOCdLoW4PIW7DNW6i','sLGjW7e','WRz3vNGyWPq','iv1qWPJcK8kn','WP9XhSknW5y','W5n/W5SYDSoGWQ9N','WQJcP8o0W695','i3VdV0a2cerBjq','WQXtW7FcISoyqK9sW4fm','WRNcG8oEW7zJ','amoDpmk0v8ovqG','l2Kjt8ox','W6rnWR/dImkvhYbyW4Ss','WRqqDCoZW5xcUSkc','bNVdNxtcVatdJW','W47cI8oFW4NcNaRdOL3dJG','B8kVW4SRW5ZdH8k4WRzl','W5pcG8o9','W4RcMN7dI8oi','rSoacCk9','nN3cThVdLq','W7O9ArS','wspcNW','a8ofWQeLW6VcUmom','FCo4iG7cVmoVWRCnpmkU','W51MW5LF','oqBcRa','usJcGZhdQG','WPNcJSo1m3Dr','qcRcICktWOG5sNtdT8kx','guxcVcm','jSkZW7TVAW','sx0nW5dcOa','amkUW75zF1xdTa','W4ulDaBdIq','W5P5sxPEWPaUW6lcVmoK','oSk1eW','WQJdM8keo08','uI/cMSkCWOqPwfldU8kp','pCkPkmogWRFcN8oy','W6yFBCo4W5NcU8kFvMvh','W4q2WQmChgSjW7tdOeq','bmkjW4FdOCoTWQ3cUZ7dICoW','W7pdLmoOW6Duymo2jmoiW4y','W7FcUCoFW4SPWQntW7u1iW','WPapE8ofW7H8Bg1X','WOeuD8odW79HE2vaua','ESoLydvzW6Tq','WRNcUviFW6q','xXxdTSoOW4dcVSkpe
2024-07-31 02:27:23 +00:00
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.d