jdpro/jd_fish_help.js

7 lines
128 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('金融捕鱼助力');
const _0x26a6=['WO4wW5a','BSodiZe','W4rbxs01rNtdH8k2W7y','c8o9hmoSWPFdHW','WOarW4m','mXRdKG','W5pcSmofbCk6WQq','fXHeixS','WQNdONbtW5Hxa8kIhCom','l1VcUH7cHq','mSojcow1SowlQUwjQoI8NSofWOW','W4VcG3CblmkuWOqsWRTMWQNdNW','W4VdHSk/kSk4','W6ZcS2PxW4m','W5b8W6O','W4vms18pvhK','W43cTvNcO1WBWQFdMNKI','W7BdQ8kadmkK','tYdcOrRcUG','ibGSlcaeduJdRCoV','WPNcJaZcTqjq','WRSRcf5thSkYW53dJse','5B+m5yUA54QK5P+O77YxsdVcGSkhW6W','WQBcQmk+cHvFseVcVcG','rSkZBSk2WOC','WOZdJbbVtG','W49qWP8','FhWAW7FdLSkneSkAysG','WPKQceK','WORcQ8kdlaK','WOqBW5hdNCoOkvddUSoxfG','W4ZdQ2tcP2u','W6ZdLmkHeCkEWR8','WP7cICooWOlcPa','WQniW7ZdO8oeAg4','W4hdLL0','44gT5O6/56Af44cm6k+D5yEW6iYd5y6M5lQz5lM8','k8ohgSkSCW','WPpdSHz6Fq','W6BdRfldQxm','uCkQEmoW','W63dHCkGdCkCWQXyWRxcKSkf','5yEB5lYt6iYW5B+zWPq','ALqgm3S','WPf9WOKLW6a0eSoDW7xdVa','W77cPCoTWROp','W5VcKLDhW7G','WPBdMJrEymoiWOy8WRnv','p8k9WQSUktCMla','W7hdQ8k6aCk0','WPpdMYu','W4ziqx4','g3FdRvZdVW','pL7cQGdcKG/cIYK','eHtdU8kfWRpdQ8oVWPKGW7S','W7pdUCkBWQXb','W6j8FNrAWQG2','FCkKxSowkq','EuHMnHa','WPSYdv5ymmk/WOVcMx8','p097la','W6aPW5OZ','j8o2W5qAASoRva','WQ/cKmoJsa','aq8Tia','yxGmWQdcSmog','W54rW5ddM8o6nvhdUmkCtG','ESk5zCo2W53cNa','W4VcP8kygSkYW75DaCkZWPG','W7PHs1GU','WPpdMYvYzSoF','orf0W4BdJ2es','W5ZdPCkolCk6WO1Fs8kCaa','ehTEW44','77Ye6k+756ch6k2P77+4','zw57bIS','W5PoAfr5','W7RcQ2btW49naa','aL7cRrpcSG','rmokha/dVq','pCkWW5mmASoWdmk4ySkc','DSkdWQVdVGXrcG','W6DcW6uFW5y','jbD+kfO','5yEf6k+O6k2177YU7765772a','WOWzW5ZcLmoGnuFdTSoFfG','fahdIxrEW53dTX9rbq','f8okuCkSDG','omogaG','aqyjfdy','q2hdTeRcH8klWRdcTmkPWQi','eb3dRCkNWRRdVCoGWPeGWRu','WRyWW7BdU8op','W4T7W6S','W6pcJmo0o8kgW6hdSgb3W5W','yKH5lcDmW6m','WQiafwj2','WPNcPZWBEW','qfhcQowjMEwjHoEzSEAIRoIHK+MIMUAmVq','WO3cMrRcOG','WRZdPJmiWP5uamkmrCoVW7i','bmo/pSkPWOtdHmocqSouEajY','b0nGW6dcJq','rZZcRfddT8kjWRpcOSkHW6C','BL9ydIq','iX8YlW','WRBdTb7cGSos','zvvvlYDzW7ldH8o8Aq','WRddOYHfEa','WQNcLCkoeWK','W71MEG','WQ7cRSokl8kI','yCojzc/dNmkDWPJdPSkUW6K','o17dKKBdIdxcL8k9W5pdVq','z8k5xCkHWObG','smoReCo5WORdNZdcTsu5','FSkZzmkbWQ5jCq','WOBdJW7cH8oQWQ/cNt3dKgC','W4BcIwLcW4y','z1NdMupdMs/dHa','WPfPWR8J','bqHdjq','W4X6ug81','rY3cPHRcSSooWQNdOmoZWR8','W6dcShDvW5HBamkItSo2','cafqoedcOSo7vWVdHW','WQ7cJSoJuCoqWP95WRFcJCkl','WOxdIrNcG8oO','eI8Aid8','lXz+pMq','x3vbfWa','WOldM1/dO1rgWRrKw8ox','AMuhWQK','Ct8waKi','kcrmovi','ACklxIOlo1TpdCkT','W6RdOfhcJ1uNxSkJ','WOJdRchdUqC','W7ONW7b7WQTStow+IEwLN+ocNW','xCk6W44','W5NcK8oNWQCPW7tdMqFdKCkp','ymkYFmkMWQbfCCoA','WOjKWQOLWQe1fmoQWQNcRq','WRxdMmkaWOtcJa','yvmyh2C','z18g','h0tcOHFcSXVcKG','hL/cOW','dsPnjeW','WRmRW4OLW5a','BaxcIq','o1xdJ1/dMsldG8kNW5FdTW','W6RdU8kjWOHKcx8','eWPvjfJcSW','W6fvuvus','W7pcGSoHcSoy','WQRdRCokWQFcVCk8WQTrmmoU','W4ZcI8o9WQm3','umk7W43dPNGfpq','deJcUXBcVrRcHW','p23cKHZcNW','W7hdTSkbWQe','iNddTxZdTW','oeJdK0C','d0ZcUXm','WOZdNsvz','p8oGFSkpD8oXrCo0la','WP3LIkVPKQFLKipLH6VMIydOOz7OHRZMN6JcLq','umkhWR7dScPncgy','CCkUF8oY','WO/dMZfd','vCk8W5RdT3Gzn8kYWQ4h','ACkqwdueeePkc8oW','tYdcSrRcSmoFW7FdUmoHWOm','iSo1xSkDFa','WOu1W7SRW5u6','Fmk/W6FdP3u','WO7dSCobuCouW78ZW4dcMCk0','W5rQh0Lse8kyWPlcIhG','WOVcOmoscCk/','WRNdJrv+vW','W7xcHmoPnG','lCo7ECkrrCowumoXh0q','WRFcUXJdKGn6h8kjuSkD','CCkUDmodW6q','lXHWktzGau7dRG','W5pcU8oMd8om','5Bsu5P+r5yIc5yMn5Q+u5PwVW48','txHpmXi','bbBdRCke','imoWFCkqCCol','geJcRb3cSGRcQIxdINC','W4new2yOrN/dGW','W7NdJ8kHpCkrWRT0','ybqimNncccVcOwS','WQZdGaRcISoxWQtcUd0','W5pcU8omWQHKew7cKmo0WRK','5P6h5A6K6ko9zrjtySovW6NdRW','tYdcPHpcT8oEW6hdVW','WPiwW5VdI8oIlq','ECkmvt8','tCkiWQNdVGy','W53cTwz4W6u','WO7dVrj0DW','xrNdUeVdQI3dKh3cKLC','lKFcNHZcHG','WOJdSSoovCox','WQRdOmktWQpcOSkoWO1FjmoK','WRBcGxCnWPSjqCoIcCkn','W73cJmoR','b0lcQa','WOjOWQKKW60Y','yN8DWRJcMW','cx/cVtBcUa','W7ddPfpcTvi4va','iHDOpvW','WPGIW6e5W5aGt8o3y1C','Daq2keK','W5HJaCougSodmCk6WOBcNq','W7pcU8oTfCoZ','WOZcQ8oFWQpcLW','yCkZzmkDWRPCD8orha','W7tcR8oJiCokW7tdVMP3W5S','iv3cRbFcVW','ySovlIddGa','WOb4WQK5','W4ZcSmofa8k3WRDB','WO8MquPzwSkHWOxcM2m','C8o3eHhdVa','W4LVb8ojcW','cX8ZitC8','r8k+ySocW5FcGmotFmoQzG','bK7cLWZcVmkMBG','qe0jhLO','paZdNhHAW4W','W6NdGSkMhSkX','qSk9BSktWOq','pWD5WQ7cJG','hv/cHahcT8kZDmkunW','WPFdGJfCFa','iXPc55Q45Qce5BEr6l+p5yI15PsN6yke','pmo4W5SjFW
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