faker3/jd_OnceApply.js

8 lines
78 KiB
JavaScript
Raw Permalink Normal View History

2024-06-28 15:38:28 +08:00
/*
价格保护
55 11 * * * jd_OnceApply.js
*/
const $ = new Env('一键价保');
const 我尼玛_0x4d8c11=我尼玛_0x4808;(function(_0x2d4253,_0x1b6387){const 我尼玛_0x2a5420={_0x49d7da:0x227,_0x36a4a2:'W7gm',_0x3f1eed:0x2d7,_0x1c4e0d:'pw%e',_0x8ccc4f:0x1e5,_0x11062b:'@%h5',_0x2c8705:0x295,_0x1b2dbb:'q8rz',_0x2bf10a:0x2f8,_0x2518c7:'gXKb',_0x4aa782:0x248,_0x367529:'l6N2',_0x145604:0x1e8,_0x174018:')600',_0x2ff106:0x1a4,_0x4a1c35:'o9hv',_0x4bb715:0x15c,_0x4c4b49:'d)mx',_0x4e4d72:0x2d0,_0x375374:'K&(Y',_0x5b91e2:0x18e,_0x5a42c3:'Vz]c'},_0x55d85d=我尼玛_0x4808,_0x5c34fc=_0x2d4253();while(!![]){try{const _0x54af5e=parseInt(_0x55d85d(我尼玛_0x2a5420._0x49d7da,我尼玛_0x2a5420._0x36a4a2))/(-0x78d*-0x1+0x1782+-0x1f0e)*(-parseInt(_0x55d85d(我尼玛_0x2a5420._0x3f1eed,我尼玛_0x2a5420._0x1c4e0d))/(0x266e+-0x2*0x1025+-0x311*0x2))+-parseInt(_0x55d85d(我尼玛_0x2a5420._0x8ccc4f,我尼玛_0x2a5420._0x11062b))/(-0x1caa+-0x24b9+0x4166)*(-parseInt(_0x55d85d(我尼玛_0x2a5420._0x2c8705,我尼玛_0x2a5420._0x1b2dbb))/(-0xe93*-0x2+-0x2*0xd13+-0x2fc))+-parseInt(_0x55d85d(我尼玛_0x2a5420._0x2bf10a,我尼玛_0x2a5420._0x2518c7))/(-0x7bb*0x3+-0x1add+0x3213*0x1)+parseInt(_0x55d85d(我尼玛_0x2a5420._0x4aa782,我尼玛_0x2a5420._0x367529))/(-0x13*-0x1a+0x269e+-0x7*0x5ca)+-parseInt(_0x55d85d(我尼玛_0x2a5420._0x145604,我尼玛_0x2a5420._0x174018))/(-0x81a+-0x2*-0x530+-0x23f)+-parseInt(_0x55d85d(我尼玛_0x2a5420._0x2ff106,我尼玛_0x2a5420._0x4a1c35))/(0x586*-0x6+0x83f+0x18ed)*(-parseInt(_0x55d85d(我尼玛_0x2a5420._0x4bb715,我尼玛_0x2a5420._0x4c4b49))/(0x2653*-0x1+0x24e4+0x178))+parseInt(_0x55d85d(我尼玛_0x2a5420._0x4e4d72,我尼玛_0x2a5420._0x375374))/(0x3*-0xc8b+-0x244f+-0x24fd*-0x2)*(-parseInt(_0x55d85d(我尼玛_0x2a5420._0x5b91e2,我尼玛_0x2a5420._0x5a42c3))/(-0x1*-0x16b9+-0x57+-0x13*0x12d));if(_0x54af5e===_0x1b6387)break;else _0x5c34fc['push'](_0x5c34fc['shift']());}catch(_0x5b013a){_0x5c34fc['push'](_0x5c34fc['shift']());}}}(我尼玛_0x44c9,-0x11c2a+-0x949*0x94+0xdb8ff));const 我尼玛_0x4e93d9=$[我尼玛_0x4d8c11(0x19b,'o&tm')]()?require(我尼玛_0x4d8c11(0x1b1,'N[Et')):'',我尼玛_0x1843ab=$[我尼玛_0x4d8c11(0x15d,'*Zf@')]()?require(我尼玛_0x4d8c11(0x20b,'iPu)')):'',我尼玛_0xac1eba=$[我尼玛_0x4d8c11(0x2f3,'5@3h')]()?require(我尼玛_0x4d8c11(0x1de,'yhai')):'',我尼玛_0x27207a=require(我尼玛_0x4d8c11(0x25d,'H*tO')),我尼玛_0x297ad9=require(我尼玛_0x4d8c11(0x18b,'iH3x'));let 我尼玛_0x435d38=[],我尼玛_0x3d9552='',我尼玛_0x51433d,我尼玛_0x56bc8e='';function 我尼玛_0x4808(_0x4ade62,_0x1de33f){const _0x560ebb=我尼玛_0x44c9();return 我尼玛_0x4808=function(_0x2ddfea,_0x402e61){_0x2ddfea=_0x2ddfea-(-0x2253+0x153*0x1+-0x4e5*-0x7);let _0x3b008e=_0x560ebb[_0x2ddfea];if(我尼玛_0x4808['drzvzO']===undefined){var _0x867c40=function(_0x14cf09){const _0x462d51='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x359de7='',_0x182c95='',_0x570f37=_0x359de7+_0x867c40;for(let _0x4eb294=0x2*0xcb5+0x1149+-0x2ab3,_0x78e73c,_0xe832b3,_0x5b0d90=-0x3*-0xbc7+-0x2079+0x3d*-0xc;_0xe832b3=_0x14cf09['charAt'](_0x5b0d90++);~_0xe832b3&&(_0x78e73c=_0x4eb294%(-0x26e+-0x1b85+0x1df7)?_0x78e73c*(-0x1*-0xd5b+0x7*-0x4e1+0x3*0x704)+_0xe832b3:_0xe832b3,_0x4eb294++%(0x16*-0x1ba+0xdb4+0x1*0x184c))?_0x359de7+=_0x570f37['charCodeAt'](_0x5b0d90+(-0x11b*0xd+0x1*-0x1031+0x1e9a))-(0x1453*0x1+0x55+-0x149e)!==0x1c63+0x11*0xcf+-0x2a22?String['fromCharCode'](-0x17cd+-0x18ac+0x8*0x62f&_0x78e73c>>(-(-0x3f+0x12c3+-0x1282)*_0x4eb294&0x1038+-0xb*-0x265+-0x2a89)):_0x4eb294:-0x14b*0x1+-0xdba+0x5*0x301){_0xe832b3=_0x462d51['indexOf'](_0xe832b3);}for(let _0x238b3c=0x1ee9*-0x1+0x13*0xfc+0xc35*0x1,_0x42b1e6=_0x359de7['length'];_0x238b3c<_0x42b1e6;_0x238b3c++){_0x182c95+='%'+('00'+_0x359de7['charCodeAt'](_0x238b3c)['toString'](0x24bb+0x5*-0x2c1+-0x16e6))['slice'](-(-0x1a00+0x949*0x3+-0xb*0x2b));}return decodeURIComponent(_0x182c95);};const _0x1e164b=function(_0x5da203,_0x935c79){let _0x1d0114=[],_0x2a6bfc=-0xfc8+-0x1108+0x20d0,_0x26bffc,_0x5adff0='';_0x5da203=_0x867c40(_0x5da203);let _0x5889f5;for(_0x5889f5=0x11c*0x3+-0x4ab*-0x1+0x59*-0x17;_0x5889f5<0x13*0x30+0x1348+-0xc*0x
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