jdpro/jd_dplhbshop.js

5 lines
136 KiB
JavaScript
Raw Normal View History

2024-06-28 07:47:44 +00:00
const $ = new Env("大牌浏览店铺");
2024-07-06 15:09:41 +00:00
var _0xodv='jsjiami.com.v7';const _0x2ab18b=_0x338c;function _0x4a75(){const _0x5ea418=(function(){return[...[_0xodv,'SBHjfsEXxjdiBxaPmkFitp.FcopTmld.vQ7OAkCW==','W71fgSk/bJFcJmkY','mWrPW6nk','vConumoWW4KuWQ8DFshcJSkUWPiFcG','WQpcNhW/WR8Rpq','W5tcISkPqwq','kqPhW79O','WRRcII7dTG','iSklcwZcSdldGmoCW7zO','wILyoSoY','w8kEW5CVnsddQ8oYWRu','oSkcgh/cVq','WOv9W4JdMSk+C8kzWQ/dJG','oeDBmCos','Duiwm8kX','fCoRFIye','h8orW5dcMG','ca4Xjmk4','WOpcQv/cQCoMxHy','kCoGdG','W6i0W6BdJWFdVcT1WO0lb3tcNhNdKCkZEbVcGu8vWP3cNahdTSoJW5dcKthdImo+cGq','CgFdObxcHq','imoZWOpcNa8','rcFcS8kOtmo4fNtcShxcQ20mACoskcdcL8kwmSoYW6G','iCorW4/cUSoeW43cLa','WO8RWQVcOCobecNdNXxdUdFcRmoNW5i','jSkec2BcRa','W6OLW6FdHmkQW7BdRYjoWPy5WRzdadncWOz0s8oyWQmxWP99WO4','5yYs6ios5Rsp6kAl6l+lW6C6W68N5Roo5Rob5O6N5lMi5PAN6zw55yEl6k2X6k62','hSoDW4FcMmomW43cMG','WOTklIDPWRuwW7X1c8k7WQqpna','WOJdKSodW4hdRW','WRrlW7WQcCkMgq','WQPEW7BcG8kjrSkqWRFdQSo9WOdcQG','WRbTW5hdHSk5','C8oADmk1W4yb','b8oJBtSj','dLf/q8kQ','omo/vGpdOwy','WRX9W5i','W7b1WRhdM8osWQxdMW','W7JcQWRcPCkc','wXjrlmo3bq','W5/dTrRdQCkWauBdOSoIvYqgcG','WPrbncz+WQiMW6L0pCkaWQKhhCoKnCoq','DMFdOWpcHXOgWPT3W48','mZnEW7PT','W6nJWR7dJCozWOe','gCowW5pcKColW4FcKsdcQW','hdBdTSkHfW','WOPOoLRcUW','ymoqC8kDW6y','lSo8nXfVDW','W7pdPH0cfmoaqCkb','ySkJW47dRvG','ybWpE8kl','xCkmW4i5mbRdQW','cCoEerPp','iw9jw8kz','WRj9WRFdMqpdQq','CbTFamoI','W67dV8ogbK9Nja','ELdcNmooW6lcQCoN','WPqaWRWuW6XaeW','Bg8UeCkQ','f1FdVSoJv8kmBuqy','c21Bx8kAsSk2a3ldRt92WQiZW7C','fYJdO8k7h8oH','rf7dN8kZkd/dKI3dJCoH','W43cKmkWxNW','shWdkCkq','W5tcV8kdDve','W7pdLSoxdem','gJ7dTa','W7ePW7hcMvNdVcr0WQaxBG','WOZdQepcUmoUtmk/','buzpA8kv','W53dUCoLb0q','BCkQW70','AMFdIrFcOrWKWPrMW44','WO9XW4/dGCkK','Eh3dIGFcRH02WO4','WO7cPaNdGW','u8owCG','lb8Nc8ku','WRddMZtcUthcJmkUW4/dHgZcIxNcLa','B+w+IUwNH3vCWRvg','WRRdImoxW5RdKmkJtq','W5XRWQJdP8oFWO/dLa','eSoRzse','dZ4ZoSkv','j8kkga','WOFdVaxcTca','WRJdMIe','W5hcGSoHDfe','mfXlpmopDtuQgCoh','WP1oeuFcHq','lGGJiCkXW4DT','WQGuxmoN','5lIE5RAv5yQB','W6VcTSkf','bmkPdN/cGW','WQr9W53dVCkJvSkE','AGufgSo6wW0HhW','mhddGvZcHayQWPrXWOrUW7NdK8krW7bkbINdRqJdSmowl8krE1zlWOxcICoYpSkAW7BdSSoQfmk4BSo+aYhdMmkXuSoiACo+WOxdHH9kWPFdTGZdTq','WQ0wxmopw0RdKSoWWRu','W7ZdP2nJW4O','dq4XbSk+W4fOWOS','WR4qw8oZu3i','hSkGW67cVSoT','WQ4QW6BdVSoOW77dRqHzWOe','5RAY5yIY5AAy54cj54IO77YF6k6Y56Md5zg85ywC6kYp','WOxdIMlcTCo3','WQlcJhi9WQGZ','k1DqnmojEW','W7C6WRrZW4u','WPTkW4iuaG','W6JcSmoNyxS','W7XJWQtdISoE','WONcQvJcImoMvXFdTCoEFtiV','WR9gW6VdISkF','W7qYWPXuW5jes3tdJ2xcGSknW4ldT0jp','cqruW71HWRFdGa','W4/dK21dW7tcTq0MuNRdJCk/W6xcI8oZnZW','WQWGW4hdNmkN','W6xcVmoytgy','lSorFSkBW4yfiCkOW5SWbZVdV8kUBbFcG1FcGGhcIKLQWRO','vSkwWQxdKCoV','hbTnW6eSW7tdGxJdGamSWRpdVSocW6euWPe','a1jNzmk0','mSkwj0hcKW','xvJdMmkHlqddKWFdLSoMWPxdVmoTBJm','WQlcJgWPWRyS','bchdICkBlG','gaaahCko','W4BdOqm+dq','W7/dI1jJW6O','FgBdLqpcLHTOWPb2','gmo6WQFcOHe','W57cJSkZwxe','WRrxWQ3dGGG','WQyaWQu0W6m','xf7dJa','vLddH8kHiq','bmorW57cKSoK','m8oGkGP5E8oBiq','W4xdUHCnpSonASkRdmoq','aSkVW6NcNSoG','W6iBWQ5FW4e','W6xdTCov','dNbCxmkah8o3B3tdTIrPWQiZW6JdUJpdTXKYWOxcJs4wWPalkmo+','vSkgW5VdSh4','leldKCoqCq','n8odoG94','5AYF54I86k+I5OIy5yQ/5Agp5zYX5z6/772/','WQeUWRWBW4O','fauyjmk2','W63dU8ogaW','fdxdTmkXcCoHxxZdSuddThDs','hKhdRmoqv8k8v1upxq','umopr8o0','umoPAmkqW5G','W7pdKmoffgq','W6j2WQldGmoyWOS','WOqAFSoVtW','WORdHLxcNSo9','W5tdQayi','W4rPWRldGSoB','k8ozaqHB','EfVcJmodW77cRSo7WRrjW4pdHuFdSCohEMjBymkImW','W7VdV8oFa0D9fseBWR/cRG','WOv8WPddRXu','W43dGmorE3VcPSoCFNldGsFcLG','h2jmo8ou','WP9XW4VdL8kVr8k2WQ/dM8oTWOxdV8o+ya','W43cMmktvf4','e3jMr8kH','w8ofDCo5W5Sa','WOrAaXRcUCoc','WP/cIsetWRldOKzM','iSoydJH+','lqy5','WP1HagJcLa','WRjkW7vqcSkIeSoJmCowBHpdHG7dTIpdQSoYWRpdJSkO','AmkpWPNdISoB','tCouESoAW68','WOBcQ2pcM8oT','WRRcHNyYWOW9icJdPab7W4S','W4NcSSokAf0','W6ZdM8oEjMi','WPVcVNNcNmoW','AmkbWRJdR8oi','WRPxn2JcJW','k8o5rHpdVMf+WPb9ACkStGTgW6q','W6BdNcDSWR5PDYJcSuvxWPFdUCoRBejuW4xcNd43W71CzSknaGBdNInypGS','bSk9c3xcTq','smkiW5G5pGm','WQRcHZ7dR24','W5/dGSotANRcHSok','n2RdNSoWDq','W4xcK8koA38','WPTdlYX+','W4pdHbSHda','BvVcI8o3W6FcRG','WO7cQdxdV3a','WOP1eYTT','wmkEW5CPnbW','cCoJWPZcUWS','W5hdVHmBgCo2BSkRc8o5n3S','xEAuQ+ApRUw/LUw5GW','omkqhxBcScxdP8oBW
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