2024-06-28 07:47:44 +00:00
|
|
|
/*
|
|
|
|
23 5,10 * * * jd_wanyiwan.js
|
|
|
|
*/
|
|
|
|
|
|
|
|
const $ = new Env('玩一玩_任务');
|
2024-07-07 00:26:36 +00:00
|
|
|
const bdy_0x1c972c=bdy_0x587b;(function(_0x21d80c,_0x136208){const bdy_0x4138f1={_0x4e4315:'0x2e5',_0x27358e:'0x506',_0x40c722:'G11@'},_0x5b9438=bdy_0x587b,_0xbb05fe=_0x21d80c();while(!![]){try{const _0x52d7d4=-parseInt(_0x5b9438('0x1aa','CzCZ'))/(0x37d+0x11*0x9f+-0xe0b)+-parseInt(_0x5b9438('0x522','(vP@'))/(0xf74*-0x2+0x2*-0x120d+-0x4304*-0x1)+-parseInt(_0x5b9438(bdy_0x4138f1._0x4e4315,'$9jd'))/(0x2a9*0x3+0x1e6d+-0x2665)+parseInt(_0x5b9438('0x30b','lpMb'))/(0x564+0x2*0x496+0x13*-0xc4)+-parseInt(_0x5b9438(bdy_0x4138f1._0x27358e,'cRVO'))/(-0x2*0x64d+0x1*-0xd76+0x1a15)+parseInt(_0x5b9438('0x30a',bdy_0x4138f1._0x40c722))/(-0x1925*0x1+-0x91e+0x1*0x2249)+parseInt(_0x5b9438('0x486','B&Ml'))/(-0x12fa+-0x160f*0x1+0x2910);if(_0x52d7d4===_0x136208)break;else _0xbb05fe['push'](_0xbb05fe['shift']());}catch(_0x38176d){_0xbb05fe['push'](_0xbb05fe['shift']());}}}(bdy_0x2730,0x1*-0x47ca3+0x283*-0x454+0x1*0x15b92f));const bdy_0x53fab0=(function(){let _0x503731=!![];return function(_0x38ee8f,_0x172525){const _0x18e67e=_0x503731?function(){const _0x5b1772=bdy_0x587b;if(_0x172525){const _0x4c1d60=_0x172525[_0x5b1772('0x3d0','hCKm')](_0x38ee8f,arguments);return _0x172525=null,_0x4c1d60;}}:function(){};return _0x503731=![],_0x18e67e;};}()),bdy_0x191dde=bdy_0x53fab0(this,function(){const bdy_0x124a17={_0x574413:'0x314',_0x2d7627:'*k$7',_0x2b61cd:'lpMb',_0x44d7ab:'%F%M',_0xda701:'0x350'},_0x360897=bdy_0x587b,_0x40428b={};_0x40428b[_0x360897('0x481','&SGy')]=_0x360897('0x21b','TNo4');const _0x4c45f5=_0x40428b;return bdy_0x191dde[_0x360897(bdy_0x124a17._0x574413,']cQ9')]()[_0x360897('0x5b0','lh!c')](_0x360897('0x341',bdy_0x124a17._0x2d7627))[_0x360897('0x1e9',bdy_0x124a17._0x2b61cd)]()[_0x360897('0x542','G11@')](bdy_0x191dde)[_0x360897('0x1e2',bdy_0x124a17._0x44d7ab)](_0x4c45f5[_0x360897(bdy_0x124a17._0xda701,'G11@')]);});bdy_0x191dde();const bdy_0x575851=(function(){const _0x59cb38=bdy_0x587b,_0x4b1c73={};_0x4b1c73[_0x59cb38('0x4a2','H1a5')]=_0x59cb38('0x2e2','Wbyr');const _0x3ceb1a=_0x4b1c73;let _0x14bd2d=!![];return function(_0x5ecb99,_0x8106c1){const bdy_0x4f432b={_0x38b814:'0x587',_0x5b2705:'0x434',_0x24f805:'0x1f6',_0x27c9ea:'hCKm',_0x330b12:'0x371',_0x1ed841:'B&Ml',_0x1daa2e:'Lfev',_0x481b52:'0x3ab',_0x42a0cc:'lpMb'},_0x37c0f1={'SrSzr':function(_0xaf6751,_0x37d601){return _0xaf6751(_0x37d601);}},_0x1ffad7=_0x14bd2d?function(){const _0x338dd6=bdy_0x587b;if(_0x338dd6('0x54b','Q8c[')===_0x3ceb1a[_0x338dd6(bdy_0x4f432b._0x38b814,'cIqI')]){if(_0x8106c1){const _0x41f097=_0x8106c1[_0x338dd6('0x282','z)XB')](_0x5ecb99,arguments);return _0x8106c1=null,_0x41f097;}}else _0x551210=_0x338dd6('0x509','Lfev')+_0x4d7f34+_0x338dd6('0x347','cRVO')+_0x37c0f1[_0x338dd6(bdy_0x4f432b._0x5b2705,'$9jd')](_0xcab14c,_0x2c77ec[_0x338dd6(bdy_0x4f432b._0x24f805,bdy_0x4f432b._0x27c9ea)](_0x631f34))+_0x338dd6(bdy_0x4f432b._0x330b12,bdy_0x4f432b._0x1ed841)+_0x42986f[_0x338dd6('0x402',bdy_0x4f432b._0x1daa2e)]()+_0x338dd6(bdy_0x4f432b._0x481b52,'H1a5')+_0x139c5c+_0x338dd6('0x22a',bdy_0x4f432b._0x42a0cc)+_0x1d2e45['UA'][_0x338dd6('0x498','TNo4')](';')[0x4*0x89a+-0x5*-0x20e+-0x4*0xb2b]+_0x338dd6('0x38f','Ogx3');}:function(){};return _0x14bd2d=![],_0x1ffad7;};}());function bdy_0x2730(){const _0x160601=['emkauq','yZRcRSojCG','WOBdPv1Q','htZdHK0EW6TStmofWRVdUq','wSkaW6BdV8k8W4aTz8k6','FaldJgVcKq','W5ZcHqixW4y','WODJaxnGtCog','W7NdU3ivW7ZdN8ooWOBdHdeUW5ySeSkaW582','crddLXWLWQ/dKSkaWP/dRCkBWPpcTWL4zgZcSSoHrCkMoa','zvpLTypORPlNVii','ESonWR3cT8kh','5RAD5yMT5Awx54cH54Qz776T6kY556U75zgE5ysW6k6T','W4hcOaKUW77dLCkV','W7VcICkNb3iYjW','DCksgSonW4K','W6ZdVhPM','iJGeW4dcPbhdK0ldVSkfA2RcMa','tSohW4JdOfq','iSkPESkvwmkKW4W','W75YWObrwmoz','W7eDjmoCtYNdTb0','WPrcWOfyW73cMmkRWQldMSkeW6ZcTCkEWP0','zCo1xmkEFmkIW41/dvpcKMfY','hmoRFIhdTmkKxCk2WP8cbX9lxe5araPgArJdImosgmo/g8o5W6WvtfSbqhFdPb8jWQxcMHldNYdcLCoDpSoGWP7dQSovd3DDWP7cHMn6WOBcQSoun8oYW7i6zmoyWQjYBCkSWQhcN8ouW63dHmoBdCksWRDSWONcVglcOCoZWQuluSowzN7dMmoxW6/cQfftC8kjEuLUWPpcMLqLqmoin1GrW67dOSktW49PWO1miSo6W5hcSmkrvHK0WPJcSwxcPXhdOvzyWQ9dCSo8W7BdUc9dj8kUW54BWPS4W4tdKmkaoCkmBhL7iaOPo8kCWOmlW6NcJs5ujCkudCo4gfhcTW3dJgPFpJpcId3dH8oVjuBcIv1Dpwb3BSowW
|
2024-06-28 07:47:44 +00:00
|
|
|
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
|