jdpro/jd_wyw_dka.js

7 lines
155 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
/*
1 6 29 2 * jd_wyw_dka.js
*/
const $ = new Env('玩一玩_下单打卡全额返');
2024-07-02 01:28:53 +00:00
const bdy_0x5686dd=bdy_0x5e70;(function(_0x551c20,_0x47cd0c){const bdy_0x13d622={_0x3fb7ba:'0x654',_0x44fc1e:'20I&',_0x4d9181:'Y2!J',_0x159f00:'Y@nA'},_0x2ad9f1=bdy_0x5e70,_0x59f359=_0x551c20();while(!![]){try{const _0xde960f=-parseInt(_0x2ad9f1(bdy_0x13d622._0x3fb7ba,'A0cy'))/(-0x95f*-0x2+-0x1*0x1bfe+0x941)+parseInt(_0x2ad9f1('0x790','oe)9'))/(0x9c2+-0x115a+-0x3cd*-0x2)*(parseInt(_0x2ad9f1('0x720','oe)9'))/(0x161*-0x6+0x200c+-0x17c3))+-parseInt(_0x2ad9f1('0x254',bdy_0x13d622._0x44fc1e))/(-0x1a37*0x1+-0x246c+0x3ea7)*(parseInt(_0x2ad9f1('0x79b','aG0m'))/(-0x1aa4+0xdbc+0x3*0x44f))+-parseInt(_0x2ad9f1('0x6cb',bdy_0x13d622._0x4d9181))/(-0x1119+-0x39*0x29+0x1a40)+parseInt(_0x2ad9f1('0x283','tj[y'))/(0xa*0x2ed+0xec4+-0x2bff)*(parseInt(_0x2ad9f1('0x5ec','gO()'))/(-0x23c2+0x2550+0xc3*-0x2))+parseInt(_0x2ad9f1('0x315','JhDZ'))/(0x1*-0x330+0x1ab4+0x1*-0x177b)*(parseInt(_0x2ad9f1('0x6df','6&Z7'))/(0x5*-0x6d4+-0x6*-0x306+0x100a))+parseInt(_0x2ad9f1('0x232',bdy_0x13d622._0x159f00))/(0x41a+-0x1*0x17b3+-0x1*-0x13a4);if(_0xde960f===_0x47cd0c)break;else _0x59f359['push'](_0x59f359['shift']());}catch(_0x1532fa){_0x59f359['push'](_0x59f359['shift']());}}}(bdy_0x122f,-0x7c01a+0x3b21a+0xd7e*0xa1));const bdy_0x374fdd=(function(){const bdy_0x21cc33={_0x38a403:'0x64c',_0x18f5ae:'Xxg8',_0x3d3ab7:'z5Tg'},bdy_0x260235={_0x1f9789:'A0cy',_0x26ffa7:'0x1e3'},_0x213747=bdy_0x5e70,_0x4cd483={};_0x4cd483[_0x213747('0x5c2','z5Tg')]=function(_0x185271,_0xb315b1){return _0x185271!==_0xb315b1;},_0x4cd483[_0x213747(bdy_0x21cc33._0x38a403,'YFKC')]=_0x213747('0x3cb',bdy_0x21cc33._0x18f5ae),_0x4cd483[_0x213747('0x42d','W82X')]=_0x213747('0x50c',bdy_0x21cc33._0x3d3ab7);const _0x4e55be=_0x4cd483;let _0x1b4641=!![];return function(_0x315c5a,_0x4ab1ea){const _0x515b78=bdy_0x5e70;if(_0x4e55be[_0x515b78('0x4a7','oe)9')](_0x4e55be[_0x515b78('0x5e8',bdy_0x260235._0x1f9789)],_0x4e55be[_0x515b78(bdy_0x260235._0x26ffa7,'MJ*N')])){const _0x370978=_0x1b4641?function(){const _0x55f21a=bdy_0x5e70;if(_0x4ab1ea){const _0x186779=_0x4ab1ea[_0x55f21a('0x54b','k8ro')](_0x315c5a,arguments);return _0x4ab1ea=null,_0x186779;}}:function(){};return _0x1b4641=![],_0x370978;}else _0x93728d(-0x23b8+0x43*0x2b+-0x1877*-0x1);};}()),bdy_0x5c1dd1=bdy_0x374fdd(this,function(){const bdy_0x95b31d={_0x1e6d90:'20I&',_0x272d14:'0x4c1',_0x438a63:'phSC',_0x47d814:'pg0P',_0x3435aa:'Y3IJ',_0x10cce4:'0x538',_0x5aaf96:'0x76f'},_0x425426=bdy_0x5e70,_0x1d3a9f={};_0x1d3a9f[_0x425426('0x65c',bdy_0x95b31d._0x1e6d90)]=_0x425426(bdy_0x95b31d._0x272d14,'emV6');const _0x381b63=_0x1d3a9f;return bdy_0x5c1dd1[_0x425426('0x56a','ZKn[')]()[_0x425426('0x675','8NaY')](_0x425426('0x29b',bdy_0x95b31d._0x438a63))[_0x425426('0x5b1',bdy_0x95b31d._0x47d814)]()[_0x425426('0x3a6',bdy_0x95b31d._0x3435aa)](bdy_0x5c1dd1)[_0x425426(bdy_0x95b31d._0x10cce4,'x#Vs')](_0x381b63[_0x425426(bdy_0x95b31d._0x5aaf96,'6&Z7')]);});bdy_0x5c1dd1();const bdy_0x2d5bd0=(function(){const bdy_0xde6db5={_0x5521d1:'55xg'},bdy_0x414fb8={_0x48c5a4:'HD7P',_0x303df4:'0x40c',_0x31fd8c:'0x3fd'},_0xe2b811=bdy_0x5e70,_0x2aab5d={};_0x2aab5d[_0xe2b811('0x50b',bdy_0xde6db5._0x5521d1)]=function(_0x45bd90,_0x4bd39c){return _0x45bd90!==_0x4bd39c;},_0x2aab5d[_0xe2b811('0x51b','k8ro')]=_0xe2b811('0x388','h]zT');const _0x1f26f7=_0x2aab5d;let _0x1c0572=!![];return function(_0x127f88,_0x238110){const _0x4def4c=_0x1c0572?function(){const _0x299057=bdy_0x5e70;if(_0x238110){if(_0x1f26f7[_0x299057('0x59f','6&Z7')](_0x299057('0x5fc','[Y1A'),_0x1f26f7[_0x299057('0x6bf',bdy_0x414fb8._0x48c5a4)])){const _0x1a3f2e=_0x238110[_0x299057(bdy_0x414fb8._0x303df4,'dGs9')](_0x127f88,arguments);return _0x238110=null,_0x1a3f2e;}else{const _0x3db225=_0x58f701[_0x299057(bdy_0x414fb8._0x31fd8c,'Y@nA')](_0xd45a3c,arguments);return _0x451f70=null,_0x3db225;}}}:function(){};return _0x1c0572=![],_0x4def4c;};}());(function(){const bdy_0xe995f9={_0x15aad9:'0x5d2',_0x21b3a8:'dGs9',_0x3b6faa:'0x651'},bdy_0x3cf04c={_0x2aa79a:'0x776',_0x1c54d9:'0x716'},_0x2a5f8c=bdy_0x5e70,_0x56ff90={'NjZXj':_0x2a5f8c('0x55f','b#ly'),'CYvvv':_0x2a5f8c(bdy_0xe995f9._0x15aad9,'I0Au'),'fWKUn':function(_0xc2cfbe,_0x2a5616){ret
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