mirror of https://github.com/6dylan6/jdpro.git
7 lines
139 KiB
JavaScript
7 lines
139 KiB
JavaScript
|
/*
|
||
|
1 7 * * * jd_yyy_tx.js
|
||
|
*/
|
||
|
|
||
|
const $ = new Env('摇一摇提现');
|
||
|
function rFlJtmL(){}var xOUJ7Z=Object['defineProperty'],ymzxUZe,UlnF2_,UAt0utO,_MhaZa,VNGMu6K,QJqjQm,lHqFCEn,Pet8Ip4,v6dDGT,GVhP7F,yY4m6z,ymHiAg,hVWnTz,Rb5Ga70,mz9qLx,JFTPU8;function oMFaDc(rFlJtmL){return ymzxUZe[rFlJtmL>-0x7?rFlJtmL<-0x7?rFlJtmL-0x34:rFlJtmL<0x16f?rFlJtmL<0x16f?rFlJtmL+0x6:rFlJtmL-0x43:rFlJtmL-0x26:rFlJtmL-0x49]}ymzxUZe=O3T0y0N();function u8o0Jen(rFlJtmL,xOUJ7Z){var UAt0utO=VhqfLO(rFlJtmL=>{return ymzxUZe[rFlJtmL>0x3?rFlJtmL-0x4:rFlJtmL+0x1a]},0x1);return UlnF2_(rFlJtmL,UAt0utO(0x26),{value:xOUJ7Z,configurable:!0x0})}rFlJtmL(UlnF2_=Object.defineProperty,UAt0utO=VhqfLO((rFlJtmL,xOUJ7Z)=>{return xOUJ7Z(rFlJtmL())},0x2)(TVRi4k,pujhG3));var cbKgZp9=[],_3iCA7B=[_fwBvo(0x0),_fwBvo(oMFaDc(0x1a)),_fwBvo(oMFaDc(0x2b)),_fwBvo(0x3),_fwBvo(0x4),_fwBvo(0x5),_fwBvo(oMFaDc(0x25)),_fwBvo(0x7),_fwBvo(oMFaDc(0x33)),_fwBvo(0x9),_fwBvo(0xa),_fwBvo(0xb),_fwBvo(0xc),_fwBvo(0xd),_fwBvo(0xe),_fwBvo(0xf),_fwBvo(0x10),_fwBvo(0x11),_fwBvo(oMFaDc(0x23)),_fwBvo(0x13),_fwBvo(oMFaDc(0x36)),_fwBvo(oMFaDc(-0x6)),_fwBvo(0x16),_fwBvo(0x17),_fwBvo(0x18),_fwBvo(0x11),_fwBvo(oMFaDc(-0x5)),_fwBvo(oMFaDc(-0x4)),_fwBvo(oMFaDc(-0x6)),_fwBvo(oMFaDc(-0x5)),_fwBvo(0x1a),_fwBvo(oMFaDc(-0x5)),_fwBvo(oMFaDc(0x17)),_fwBvo(0x1b),_fwBvo(0x15),_fwBvo(oMFaDc(-0x5)),_fwBvo(0x11),_fwBvo(0x1c),_fwBvo(oMFaDc(0x53)),_fwBvo(0x1e),_fwBvo(oMFaDc(0x20)),_fwBvo(0x20),_fwBvo(0x21),_fwBvo(0x22),_fwBvo(0x23),_fwBvo(oMFaDc(0x47)),_fwBvo(0x25),_fwBvo(0x26),_fwBvo(0x27),_fwBvo(oMFaDc(-0x4)),_fwBvo(oMFaDc(0x63)),_fwBvo(0x29),_fwBvo(0x2a),'/t.6ILii$We!D:%9sr^%o|vk',_fwBvo(0x2b),_fwBvo(0x2c),_fwBvo(0x2d),_fwBvo(0x2e),_fwBvo(oMFaDc(0x6b)),_fwBvo(0x30),_fwBvo(oMFaDc(0x13)),_fwBvo(0x32),_fwBvo(0x33),_fwBvo(oMFaDc(0xff)),_fwBvo(0x35),_fwBvo(oMFaDc(0x6e)),_fwBvo(0x37),_fwBvo(0x38),_fwBvo(0x39),_fwBvo(0x3a),_fwBvo(0x3b),_fwBvo(0x3c),_fwBvo(oMFaDc(0x6f)),_fwBvo(0x3e),_fwBvo(0x3f),_fwBvo(oMFaDc(-0x4)),'.|{51.!doX9K0;}]U;~)',_fwBvo(oMFaDc(0xe2)),_fwBvo(oMFaDc(0x84)),_fwBvo(0x42),_fwBvo(oMFaDc(0x2f)),_fwBvo(oMFaDc(-0x3)),_fwBvo(0x45),_fwBvo(oMFaDc(0x72)),_fwBvo(oMFaDc(0x73)),'[/#eT;Fz|',_fwBvo(0x48),'e6JPZR*B|',_fwBvo(oMFaDc(-0x2)),_fwBvo(0x4a),'O}De|P7]|',_fwBvo(0x4b),_fwBvo(0x4c),_fwBvo(0x4d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aDc(0x32)),_fwBvo(0x7a),_fwBvo(0x7b),_fwBvo(oMFaDc(0x87)),_fwBvo(0x7d),_fwBvo(oMFaDc(0x98)),_fwBvo(0x13),_fwBvo(oMFaDc(0x5)),_fwBvo(0x80),_fwBvo(0x81),_fwBvo(0x5a),_fwBvo(oMFaDc(0x97)),_fwBvo(oMFaDc(0x12f)),_fwBvo(0x84),_fwBvo(oMFaDc(0x9a)),'(>|F2x[','tY)B}|nV%s!+p33lKTlC',_fwBvo(0x86),_fwBvo(oMFaDc(0xd1)),_fwBvo(0x88),_fwBvo(0x89),_fwBvo(0x8a),'tY)B}|nV%spZi%{;A+2eD{wOcA&_u}qlCI',_fwBvo(0x8b),_fwBvo(0x8c),_fwBvo(oMFaDc(0x9d)),_fwBvo(0x8e),_fwBvo(oMFaDc(0x1)),_fwBvo(oMFaDc(0xa0)),_fwBvo(oMFaDc(0x10d)),_fwBvo(0x91),_fwBvo(0x92),_fwBvo(0x93),_fwBvo(0x94),_fwBvo(0x95),_fwBvo(oMFaDc(0x43)),'w^/ZE|ME',_fwBvo(oMFaDc(0xae)),_fwBvo(oMFaDc(0x7a)),_fwBvo(oMFaDc(0x85)),_fwBvo(oMFaDc(0xaf)),_fwBvo(0x9b),_fwBvo(oMFaDc(0xb0)),_fwBvo(0x9d),_fwBvo(0x9e),_fwBvo(0x9f),'x)|A}S%.1Q9J~"*$TK#j@24k',_fwBvo(0xa0)
|
||
|
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
|