jdpro/jd_mkt_answer.js

21 lines
95 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',
2024-10-23 00:47:37 +00:00
'2379cqSkQsNK56dyh2k8X8TCCtQc': '山东',
2024-10-24 00:51:46 +00:00
'3x1sfewGHioXovDkfzbTUQLyPMfi': '意大利',
'2SmfUt1bytSv6KetxHeKRoWJu2BN': '85',
2024-10-26 06:46:26 +00:00
'tZM8RyJummZ4Jmk5eiVnucRPk6K': '两',
2024-10-26 16:07:05 +00:00
'4Rr4eN29Z8Ve6LbAhrDTwjyzzRWW': '2',
'J6Qe4PAdZT831jwxg1affPQa71b': '白开水',
2024-10-29 15:16:38 +00:00
'3Cybd4G9jGKDdMpSSZrGrok786Ve':'榴莲',
2024-10-30 04:00:23 +00:00
'2au6DnZDNML3ZtmgPDkScjEw5dLh': '3000',
'NuDFVQVaM6kUGFt39mXXW19uB7L': '年轮'
2024-10-22 06:51:46 +00:00
}
2024-10-23 08:04:34 +00:00
function vgDa7RH(){}var iUfHWPY=Object['defineProperty'],RdgOGGt,xBZEXK6,AeGzKfV,e5mcCC,AGbRbw,pccbD26,nVBLAS,Cwys2wd,OuMvZe,nEhq7rY,NHO5mp,hVysv3S,stk51jx,SZqAYxO,FbZiZm5,Cdid4r,wfYCZX,GeMwRZ;function wSAdrV_(vgDa7RH){return RdgOGGt[vgDa7RH<0xf4?vgDa7RH<-0xf?vgDa7RH-0x27:vgDa7RH>0xf4?vgDa7RH-0x18:vgDa7RH<-0xf?vgDa7RH+0x6:vgDa7RH+0xe:vgDa7RH-0x21]}RdgOGGt=V9jfEG();function GPPf7vE(vgDa7RH,iUfHWPY){return xBZEXK6(vgDa7RH,wSAdrV_(0x4),{value:iUfHWPY,configurable:wSAdrV_(0xa7)})}vgDa7RH(xBZEXK6=Object.defineProperty,AeGzKfV=wnrhflO((vgDa7RH,iUfHWPY)=>{return iUfHWPY(vgDa7RH())},0x2)(tP0uONc,zE65wir));var ZZUK6P=[],h3cZ4X=[jVsqxTC(wSAdrV_(0x9)),jVsqxTC(wSAdrV_(0xb)),jVsqxTC(0x2),jVsqxTC(0x3),jVsqxTC(wSAdrV_(0xc)),jVsqxTC(wSAdrV_(0x11)),jVsqxTC(0x6),jVsqxTC(0x7),jVsqxTC(0x8),jVsqxTC(0x9),jVsqxTC(wSAdrV_(0x22)),jVsqxTC(0xb),jVsqxTC(wSAdrV_(-0xb)),jVsqxTC(0xd),'oxItMZ:E(Xq#WP^r@teTGL76<6RbsaU!"*LY,tBg{C_TNS9x|NO_0CTo&y3lgU*Ph4',jVsqxTC(0x7),jVsqxTC(0x9),jVsqxTC(0xb),jVsqxTC(0xc),jVsqxTC(wSAdrV_(0x20)),jVsqxTC(0xc),jVsqxTC(0x7),jVsqxTC(wSAdrV_(0x25)),jVsqxTC(0xf),jVsqxTC(0x10),jVsqxTC(0x11),jVsqxTC(wSAdrV_(0x27)),jVsqxTC(wSAdrV_(0x2c)),jVsqxTC(0x14),jVsqxTC(wSAdrV_(0x5)),jVsqxTC(0x16),jVsqxTC(wSAdrV_(0x1e)),jVsqxTC(wSAdrV_(0x16)),'U:|1?a<',jVsqxTC(0x19),jVsqxTC(0x1a),jVsqxTC(0x1b),jVsqxTC(0x1c),'S8v|',jVsqxTC(wSAdrV_(0xd0)),'4|k9',jVsqxTC(wSAdrV_(-0x1)),jVsqxTC(wSAdrV_(0x44)),jVsqxTC(0x20),'=|WZ7','I=fVOW5)qm%P,OaxV$J)qnk,71Z3V5ffYY%O/X$tRUYL|2jI;hm18A[&VUqXd1{&`lClJ}h"5{fk%}Cx*89f0?:P5F5B&B8E!jikEa,.9',jVsqxTC(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(0x4c)),jVsqxTC(wSAdrV_(0x4d)),jVsqxTC(0x50),jVsqxTC(wSAdrV_(0x48)),jVsqxTC(wSAdrV_(0x49)),'N|1IgN@JC',jVsqxTC(0x53),jVsqxTC(wSAdrV_(0x4f)),jVsqxTC(0x55),jVsqxTC(0x56),jVsqxTC(wSAdrV_(0x52)),jVsqxTC(wSAdrV_(0x2e)),jVsqxTC(0x59),jVsqxTC(0x5a),jVsqxTC(wSAdrV_(0x37)),jVsqxTC(0x5c),jVsqxTC(0x5d),jVsqxTC(0x5e),jVsqxTC(0x5f),jVsqxTC(0x60),jVsqxTC(wSAdrV_(0x5c)),'l|TV`',jVsqxTC(0x62),jVsqxTC(0x63),jVsqxTC(wSAdrV_(0x6b)),jVsqxTC(0x65),jVsqxTC(wSAdrV_(0x7a)),jVsqxTC(wSAdrV_(0x17)),'<h:I|[}JYr6AZToKJSsQRgp?',jVsqxTC(0x68),jVsqxTC(0x69),jVsqxTC(0x6a),jVsqxTC(wSAdrV_(0x53)),jVsqxTC(0x6c),jVsqxTC(wSAdrV_(0x6)),jVsqxTC(0x6e),jVsqxTC(wSAdrV_(0x35)),jVsqxTC(0x70),'`|p1Cdp=@Q','`|p1Cdp=','`|p1V5z=',jVsqxTC(wSAdrV_(0x71)),jVsqxTC(0x72),jVsqxTC(0x73),jVsqxTC(wSAdrV_(0x83)),jVsqxTC(0x75),jVsqxTC(0x76),jVsqxTC(0x77),jVsqxTC(wSAdrV_(0x80)),jVsqxTC(0x79),jVsqxTC(wSAdrV_(0x85)),jVsqxTC(0x7b),jVsqxTC(wSAdrV_(0x86)),jVsqxTC(wSAdrV_(0x87)),'`|p1V5o{@QDX4',jVsqxTC(wSAdrV_(0x72)),jVsqxTC(0x7f),jVsqxTC(0x80),jVsqxTC(0xd),jVsqxTC(wSAdrV_(-0x5)),jVsqxTC(0x82),jVsqxTC(0x83),jVsqxTC(wSAdrV_(0x12)),jVsqxTC(0x85),jVsqxTC(0x86),jVsqxTC(0x87),jVsqxTC(0x88),jVsqxTC(wSAdrV_(0x89)),jVsqxTC(0x8a),jVsqxTC(0x8b),jVsqxTC(0x8c),jVsqxTC(0x8d),jVsqxTC(0x8e),'C>JQ]jL_|q',jVsqxTC(wSAdrV_(-0x8)),jVsqxTC(0x90),jVsqxTC(0x8c),jVsqxTC(0x91),jVsqxTC(0x92),wSAdrV_(-0x7),jVsqxTC(0xd),jVsqxTC(0x93),jVsqxTC(0x3d),jVsqxTC(0x94),jVsqxTC(0x95),jVsqxTC(wSAdrV_(0xdc)),jVsqxTC(0xd),jVsqxTC(
2024-10-22 06:51:46 +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