mirror of https://github.com/6dylan6/jdpro.git
10 lines
165 KiB
JavaScript
10 lines
165 KiB
JavaScript
|
/*
|
|||
|
汪汪乐园合成
|
|||
|
7 7 7 7 * https://raw.githubusercontent.com/6dylan6/jdpro/main/jd_wwpark_merge.js
|
|||
|
跑会黑,自己决定!!!
|
|||
|
6dy 2023/7/29
|
|||
|
*/
|
|||
|
const $ = new Env('汪汪乐园合成');
|
|||
|
const _0x3f7ac5=_0x313a;(function(_0x481bce,_0x580112){const _0x30b7b6={_0x3600dd:'0x54b',_0x1e1704:'b1uZ',_0x122303:'0x30a',_0x2421e0:'6xAM',_0x48b54b:'0x40b',_0x19f581:'aEfI',_0x36e1bc:'0x55e',_0x16c73d:'D#BG',_0x1ef487:'0x468',_0x34c3a1:']zYA',_0x159aeb:'0x3c0',_0x281c3f:'KA)w',_0x2274a6:'0x331',_0x527183:'72kQ',_0x38a714:'0x415',_0x5abc62:'%@q&',_0x5e0ebe:'0x187',_0xbea5cf:'A7ei',_0x395486:'0x405',_0x528f5f:'rqbC'},_0x362605=_0x313a,_0x2a0d38=_0x481bce();while(!![]){try{const _0x32c976=-parseInt(_0x362605(_0x30b7b6._0x3600dd,_0x30b7b6._0x1e1704))/(-0x19*0xfa+-0x50*0x43+-0x11*-0x2ab)+parseInt(_0x362605(_0x30b7b6._0x122303,_0x30b7b6._0x2421e0))/(0x84c+0x1*0x455+-0xc9f)+parseInt(_0x362605(_0x30b7b6._0x48b54b,_0x30b7b6._0x19f581))/(0x69d+-0x11f4+0xb5a)*(parseInt(_0x362605(_0x30b7b6._0x36e1bc,_0x30b7b6._0x16c73d))/(-0x1f07+-0x14c9*0x1+0x33d4))+-parseInt(_0x362605(_0x30b7b6._0x1ef487,_0x30b7b6._0x34c3a1))/(-0x1453+-0x1*-0x2547+-0x121*0xf)+parseInt(_0x362605(_0x30b7b6._0x159aeb,_0x30b7b6._0x281c3f))/(-0xdc1+-0x1*0x2b1+-0x20f*-0x8)+parseInt(_0x362605(_0x30b7b6._0x2274a6,_0x30b7b6._0x527183))/(-0x689+-0xf95+-0x1625*-0x1)*(parseInt(_0x362605(_0x30b7b6._0x38a714,_0x30b7b6._0x5abc62))/(-0x6d9+0x1*0x858+0x5*-0x4b))+-parseInt(_0x362605(_0x30b7b6._0x5e0ebe,_0x30b7b6._0xbea5cf))/(-0xc41*-0x1+-0xfb6*-0x2+-0x2ba4)*(parseInt(_0x362605(_0x30b7b6._0x395486,_0x30b7b6._0x528f5f))/(0x22eb+0x5ec+-0x5*0x829));if(_0x32c976===_0x580112)break;else _0x2a0d38['push'](_0x2a0d38['shift']());}catch(_0x298f73){_0x2a0d38['push'](_0x2a0d38['shift']());}}}(_0xc34f,-0x3cec0+-0x4ff03+0xd80f7));const _0x2ca2d7=$[_0x3f7ac5('0x1df','n20e')]()?require(_0x3f7ac5('0x1a3','CMOd')):'',_0x43a7a0=require(_0x3f7ac5('0x55d','bB#D')),_0x6a3a09=$[_0x3f7ac5('0x403','RQ]M')]()?require(_0x3f7ac5('0x250','Usld')):'';let _0x1d738b=[],_0x3c47ec='',_0x30d7ff=![];if($[_0x3f7ac5('0x43a','1N3T')]()){Object[_0x3f7ac5('0x2cd','yBAj')](_0x2ca2d7)[_0x3f7ac5('0x3ad','aEfI')](_0x3a54a4=>{const _0x3763c6={_0xb64704:'0x22d',_0x5858b7:'IhsO'},_0x4efc0e=_0x313a;_0x1d738b[_0x4efc0e(_0x3763c6._0xb64704,_0x3763c6._0x5858b7)](_0x2ca2d7[_0x3a54a4]);});if(process[_0x3f7ac5('0x536','A7ei')][_0x3f7ac5('0x52a','6xAM')]&&process[_0x3f7ac5('0x1aa','D#BG')][_0x3f7ac5('0x210','ZB#I')]===_0x3f7ac5('0x299','zeyn'))console[_0x3f7ac5('0x2d3','n9nn')]=()=>{};}else _0x1d738b=[$[_0x3f7ac5('0x1e5',']eog')](_0x3f7ac5('0x3f4','n20e')),$[_0x3f7ac5('0x47c','b1uZ')](_0x3f7ac5('0x183','K3Ot')),..._0x3c9c8d($[_0x3f7ac5('0x446','OxqL')](_0x3f7ac5('0x26d','A7ei'))||'[]')[_0x3f7ac5('0x46c','72kQ')](_0x57b7e4=>_0x57b7e4[_0x3f7ac5('0x43b','fY&W')])][_0x3f7ac5('0x1c5','%@q&')](_0x50dc9b=>!!_0x50dc9b);$[_0x3f7ac5('0x2d6','gfNh')]=0x4a6+0x3bf+0x1*-0x865,message='',!(async()=>{const _0x1823ca={_0x209302:'0x18b',_0x19fad2:'p4@q',_0x596b32:'0x43e',_0x750e12:']eog',_0x34bee4:'0x32d',_0x11f5c8:'7#)y',_0x181f8e:'0x4d9',_0x22d61a:'JIUD',_0x4f2a06:'0x47e',_0x2e65a1:'tc5V',_0x724a69:'0x4de',_0xf7c9c2:'Usld',_0x272f4f:'0x52d',_0x2142c2:'EK)0',_0x1c3c46:'0x2ae',_0xc99c1:'A7ei',_0x4c572c:'0x4ef',_0x3fdc7a:'ZB#I',_0x287473:'0x2ec',_0x1f6ce9:'46hk',_0x596fef:'0x4e5',_0x17e2e2:'IhsO',_0x296abf:'0x58e',_0x520214:'WPZi',_0x39125c:'0x54f',_0x36d444:'wnYu',_0x49377e:'0x4b8',_0x5f2618:'gfNh',_0x31d3bb:'0x507',_0x131ac5:'rqbC',_0x28790c:'0x380',_0x5225a3:'p4@q',_0x56583b:'0x53e',_0x1f0ae8:'D#BG',_0x3252df:'0x4d5',_0x566e51:'myqi',_0x693446:'0x56c',_0x273040:'0x4ed',_0x3afe7a:'0x398',_0x2aef5f:'K3Ot',_0x318de0:'0x3db',_0x4a1573:'n20e',_0x3c346e:'0x5a5',_0x5dcef1:'0x2e1',_0x7fcbbb:'0x17c',_0x4a3281:'Usld',_0x3c69f0:'0x20d',_0x28e12b:'Hnws',_0x5c1af1:'0x2c1',_0x4976fa:'0x537',_0x1e61ce:'n9nn',_0x491cf1:'0x2fa',_0x4534c0:'apG6',_0x52d52c:'0x4a0',_0x32edb8:'RQ]M',_0x325210:'0x2c6',_0x4a8584:'%@q&',_0x47897c:'0x3eb',_0x25f4bd:'p4@q',_0x928441:'0x4fe',_0x4920b2:'b1uZ',_0x1b2d8d:'0x2b3',_0x2bcefa:'1N3T',_0x4c4f66:'0x46d',_0xec3d2d:'wnYu',_0x13aacc:'0x56d',_0x13df4b:'0x4b7',_0x5dca88:'aEfI',_0x310d72:'0x3de',_0x42890e:'0x50d',_0x3741e9:'0x423',_0x57eb30:'0x321',_0xb449b6:'k4Pm',_0x262247:'0x4c5',_0x52ca88:'UuZa',_0x199a7a:'0x3f9',_0x1e70b3:'0x3ee',_0x57
|
|||
|
// prettier-ignore
|
|||
|
function Env(t, e) { 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.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) :
|