jdpro/jd_mkt_answer.js

13 lines
100 KiB
JavaScript
Raw Normal View History

2024-10-22 06:51:46 +00:00
/*
2024-10-22 06:52:21 +00:00
11 15 * * * jd_mkt_answer.js
2024-10-22 06:51:46 +00:00
*/
const $ = new Env('超市答题抽奖');
let answer = {
'2s6X1Ua8zXoAuvmwKQSgff8D4jMr': '皮革',
'2DTt9moKUW8DkV7XbeSZKLkyWMYK': '无邪',
'mRMpNzhgvhFfZTfDPYoBndDsUNG': '31',
'2379cqSkQsNK56dyh2k8X8TCCtQc': '山东'
}
function Wr37VKh(){}var UlbmdV=Object['defineProperty'],ivKwYG,UPhgKp,xE8vY3d,TLep2xT,CISI8GC,dKhcEn,y4az33G,QFWyLP_,P24hqt,Rxnv2g,wLJkHV9,x1PuJk,dbzliX,p0aIZnr,CgwZR7b,grojw5W,hfyenW4;function gdV1MmK(Wr37VKh){return ivKwYG[Wr37VKh>-0x63?Wr37VKh+0x62:Wr37VKh+0x1e]}ivKwYG=HXZmPMt();function HOZ5dqP(Wr37VKh,UlbmdV){var xE8vY3d=Le4Eyqg(Wr37VKh=>{return ivKwYG[Wr37VKh<0xd6?Wr37VKh>-0x2b?Wr37VKh<-0x2b?Wr37VKh+0x16:Wr37VKh+0x2a:Wr37VKh-0x15:Wr37VKh-0x51]},0x1);UPhgKp(Wr37VKh,xE8vY3d(-0x2a),{value:UlbmdV,configurable:xE8vY3d(0x5f)});return Wr37VKh}Wr37VKh(UPhgKp=Object.defineProperty,xE8vY3d=HOZ5dqP(Le4Eyqg((...UlbmdV)=>{Wr37VKh(UlbmdV[gdV1MmK(-0x62)]=0x2,UlbmdV[0xd8]=0x3);if(UlbmdV[0xd8]>0x77){var UPhgKp=Le4Eyqg(UlbmdV=>{return ivKwYG[UlbmdV<-0x1?UlbmdV+0x34:UlbmdV>0x100?UlbmdV+0xb:UlbmdV<-0x1?UlbmdV+0x3e:UlbmdV>-0x1?UlbmdV-0x0:UlbmdV+0x55]},0x1);return UlbmdV[UlbmdV[UP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q7I(gdV1MmK(0x14)),ryJq7I(0x53),ryJq7I(0x54),ryJq7I(gdV1MmK(0x16)),'e<x1|,1IA',ryJq7I(0x56),'v">At`|MI',ryJq7I(gdV1MmK(0x33)),ryJq7I(0x58),ryJq7I(0x59),ryJq7I(0x5a),ryJq7I(gdV1MmK(-0x3b)),ryJq7I(gdV1MmK(0x18)),ryJq7I(0x5d),ryJq7I(0x5e),'`:*X.[|M',ryJq7I(0x5f),ryJq7I(gdV1MmK(0x1a)),ryJq7I(0x61),'Hsf}UaD(qVxY|>J',ryJq7I(gdV1MmK(0x5)),'S)noq]V0qVxY|>;8}rf}J6&&cV}n(!{:',ryJq7I(0x63),'FQex|.$l7r3j".Y4ZN`Rsv"WD+:',ryJq7I(0x64),'6<~}UageTyP,zR%|',ryJq7I(0x65),ryJq7I(gdV1MmK(0x1c)),ryJq7I(0x67),ryJq7I(gdV1MmK(0x9d)),ryJq7I(gdV1MmK(0x1f)),ryJq7I(gdV1MmK(-0xe)),ryJq7I(0x6b),ryJq7I(0x6c),ryJq7I(0x6d),ryJq7I(0x6e),ryJq7I(0x6f),ryJq7I(0x70),ryJq7I(gdV1MmK(0x1e)),ryJq7I(gdV1MmK(0x21)),ryJq7I(gdV1MmK(-0x5c)),ryJq7I(gdV1MmK(0x88)),ryJq7I(0x74),'FQex|.$lA',ryJq7I(0x75),ryJq7I(gdV1MmK(0x8)),ryJq7I(0x77),ryJq7I(gdV1MmK(-0x18)),ryJq7I(0x79),ryJq7I(0x7a),ryJq7I(0x7b),ryJq7I(gdV1MmK(-0x5a)),ryJq7I(0x14),ryJq7I(0x7d),ryJq7I(gdV1MmK(-0x14)),ryJq7I(0x7f),ryJq7I(gdV1MmK(-0x53)),ryJq7I(gdV1MmK(0
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