2024-08-11 13:43:18 +00:00
|
|
|
/*
|
|
|
|
2 2 29 2 * jd_818phone.js
|
|
|
|
*/
|
|
|
|
|
|
|
|
const $ = new Env('818手机节');
|
2024-08-13 14:42:04 +00:00
|
|
|
var _0xodq='jsjiami.com.v7';const _0x65021e=_0x14b9;(function(_0x4fadda,_0x486dab,_0x671228,_0x3fae49,_0x1611a8,_0x430e15,_0x90eb3a){return _0x4fadda=_0x4fadda>>0x7,_0x430e15='hs',_0x90eb3a='hs',function(_0x391f1d,_0x2532a5,_0x10dc65,_0x1cbd46,_0x309657){const _0x1bac26=_0x14b9;_0x1cbd46='tfi',_0x430e15=_0x1cbd46+_0x430e15,_0x309657='up',_0x90eb3a+=_0x309657,_0x430e15=_0x10dc65(_0x430e15),_0x90eb3a=_0x10dc65(_0x90eb3a),_0x10dc65=0x0;const _0x273abc=_0x391f1d();while(!![]&&--_0x3fae49+_0x2532a5){try{_0x1cbd46=-parseInt(_0x1bac26(0x716,'j7e6'))/0x1*(parseInt(_0x1bac26(0x2e6,'CHgx'))/0x2)+-parseInt(_0x1bac26(0x1e8,'9tEY'))/0x3+parseInt(_0x1bac26(0x439,'oWuv'))/0x4*(parseInt(_0x1bac26(0x666,'0Y[e'))/0x5)+parseInt(_0x1bac26(0x4f3,'CHgx'))/0x6*(parseInt(_0x1bac26(0x2f2,'0Y[e'))/0x7)+-parseInt(_0x1bac26(0x5cb,'4Vf)'))/0x8*(parseInt(_0x1bac26(0x4c2,'I#dD'))/0x9)+parseInt(_0x1bac26(0x53c,'d&%x'))/0xa*(parseInt(_0x1bac26(0x2ca,'dN]I'))/0xb)+parseInt(_0x1bac26(0x59a,'4Vf)'))/0xc;}catch(_0xbf15f5){_0x1cbd46=_0x10dc65;}finally{_0x309657=_0x273abc[_0x430e15]();if(_0x4fadda<=_0x3fae49)_0x10dc65?_0x1611a8?_0x1cbd46=_0x309657:_0x1611a8=_0x309657:_0x10dc65=_0x309657;else{if(_0x10dc65==_0x1611a8['replace'](/[uqlgFUXRfMSyPkWDOBpTG=]/g,'')){if(_0x1cbd46===_0x2532a5){_0x273abc['un'+_0x430e15](_0x309657);break;}_0x273abc[_0x90eb3a](_0x309657);}}}}}(_0x671228,_0x486dab,function(_0x14ef40,_0x3df3a5,_0x422472,_0x402c3a,_0x49e07d,_0x230ed6,_0x2b0f2f){return _0x3df3a5='\x73\x70\x6c\x69\x74',_0x14ef40=arguments[0x0],_0x14ef40=_0x14ef40[_0x3df3a5](''),_0x422472=`\x72\x65\x76\x65\x72\x73\x65`,_0x14ef40=_0x14ef40[_0x422472]('\x76'),_0x402c3a=`\x6a\x6f\x69\x6e`,(0x17dfb8,_0x14ef40[_0x402c3a](''));});}(0x6100,0xe4119,_0x39db,0xc4),_0x39db)&&(_0xodq=0xc4);const _0x234f80=(function(){const _0x39c6a3=_0x14b9,_0x2a92fd={'blRdD':function(_0x1d9321,_0x2f8e59){return _0x1d9321===_0x2f8e59;},'QsbTR':_0x39c6a3(0x1ea,']20@'),'YXtUT':_0x39c6a3(0xa9,'AmF7')};let _0x17b610=!![];return function(_0x183141,_0x1cf4f4){const _0x10b2c8=_0x39c6a3;if(_0x2a92fd[_0x10b2c8(0x28f,'DYuL')](_0x2a92fd[_0x10b2c8(0x13f,'em%7')],_0x2a92fd[_0x10b2c8(0xd6,'&&B*')]))return;else{const _0x3fde51=_0x17b610?function(){const _0xe94eab=_0x10b2c8;if(_0x1cf4f4){const _0x42d76f=_0x1cf4f4[_0xe94eab(0x353,'naGX')](_0x183141,arguments);return _0x1cf4f4=null,_0x42d76f;}}:function(){};return _0x17b610=![],_0x3fde51;}};}()),_0x24bca9=_0x234f80(this,function(){const _0x354c45=_0x14b9,_0x2bfee9={'hKHFm':_0x354c45(0x6c2,'CHgx')};return _0x24bca9[_0x354c45(0xd9,'&&B*')]()[_0x354c45(0x3fc,'dN]I')](_0x2bfee9[_0x354c45(0xf6,'M&XV')])[_0x354c45(0x531,'1CQ*')]()[_0x354c45(0x3a3,'dN]I')](_0x24bca9)[_0x354c45(0x46b,'84wd')](_0x2bfee9[_0x354c45(0x379,'ljx]')]);});function _0x14b9(_0x159338,_0x558364){const _0x2a3baf=_0x39db();return _0x14b9=function(_0x3296ec,_0x60f40a){_0x3296ec=_0x3296ec-0x9f;let _0x39db34=_0x2a3baf[_0x3296ec];if(_0x14b9['smVtmW']===undefined){var _0x14b915=function(_0x1f9c5f){const _0x519bd3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x51b0f1='',_0x18a67d='',_0x3a1005=_0x51b0f1+_0x14b915;for(let _0x4fd5e6=0x0,_0x1b6404,_0x1af43d,_0x1cc0b6=0x0;_0x1af43d=_0x1f9c5f['charAt'](_0x1cc0b6++);~_0x1af43d&&(_0x1b6404=_0x4fd5e6%0x4?_0x1b6404*0x40+_0x1af43d:_0x1af43d,_0x4fd5e6++%0x4)?_0x51b0f1+=_0x3a1005['charCodeAt'](_0x1cc0b6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1b6404>>(-0x2*_0x4fd5e6&0x6)):_0x4fd5e6:0x0){_0x1af43d=_0x519bd3['indexOf'](_0x1af43d);}for(let _0x2767dd=0x0,_0x171c1b=_0x51b0f1['length'];_0x2767dd<_0x171c1b;_0x2767dd++){_0x18a67d+='%'+('00'+_0x51b0f1['charCodeAt'](_0x2767dd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18a67d);};const _0x5ee41b=function(_0x2093ae,_0x2777ef){let _0x594c57=[],_0x3a52de=0x0,_0x4dd347,_0x1d2084='';_0x2093ae=_0x14b915(_0x2093ae);let _0x1e944;for(_0x1e944=0x0;_0x1e944<0x100;_0x1e944++){_0x594c57[_0x1e944]=_0x1e944;}for(_0x1e944=0x0;_0x1e944<0x100;_0x1e944++){_0x3a52de=(_0x3a52de+_0x594c57[_0x1e944]+_0x2777ef['charCodeAt'](_0x1e944%_0x2777ef['length']))%0x100,_0x4dd347=_0x594c57[_0x1e944],_0x594c57[_0x1e944]
|
2024-08-11 13:43:18 +00:00
|
|
|
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
|