jdpro/jd_mssign.js

7 lines
103 KiB
JavaScript
Raw Normal View History

2024-09-04 04:24:54 +00:00
/*
45 0,14 * * * jd_mssign.js
*/
const $ = new Env('秒送签到');
const _0x4dd2=['pCk/DZhcUW','ymoOW5JdRam','hCkDnCkTWPy','n8oSwmk+cW','rSommCkBjmkAcmoMW6Ov','WRZcJr1IjW','WPhcRYK','qComWRhcKCkT','WO/cPt1DcCkK','W5mCyu4I','W7xcJt/dJG','W4xdRCkUkW','luz9W4pdHY/dLSoA','tb7dOSk1W4C','BCopW6vu','xbZcUMdcSG','C2dcOmkKW6e2','F0SFDmkn','BgtcP8kYW6u','44cT5O6V56wt44o6FSk6W65EW6vB','CCkgx8obfCoFmSkMWQSA','qmozW7Pyj8oTWQi','WQhcOJZcRSox','W7hdMSkElcK','W6PcW7JcOmop','W7VcJWhdV1u','WQ7cGdudeCoDFSkX','EK8wCSkp','uMWYW5L/smog','W7uNt1q3','WPeCW7hcPmoP','Bmo7W7vEmW','thWIW4L7xmoq','fCkoWQJcVeBcTmkGWQtcSqtcPG','WPeTW5ddSZu','sHddMSkeW4vfACki','qZJcN2dcV29f','WQ0YW5VdJ3mp','WORcGIRcQ8oJW6i','wHODWOLYWRhdUa','qmkCW4PWla','ts7cIepcO3O','xMiUW77cMa','WPNcRqdcTmoU','vX/dNCkaW5rpFmkyt1O','W6tcQbJcH8k3W4BdHW','WP/dHCormWi','W4pcJt/dMhj1','B8osW49ccq','W6pcQSohwW','vbeDWO5VWRddSKhdV3C','wuZcV8kvW7q','sxu3','WQXFxmk2W4S','6iYo5BYz77YP','W77cQaRcLSk+W4a','WRu4W4hdIwSIqmk1WRXp','kSk2BY3cHrRdRCooi0W','W43dS8kZkJ1tW4qoW6Dh','WOK+W4JdKaqChq','lX1sjSoAWRBdSa','WOZdOvPRW4tcNa','wdNdNa','EColzt/cM8kiWQNcMCk6','WQNdH8o7bq','W7TqW60','WP88W53dIa','pqXaB8kd','WRqKW5ddMIOgrSkIWRXi','W53dPgXuWQtcNSkCA39S','F8oxqshcQG','qgKHW5zJ','cM9QW7ldIG','W6xcObZcT8kZW4FdNW','W6VdLmk2jWC','qaNdNhGKW4VcMXvlxa','W4SOtha','ENWPoXXKW7i','r23cUCk7nW','WQaLW5ZcHZjufSoPW6ek','WR/cLdjA','A2PuWPFcQWBcIdjn','E8kVyCoAh8oIoCkYWQu','W5BcQrtcI8o2qmk3WOHjWR0','W7KbvSoAWPW','W6JcHtpdMSoQ','asZdQmo0','WQ/dI8oNhIVdOG','W6tcMYNdN1bGWOq1','AxhcP8kHW754WPvWESoE','wNTEWOJcVJZdHbPgsa','W4JdUSocoSkU','shCLW59OxSogWO5ymG','othdP8o/WRHZWPOmECoD','tXOAWP5XWQe','WQVcSIHUeW','W4mwwSogWRxcT8o8Da','sWhdMCkaW7rEr8kPEwe','rmoiW7nf','xWGweW','W5hdRSkIpq5fW4qFW6a','vJimWRlcRf8','FxrsWOlcVa','CsddGCkJW6S','sSoKW4ddGc8','WR9tW6tcUCosvmojfJfw','oCkDl8kqWR8','W7pcGCoYhINdTrHYiCor','W7CrwSkyW5VcTmoJ','W6eUvMyKWPK','W5qIzNCMWOtcL8oE','sSonzZ7cGq','WQCmW5i','zSobWQBdLSkr','chjhW6NcRXJdSCoX','cmo5Bmkcp8kOWRW','WQKCW5ZcPmo+nG','uGyFeW','yv8vW4/cSG','W7ZcGCojtmoT','waCFe8kw','WOhcTY7cICoh','W78ls8orWONcS8oIzCobfa','WQBcL8k3lCox','W4NdJmk0W6iHW7i7BehcUW','WQ4koW','r3yuW5JcKa','W7pcQ8oqrSovFuRcQ8oqWQe','uSkDi8kHWRpcKSooW6FdGmoN','s8oTWRZcP8kt','cmoVEa','WRldRmoFddC','t2JcTCk/c0tcJSkV','WRtdGSo4cMJcO0iRBSkx','W4lcNd7dHhbMWOa2W7u','cI/cHelcQJm','F8ojttRcSW','t8khCSoXeW','W7PAW7xcU8o6ra','WPtcSINcUCo5','jr1vmCoAWQxdTa','W4RcUM4oWP8','W47dNrJdV0/dOXq3W5qj','E8opWPZcUmkX','gmkhmq','W5tdPxPyWRi','W73cNmkoW4yOW68HxqdcHW','B8oCWQFdGCkb','vGxdNCkFW7uqiSocs1K','FSodWQZdJmoEtmkeiI0J','WRFcHYvbaa','DH/dI1uf','bmkBWQqUjqNdOW','f8kjiSkRWR8','W6pcTCoiw8of','W57cKIZcT8oRWQT+wKNdPW','t1n4WQBdV3VdNgCygq','rCoBW7VdRbpcS8k4','z8keqCoTfW','qWaveq','ySoQWP0','WO3cSIDsamkEW6BdUmkN','t8kKCSojgq','W4uNwwS3','x8oFW7tdRbNcRa','WQ4lpmoiWO4+D8kDj1G','W4/cUq7dNCoE','zYhcKL/cOG','W5RdOvXwWQpcJW','W57dMtldMNa','W7Okwa','WQ41imocWPi+pmofzte','s1y0W6TW','BNFcUSk2W6qS','W4X1W43cQSoD','smoAW6z+ja','W4pcK0uN','W6LuCwbwuSkEWQ5aW7K','56+I5yUC5OUn5yIT772i','WR7dUe7dLCoRWOddKcfKWObozG','W4ePuxeXWP7cISoqW7rl','55Uv5O6K5l6P55E8c0RcGCkZW4VdQq','W7GbwSog','xr7dHSkeW69p','W7dcG8k6','WOZcKcHn','WQioW5NcSSoP','W4j1WORcKLu','gmkxWQGVlW7dPa','W6TxW6FcVmoxra','n+wpHoESL+wlMZpdU8kV','W7v/uhHH','z0tcHCkwW4O','zMdcPW','W4JdSSkG','56Yz5yIY6yEZWQFWV7oD77Qm','xK1zWPVcQa','BMTyWP/cJZVcMJPC','oH1vn8oxWRy','rSobWOBcQcVcLa','WPZcJqBcT8oHW6iJebdcVa','WRbGomo4W68','56+t5yQc5OMM5yIt77Y6','WRFcICk5jmoXtuuWW7lcOa','W7NcNxS2WP0ljCkD','W6RcICkV','xCo9BstcLW','q8oaWPxcIcVcG8kRW7JdKZG','tmoDW7NdRqBcTCoMWONcIJe','WRJcLmkRimolgqXW','W7dcHH7dJ8on','x8ooW7X+DeRdHmoEW47cUSktyW','WQG5W4hdJxucuSkZWQfU','W4tdGtRdO1ZdUa8','W4NcO3GfWOG','WQ/cKc9kcSogCq','WPhcNHj0gq','irzcj8odWO3dTW','W6xcPqdcGt5TWOa7W6K0','W5ZcMYS','mCk/sYW','WOySrxm9WONdHmoEW7ej','Dx0gW5ZdVMBdMheDea','emkbW47cMxFcI8k9WQpdHbm','sg8/W75J','rMOW','B8oEW4nseG','tSolFJxcNSkOWRVcOCkqEG','W5q0FgC','fSoEA8kAhq','WRVcMSkOia','W4NdVef/WOm','W6GgjmoeWPK1CmohnwK','WRP0l8o+W7K','WQZcImkUn8oNbbK','W5tdVvq','cKNcKmoCWRatDmkcy2qNW7e','vxJcN8kW','W7rbW7m','BtRcILtcTW','sxOibsu','W5D6W7BcM8o6','rtNcRgZcHW','6k2t5yMI6zMi5Owa5z2NDmoyaSoEzG','WPNcRY1ChmkGW6i','WOVdKrRdPv7dVXucW4uu','wCoqsYBcTG','W7vIWOpcNZ9E','
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