jdpro/jd_fish_help.js

7 lines
123 KiB
JavaScript
Raw Normal View History

2024-08-24 03:10:13 +00:00
/*
8 8 29 2 * jd_fish_help.js
*/
const $ = new Env('金融捕鱼助力');
2024-08-25 08:20:50 +00:00
const _0x1d4f=['W4TFFCoy','W67cIXvZkmo7fYbvBG','hglcICk8W4G','W6jyhgSl','k8khoZGMW53cJx0','WOPlpG','W5pcPXJcM0aMeG','W4BcPXZcLu4HdG','AgCpruG','W5NcISkwyf/dLN9VWOju','WOJdHJe','i8ojvmkmqSkOja','c3JdS0RdKXavWQK','WOpcO2ldJXa','mvL7WQr3','W6m0iLLAWO9RW7NdMrC','qmksogBcTmk7tW','44c55O6a56sw44oB6k6W5ywn6iYa5yYj5lUq5lQh','qw3cKSoYpmkPWPRdQCo7eW','WP/dPr1e','WQJcISkdDSkPWOO','BmkaoKiKW4hcIW','WQbNrb/cMW','W7zbWO3cUrhdTmodF8o9','Ch4Tq0/dLG','zCkRr8kWW69sWOCSWQHH','WQPqiCotWO8','uXD4pq','lw7cMwC5WRvt','DSkypwuXW4a','W6VdGSkM','dcT/','nwrUWPTk','W549ieW','W74gW7S','WOqCW5ldPeddPSoVEmklWQNcVW','W4Kfk8kipW','WOBcICkcF8kF','WQ/dP8ogtSoN','55Is5O6b5lYM55AXWPCdaCkyWQqQ','WQS1W4FdPmow','W5pdJ8kKl2ZdO8outrnD','vXDbgL3cLa','W44aWPZdKv4','ctTZWQKp','cCoOWOGYWQqkW6RcR8oMvW','W6pcVSknu8oE','imo5DmkgFq','WPimW6q','W4TBqSksCCobWRldSa','W79JguGOW5BdT8kA','W43cL8krygpdI1PV','W7ZcNar/nSoO','WO9xnCo2WR4fdq','WQvkvIFcRa','W6xdGIxdOay','AdaWdsW','W4tcIxBNM6dMOl3LT6ZOV6tLIzVMLi/PGj4','DXSPyCo/','W5jxvG','wCk+wCkRW7G','WOFcH8kr','a11tW40','WQtdPY1hFq','W4pcH8kFyfW','qxlcJ8orEmoMWO7dG8oTgG','pKBcM2Ke','W7y0b07dJSo+fCoLxmkw','WO7dRSoR','i1bQWOf6W4lcNW','emoor2CsW7ldTHOfvW','WQ5TxG','W5ddJqfopthdSCkaWOJdSW','W4mGWQxdOW','WOTSFSkow8o4WOpcGmozoq','zHqsgqy','WPFdJ8obCmobuMddNhe','vmkijhdcTSkQtSk9W77dVG','WOFdJ8o/y8oE','WONdOatcJvSYghRdHSoo','u0lcPmoQoq','cYv0tKtcVu7dVHtcIG','b8olWOaoAmkQW50','WPhdTX5fFXS','WR49tHz6','W5BdHmk7p0O','eLxcL8k+W7G','gCk6WRuBW4C','y8o1W6vBWRXU','5yEn5yIN5yQW5yIM56gCWRVdUZyR','W6ldN8kZsmknaSotmSoYgG','ASkLnCkZW7PbWOC8WPqQ','pSoduCkh','mSomWQmVvq','eWHlWRCp','ASkAooEyJEAGOUw0S+I/TowjPEAxToMcGG','ttfLlxFcOIldGvlcTa','W5NcO1y/lYyLvq','WQdcMuxdRJW','W4LFsSkdymoMWRVcOSo+','W4ldQdG','k8ofuhCgWQG','W7ddV8kohg4','W6VcOSoB','W6FcJrDYpCo9sq','W5CwW6i','uSk4m2xcUW','WODukCoqWR0','WPhdMszHsgOql8k5W5y','W47dVmkiB8k9','o8ojwuSo','nLezFwVdSW7dU8klpG','jtHsWPCp','rH4IESo4lG','W7VcJWlcU0u','DveXuxK','wSkGFCkYWQnHWPqWWPLX','WRj6W4lcJ8ow','W4tdMZvBia','yaegocm','WRFcJSka','W4xdI8k5pwxdPq','bZPEW6qTyCkzWRWtW7y','BIuys8ojdaGqnHK','WRvNqWpcK8k+','tbuQDmk/isfJp2S','W5pdNSkLo30','WQ7cIe/dOtPYWOVdHa','h0NcLmkSWQpdJW7cUCkGha','pKH7WR1GWOVdHmkRWRldGW','W5XFsSojl8oYWQHV','bmk4WOpcM2rrEXXuyq','W4rFFG','W5Pvxmo/mmo4WRZcR8oNdW','W6NcNrP6','W7mOc2/cKa','W4n8FbPKW51aWQlcJXi','WOBdOtbFAq','WQjHW7tcPSorW4alWOhcHCkK','W6FcNajMk8k1fwnCnq','W6VcGSkiECkZWQ0q','s23cLCosnCkHWO8','W44YWR3dRvRcNmk1','gmobWPSkBG','kCopuhy','W5KJW77cQmk5vCo4W67dN8oX','sCkipMxcUCk5qa','vGqUF8oKjG','WOVdPHfsxqH7dfK','hKdcMCkPW6NcIfm','za8/W7uNWOFdM8kYW6hcLW','WO0lW6ZdSmozW7lcOSo3umoo','W5bhWOy','cCo8qSkmqW','WQVcVNNdGHzE','W4NdNZ9AeCk9DW','WRpcGCktB8kWWPOnW5u','W5VdGCkTdxVdOW','dYTV','WObTW7pcPG','W7PvF8oyl8o+WRq','WQjSrG','omoFA8kwsCk1bYz2','W6VcOmkzF8oc','WOxdNdrksG','yd04l3P/WOVcV8ovDG','WOCzW7JcONZcHCkRWPFdNZ0','WR5lyG7cUa','WQzWwvNdISo5gCkHc8oZ','jSk0WO3cJNHaiJX8AW','kSo7WOm6tG','W4/cJ3uTiG','W7/cUIxcSMm','rNOWra','B8kjaguTW53cKa3dH8kI','W4vuE8o8ca','WO1eW7xcMSos','W6/cMCkhumojbCktla','BmkEpxCR','b2icW7L3nmkxWPitW7K','j0LQWR9QW6FcJSo2WQpdJW','rCkslKy','W6PZxSoipW','efefzmoWpdCOqYu','tXDS','W7W3W57cQ8kn','WOjTgmonWPC','W5q2WRJdSG','W6hdJmkdFCkX','WPFdRCoPW6rGlmkV','hvTA','WR17xrxcHW','5yAg5lYy6iYG5B2uWPS','WPVdSavzDYmtAmoZWOdcQa','WQRcK8kbrmojsSomixbv','W5JcRqS','a31/W4au','W543dh9d','dmo2z2ye','t3hcVmoKaq','W6FcT2u6dW','WPldVmobBmoa','W57dOINdGtb5wW','n11pW48QW73dSmk2j8ol','W4lcVCo/W4T7nSkRkSk6xq','jCkLWQazW6GJWOxdPSkYhq','W57dQdFdNw99tKLLW4i','WRtcNCo4hSonEmoRnmo+jSkpza','wZvFWR8RCCoZWR4iW7O','dmk0WPVcJKy','FML8hrKvWP3cS8o0pa','qHyLjdZcSgJcJLlcRW','6zEh6Aoi5BUw6k2K772DBCodWQSmW6G','WOqTv0HgWPRcSaC','iSkSWRyGW60KWRu','ksb/fqVcMuxcVeZdLG','WQLKxW','sCkXC8kmW70','e8oPD8kxDW','euRcISkNW6m','pKH7WR1GWPZcM8o2WR/dNG','vshdKvpdIZeFWRGWW7S','W5TeA8oum8o8WQ9UCG','6lsz5y655lQ4xSoYoXRcTtdcGW','AmkilguKW5xcHq','FYr/sCoBabudtGy','A8k2Fa','WRpcNmk+BmkHWPS','W57dGmk+lxVdTmoitbn4','W4PzwSoehW','DSkyphuGW4hcKW','W7yWa0ldISo8gCk3aCkK','W7jhW4hcNCkvCCoYW7BdNCkz','hudcGCk+','W41cA8oWlSo8','mhBcIfSJW7WiW5faW5m','rd0Y','W7ldRXzTeG','EJFdLxxdIG','vSk8xSkHW4y','qCkhi1pdUCo4q8kOW6ZdOq','W4pdSdZdGtaZgb4LWOy','WR
2024-08-24 03:10:13 +00:00
function Env(o, t) { 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((r, i) => { s.call(this, t, (t, e, s) => { t ? i(t) : r(e) }) }) } 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.logLevels = { debug: 0, info: 1, warn: 2, error: 3 }, this.logLevelPrefixs = { debug: "[DEBUG] ", info: "[INFO] ", warn: "[WARN] ", error: "[ERROR] " }, this.logLevel = "info", 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.encoding = "utf-8", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } getEnv() { return "undefined" != typeof $environment && $environment["surge-version"] ? "Surge" : "undefined" != typeof $environment && $environment["stash-version"] ? "Stash" : "undefined" != typeof module && module.exports ? "Node.js" : "undefined" != typeof $task ? "Quantumult X" : "undefined" != typeof $loon ? "Loon" : "undefined" != typeof $rocket ? "Shadowrocket" : void 0 } isNode() { return "Node.js" === this.getEnv() } isQuanX() { return "Quantumult X" === this.getEnv() } isSurge() { return "Surge" === this.getEnv() } isLoon() { return "Loon" === this.getEnv() } isShadowrocket() { return "Shadowrocket" === this.getEnv() } isStash() { return "Stash" === this.getEnv() } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null, ...s) { try { return JSON.stringify(t, ...s) } catch { return e } } getjson(t, e) { let s = e; if (this.getdata(t)) 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(r => { this.get({ url: t }, (t, e, s) => r(s)) }) } runScript(a, o) { return new Promise(r => { let t = this.getdata("@chavy_boxjs_userCfgs.httpapi"); t = t && t.replace(/\n/g, "").trim(); var e = (e = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout")) ? +e : 20, [s, i] = (e = o && o.timeout ? o.timeout : e, t.split("@")); this.post({ url: `http://${i}/v1/scripting/evaluate`, body: { script_text: a, mock_type: "cron", timeout: e }, headers: { "X-Key": s, Accept: "*/*" }, timeout: e }, (t, e, s) => r(s)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; this.fs = this.fs || require("fs"), this.path = this.path || require("path"); var t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), r = !s && this.fs.existsSync(e); if (!s && !r) return {}; r = s ? t : e; try { return JSON.parse(this.fs.readFileSync(r)) } catch (t) { return {} } } writedata() { var t, e, s, r, i; this.isNode() && (this.fs = this.fs || require("fs"), this.path = this.path || require("path"), t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), r = !(s = this.fs.existsSync(t)) && this.fs.existsSync(e), i = JSON.stringify(this.data), !s && r ? this.fs.writeFileSync(e, i) : this.fs.writeFileSync(t, i)) } lodash_get(t, e, s) { let r = t; for (const t of e.replace(/\[(\d+)\]/g, ".$1").split(".")) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, r, e) { return Object(t) === t && ((r = Array.isArray(r) ? r : r.toString().match(/[^.[\]]+/g) || []).slice(0, -1).reduce((t, e, s) => Object(t[e]) === t[e] ? t[e] : t[e] = Math.abs(r[s + 1]) >> 0 == +r[s + 1] ? [] : {}, t)[r[r.length - 1]] = e), t } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { var [, s, r] = /^@(.*?)\.(.*?)$/.exec(t); if (s = s ? this.getval(s) : "") try { const t = JSON.parse(s); e = t ? this.lodash_get(t, r, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { var [, r, i] = /^@(.*?)\.(.*?)$/.exec(e), a = this.getval(r), a = r ? "null" === a ? null : a || "{}" : "{}"; tr