mirror of https://github.com/6dylan6/jdpro.git
7 lines
166 KiB
JavaScript
7 lines
166 KiB
JavaScript
|
/*
|
||
|
1 6 29 2 * jd_wyw_dka.js
|
||
|
*/
|
||
|
|
||
|
const $ = new Env('玩一玩_下单打卡全额返');
|
||
|
const bdy_0xf419b7=bdy_0x4408;(function(_0x1774ef,_0x906e8a){const bdy_0x4bb6bf={_0xb3651f:'0x189',_0x477853:'4&ux',_0x4f2fab:'0x3e7',_0x585dbc:'z!NH',_0x5a384e:'0x47b',_0x3ab6e1:'z!NH',_0x5446:'0x424',_0x22270f:'JhQc',_0x436cd9:'0x4a1',_0x366f1c:'POby',_0x2d47ac:'0x295',_0x25e125:'[J[x',_0x34370b:'0x2f2',_0x23b209:'ij!6',_0x3b7874:'0x45b',_0x46478f:'uw%T',_0x226632:'0x545',_0xc9cb41:'n7w5',_0x1e8655:'0x1f7',_0xea3138:'$gLD',_0x13e5b8:'0x21f',_0x21f40c:')ncO'},_0x19acbb=bdy_0x4408,_0x2e0663=_0x1774ef();while(!![]){try{const _0x537ff0=parseInt(_0x19acbb(bdy_0x4bb6bf._0xb3651f,bdy_0x4bb6bf._0x477853))/(-0x1369*-0x1+-0x1*0x1f1a+0x3*0x3e6)+-parseInt(_0x19acbb(bdy_0x4bb6bf._0x4f2fab,bdy_0x4bb6bf._0x585dbc))/(-0x19*0x6d+-0x1c2*-0x16+-0x1c05)*(parseInt(_0x19acbb(bdy_0x4bb6bf._0x5a384e,bdy_0x4bb6bf._0x3ab6e1))/(0x2b*0xd1+0x1*-0x602+-0x33*0x92))+-parseInt(_0x19acbb(bdy_0x4bb6bf._0x5446,bdy_0x4bb6bf._0x22270f))/(-0x1f07+-0x1*-0x2149+-0x23e)*(-parseInt(_0x19acbb(bdy_0x4bb6bf._0x436cd9,bdy_0x4bb6bf._0x366f1c))/(0x11*-0x55+0x188f+-0x12e5))+parseInt(_0x19acbb(bdy_0x4bb6bf._0x2d47ac,bdy_0x4bb6bf._0x25e125))/(-0xa72*0x2+-0x2193+0x367d)+parseInt(_0x19acbb(bdy_0x4bb6bf._0x34370b,bdy_0x4bb6bf._0x23b209))/(0x2*-0xeed+-0x1c4+-0x1fa5*-0x1)*(-parseInt(_0x19acbb(bdy_0x4bb6bf._0x3b7874,bdy_0x4bb6bf._0x46478f))/(0xa9f+-0x19b+0x2*-0x47e))+parseInt(_0x19acbb(bdy_0x4bb6bf._0x226632,bdy_0x4bb6bf._0xc9cb41))/(0x1453+-0x3+0x1d*-0xb3)+-parseInt(_0x19acbb(bdy_0x4bb6bf._0x1e8655,bdy_0x4bb6bf._0xea3138))/(-0xa52+0x24e0+-0x1a84)*(parseInt(_0x19acbb(bdy_0x4bb6bf._0x13e5b8,bdy_0x4bb6bf._0x21f40c))/(0xcaf*-0x3+0x2c5*0x9+0xd2b));if(_0x537ff0===_0x906e8a)break;else _0x2e0663['push'](_0x2e0663['shift']());}catch(_0x55ba44){_0x2e0663['push'](_0x2e0663['shift']());}}}(bdy_0x4778,0x2b4*-0x2cc+-0x454*-0x46d+-0x2*0xd23d));const bdy_0x4f5f71=$[bdy_0xf419b7('0x2ec','ij!6')]()?require(bdy_0xf419b7('0x42f','R6jT')):'',bdy_0x3bd83f=$[bdy_0xf419b7('0x378','yYzZ')]()?require(bdy_0xf419b7('0x4b3','JhQc')):'',bdy_0x59cda4=require(bdy_0xf419b7('0x4a7','[J[x')),bdy_0x32b2eb=require(bdy_0xf419b7('0x41d','jm$g')),bdy_0x512faf=process[bdy_0xf419b7('0x363','S1vQ')][bdy_0xf419b7('0x123','%*kU')]?process[bdy_0xf419b7('0x428','rv76')][bdy_0xf419b7('0x493','XRPZ')]:'10';let bdy_0x497245=bdy_0xf419b7('0x20e','4m1B');const bdy_0x5386e2=process[bdy_0xf419b7('0x3e5','0#kw')][bdy_0xf419b7('0x2db','0#kw')]?process[bdy_0xf419b7('0xf1','TMtx')][bdy_0xf419b7('0x46a','rv76')]:'5';let bdy_0x28ccb1=[],bdy_0x4b3d98='',bdy_0x416091=-0x2*0xe43+0x24bb*0x1+-0x835,bdy_0xe8cee9={},bdy_0xcdb3bb='';if(process[bdy_0xf419b7('0x481','ij!6')][bdy_0xf419b7('0x355','B^Dh')])try{require(bdy_0xf419b7('0x534','4&ux')),bdy_0xe8cee9=require(bdy_0xf419b7('0x1cd','79m0')),$[bdy_0xf419b7('0x247','R6jT')]=bdy_0xe8cee9[bdy_0xf419b7('0x379','T9Wv')]($[bdy_0xf419b7('0x126','u0I2')][bdy_0xf419b7('0x307','97Dl')]($)),$[bdy_0xf419b7('0x41c','4m1B')]=bdy_0xe8cee9[bdy_0xf419b7('0x27e','S1vQ')]($[bdy_0xf419b7('0x2d6','0#kw')][bdy_0xf419b7('0x3d1','JhQc')]($));}catch{$[bdy_0xf419b7('0x2d2','S1vQ')](bdy_0xf419b7('0x377','W)aj')),$[bdy_0xf419b7('0x4e9','ZGD)')]=$[bdy_0xf419b7('0x331','T!HZ')],$[bdy_0xf419b7('0x3bb','Gt3n')]=$[bdy_0xf419b7('0x37e','wK^D')];}else $[bdy_0xf419b7('0x324',')ncO')]=$[bdy_0xf419b7('0x40e','n7w5')],$[bdy_0xf419b7('0x4e9','ZGD)')]=$[bdy_0xf419b7('0x3d5','rv76')];if($[bdy_0xf419b7('0x34b','HSsm')]()){var bdy_0x34c80e=new Buffer[(bdy_0xf419b7('0x117','jm$g'))](bdy_0xf419b7('0x43c','W)aj'),bdy_0xf419b7('0x1ac','dgPV'))[bdy_0xf419b7('0x27c','TMtx')](bdy_0xf419b7('0x13a','Tj8c'));Object[bdy_0xf419b7('0x312','Tj8c')](bdy_0x4f5f71)[bdy_0xf419b7('0x516','UBH$')](_0x5864ba=>{const bdy_0x54bdc8={_0x49ff67:'0x25c',_0x472625:'0#kw'},_0x3366eb=bdy_0xf419b7;bdy_0x28ccb1[_0x3366eb(bdy_0x54bdc8._0x49ff67,bdy_0x54bdc8._0x472625)](bdy_0x4f5f71[_0x5864ba]);});if(process[bdy_0xf419b7('0x30e','R6jT')][bdy_0xf419b7('0x110','T!HZ')]&&process[bdy_0xf419b7('0x2b6','97Dl')][bdy_0xf419b7('0x427','R6jT')]===bdy_0xf419b7('0x50f','uLac'))console[bdy_0xf419b7('0x47f','G&ws')]=()=>{};}else bdy_0x28ccb1=[$[bdy_0xf419b7('0x489','W08X')](bdy_
|
||
|
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
|