jdpro/jd_jbpanDraw.js

6 lines
139 KiB
JavaScript
Raw Normal View History

2024-01-27 11:40:17 +00:00
/*
55 1 * * * jd_jbpanDraw.js
*/
const $ = new Env('京保大转盘');
(function(_0x564542,_0x11979a){const _0x94891={_0x425fc1:'\x30\x78\x32\x35\x35',_0x27810f:'\x42\x25\x73\x62',_0x172ef7:'\x30\x78\x33\x33\x61',_0x102190:'\x71\x55\x23\x28',_0x3e46d8:'\x30\x78\x33\x31\x62',_0x3b52a0:'\x61\x5a\x4b\x67',_0x16b267:'\x30\x78\x33\x30\x34',_0x50c222:'\x43\x26\x52\x53',_0x514468:'\x30\x78\x32\x34\x39',_0x13e52f:'\x61\x5a\x4b\x67',_0x32db3f:'\x30\x78\x32\x63\x66',_0x3234de:'\x26\x68\x36\x4d',_0x4a5df4:'\x30\x78\x32\x63\x38',_0x1ec56e:'\x66\x4f\x75\x25',_0x32794a:'\x30\x78\x31\x33\x35',_0x2869b8:'\x76\x5a\x77\x72',_0x5b5a2d:'\x30\x78\x31\x38\x34',_0x17ff3d:'\x75\x42\x6e\x30',_0x127993:'\x30\x78\x32\x35\x65',_0x988440:'\x78\x6d\x53\x70',_0x55ce5c:'\x30\x78\x31\x30\x66',_0x3ed405:'\x38\x39\x4d\x63'},_0x53eef8=_0x564542();while(!![]){try{const _0xe988eb=parseInt(_0x1e52(_0x94891._0x425fc1,_0x94891._0x27810f))/(0xd2a+0x26e2+-0x340b)+parseInt(_0x1e52(_0x94891._0x172ef7,_0x94891._0x102190))/(-0x14ac+-0x26b*0x10+0x6*0x9e5)*(parseInt(_0x1e52(_0x94891._0x3e46d8,_0x94891._0x3b52a0))/(0x171a+-0x2cf*-0x6+-0x5*0x7fd))+-parseInt(_0x1e52(_0x94891._0x16b267,_0x94891._0x50c222))/(0xb53+-0x9fd+-0x152)+-parseInt(_0x1e52(_0x94891._0x514468,_0x94891._0x13e52f))/(0x31e+0x542+-0x85b)+-parseInt(_0x1e52(_0x94891._0x32db3f,_0x94891._0x3234de))/(-0x1*0x1c32+0x22be+-0x686)*(parseInt(_0x1e52(_0x94891._0x4a5df4,_0x94891._0x1ec56e))/(0x40e+-0x1b9d+0x1796))+parseInt(_0x1e52(_0x94891._0x32794a,_0x94891._0x2869b8))/(-0xa*0x8b+-0xb30*0x3+0x2706)*(parseInt(_0x1e52(_0x94891._0x5b5a2d,_0x94891._0x17ff3d))/(-0x220f+0x1891+0x1*0x987))+parseInt(_0x1e52(_0x94891._0x127993,_0x94891._0x988440))/(0x127a+0x2177+-0x67*0x81)*(parseInt(_0x1e52(_0x94891._0x55ce5c,_0x94891._0x3ed405))/(0x785+0x115d+0x1*-0x18d7));if(_0xe988eb===_0x11979a)break;else _0x53eef8['push'](_0x53eef8['shift']());}catch(_0x18a234){_0x53eef8['push'](_0x53eef8['shift']());}}}(_0x427a,0x1*0x8ccb1+0x883+-0x30e15*-0x2));const _0x1c7676=$[_0x1e52('\x30\x78\x33\x33\x66','\x76\x5a\x77\x72')]()?require(_0x1e52('\x30\x78\x33\x32\x38','\x5e\x5d\x6c\x5d')):'',_0x293a7f=$[_0x1e52('\x30\x78\x32\x61\x30','\x7a\x71\x4f\x6f')]()?require(_0x1e52('\x30\x78\x31\x38\x35','\x5a\x52\x63\x5b')):'',_0x1002a8=require(_0x1e52('\x30\x78\x66\x31','\x35\x5d\x51\x6c'));function _0x1e52(_0x123143,_0x156b04){const _0x1e4350=_0x427a();return _0x1e52=function(_0x19ea1a,_0xd068c7){_0x19ea1a=_0x19ea1a-(-0xb5b*0x1+0x18ad+-0x37*0x3a);let _0x4b7cdc=_0x1e4350[_0x19ea1a];if(_0x1e52['\x79\x42\x57\x55\x4a\x48']===undefined){var _0x5bc543=function(_0x557aed){const _0x5d4397='\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2b\x2f\x3d';let _0x1b21a1='',_0x195659='',_0x44d7cc=_0x1b21a1+_0x5bc543;for(let _0x4c9ab1=0xce1+0xf65+-0x1c46,_0x572678,_0x2c30d3,_0x527d29=-0xb*0x74+-0x16b2+0x49d*0x6;_0x2c30d3=_0x557aed['\x63\x68\x61\x72\x41\x74'](_0x527d29++);~_0x2c30d3&&(_0x572678=_0x4c9ab1%(0xb*0x10f+-0xe27+0x286)?_0x572678*(0x1f0a+0x1*0xa7b+-0x2945)+_0x2c30d3:_0x2c30d3,_0x4c9ab1++%(-0x103b+0x106*0x7+0x915))?_0x1b21a1+=_0x44d7cc['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x527d29+(-0x136*0x9+0x4*0x35+-0x287*-0x4))-(-0xcb3+-0xd9*-0x5+0x880)!==-0x107f+-0x872+0x18f1?String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x224a+-0x193+0x23*-0xe8&_0x572678>>(-(0x169e+0x183e+-0xf9e*0x3)*_0x4c9ab1&-0x39d+0x1a1f+-0x4*0x59f)):_0x4c9ab1:-0x3*0x114+0x1a7e+-0x1742){_0x2c30d3=_0x5d4397['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2c30d3);}for(let _0x2bfd1f=0x4*0x3e3+-0x1c6*0x1+-0xdc6*0x1,_0x4f6d5c=_0x1b21a1['\x6c\x65\x6e\x67\x74\x68'];_0x2bfd1f<_0x4f6d5c;_0x2bfd1f++){_0x195659+='\x25'+('\x30\x30'+_0x1b21a1['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2bfd1f)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x42f+0x1c89+-0x17c*0x16))['\x73\x6c\x69\x63\x65'](-(0x5ba*-0x5+0x707*0x2+0xe96*0x1));}return decodeURIComponent(_0x195659);};const _0x3624fd=function(_0x377663,_0x22546f){let _0x2a6a4b=[],_0x3d2dc7=0xe*-0xbf+-0x1d1*0x6+0x1558,_0x39454a,_0x4e6ead='';_0x377
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