jdpro/jd_wyw_dka.js

7 lines
150 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-09-06 13:16:22 +00:00
const _0x3427=['tCope8kcuW','W6ZdSmoBd8o8','WO5nW51Y','WP3cHY4MWRFdLb8ylXy','W6npW4RcObK','WOpcMSojW69ktG','ifeNW7/dRCo0WRlcHmkBFa','WOeFW5lcGmkj','vZa5W7BcHubuW5hcTI4','W7fVWP3cKCo2','gXuHsmkxeIlcM0lcJG','WRpcP8kgW5a','WRZdKfCNpSk2W6KhsSoi','6zEG6Akv5y2t6AwS77YQW50WumkBWP4','W6rle8k1bCkTFa','WOxcGCk/xa','wSkioKyXy2/cRSkEW4q','ASonh08','y1CSWRJcHG','xrnwj8oE','pf5uo2i9ACoR','WR/cVqylWRG','W7ddKSkVEWG','WRJdP23cKwNcKq','W6hdPmoHWP1fAq','WPFdISk6BM8','pWuQW6ddIW','m1bafLWM','W4ZdUSoKk8otWOnkuYev','y2tdQmkczq','FxNdUmkfDq','Ae1vlmkz','WQ3cNbm3W5nUimoJW53dUq','W6rPW57cHdSWWRHlW4bH','W57dOmoWlmoYWP9cuWat','jtv0s8of','DGT3','s3riW6Ct','WQb9W4xdJmkQDqKGsmoV','yw/dTmkbu8ob','WOpcKY4NW7m','AmkRkquIqG','yZpcOW','WPVcJComW6vMACoTdCo/W4a','mCo+WP8cb8oGxG/cG8oj','W6/dV8kEudVdGmoPWP3cL8oi','EKv3W4q','W4Kcxq','WOxcJCoFW65h','WR3cKa4qWOi','WPikmhq','W51ZkCkVxmkjWQa','5BEQ5AEc5PwZ','zeLFW5W','W6XTWPhcIa','WQxcSSkGF1m','WQNdHmkstCoOEd4','W4hdRmo5jCoaWOu','55Us5lIt5lUB562f5yQe6i+w5yYz','W6hcSmo4WR8b','WP7cJ8ovW7bXxSogaSoRW4i','DWGaW5dcQh98W7S','FSkUcgJcMSkNwxbeW7i','W7zJW43cGXiSWOLxW7HR','WR7dU2dcK3JdKCk7W7K7W4m','BwldUSkb','W4xcMmoXWRq5tSoeW5G','A8oQWPTalti','5yA95OYC5OQ25yM877+G','pqeRW6BdGM8','6k285yI36zID5OwA5z6mzg92kCkj','ot7dVmkhuq','WOlcGs4','W6PrmCkzkG','oCoZWP8ei8oSwWpcR8oE','F3JdU8kwsCoJivBcMmke','nCoxWQzvW5OeWQm','W7JdUmoCWOy','kWeQW5RdGh0JW7pcICoO','WQldPMhcHe7cNSk3W78','hSoAWR8','js3dQSkmwCogza/dI8op','WRxdGmkpra','DmkgeM0','W7hdTmkCta','W4NcMmo2WOy','WRRcKayqW7T6kSokW6FdOW','amoZWOP/W7O','WPXsW75hW4S','BCoKWOr5','jxpdRG','FmkuxHy','bwnLW4NcGaz5W5lcKqG','xMSvWOZcUG','WQFdLx0Liq','uCkebwNcJ8kR','W7/dJ3RdISo/mCokW4pdQCoB','FqfK','W7RdKmoahCoWWQ9PyWi','W4ddRmoKmCovWOPc','iuOMW7pdSmolWRpcMCkMwW','FXzIbCoFoSoYWPHzqG','W4LOa8kI','FmoWWOr/','W5/cRmofbCoi','WOVdICkNsmoV','vvTnpSkFW64M','W7VcQCoGjSob','Fg1teSkb','iuiHW7e','FYXyhCoh','W6f/WQZcUmoV','n8osWQHoW5Ov','W4flmSkOqa','W6tMI5ZOOOZKU4/LIQ/LVOJLUQy','BmkssaKNax1D','W7XPW5W','W7xdPCkBxXm','WRBcTSkcW7Hs','W4tcS8olj8k7','WRdcQCo5t8oFBc/dTCoBnW','smo+a8kd','vKfE','W7PHWPFcICoQoq','W5bAAMVcTCk/zL5o','5RAW5yMG5AA454c+54QI77YQ6k+356Id5zgT5yw3','5BA+5OIR5y2z5A6j5OQb772z5yYS6Agq5AAd77Yr','W6FcP8o1','gHC9W6hdOhOHW5O','W5yexwqTCCkmWQ4','W7BdKgFdNmoo','BfbbW6GeW53dICoF','tSk2nae5ASoaurVcKa','utFcQwhdLaZcLq','ESkAqsSx','xZFcVuNdSGW','WOrVW4HiW5C','t8kLmG8','W7nbWP4sWOG','W4nqhmkkFa','W5VcISoA','W6n1WPhcJ8o8','W5/cL8oze8kL','W6xdGwBdLSotpSoiW4xdL8oq','dNHezSoE','WPJcMSolW7TnrCo2cSo/W5a','WQhcO8ka','W63cOCo8nmoisNK','W7vBn8k7dmkJDW','iWS/','x0GoqCks','W7FOJBhLJktMI6lLJzFKVk/MGjpLPOVOT4FVVyC','i8oQWOiB','iGzcWPVcTmopCCokWOnc','hIfbtSoC','W4mcse8QC8kn','54YD6ysO8l+XL++5GG','jXaSW6pdNty8W43cJ8oJ','r8kyieejDa','WRtdKCkprmoKEt5gW4HB','DcS5W53cIW','jUACHow4JEwUVbK','xGjXe8of','imoVWOqpbmoQxJJcQ8oa','W4BMN6JLUztLRyq2','f3KzW5RdVa','WO7dQCkOuCoB','eSoMWPHRW6yUWPDc','qgSRWOBcQCoqWRq','WOOsW4FcHa','fxngzSouy8ky','WR7cTCk+W55rWQCs','DmkCxa','FxNdRmknxSoslulcKG','WRdcQSkZW4jU','W4VdMCkWxr4','t8oWgCkd','aYH6A8oI','WOGKmftcIG','pmoYWOW','WOFcJbeOW7S','W6lcPSoXoCorqMv9','ANKSWRBcRa','W6RdOSoCWPTpAq1tW7L8','vrunEqr+mow+N+wMKUodUG','BJu6W6JcRW','WPWoeg/cMa','WO0QW77cUCkS','AvXuW7ulW5pdJG','w8k8gKCQ','W6pcO8o/eSk0','W588WOVcHmofbhOny8oM','W7ddTmohWPnpAXS','WOhcK8kQoNWGmSo8W6NdIW','umkmnLm','W43cQ8ovhmoE','FKVdUCkWsa','ySkcew3cJCk7oxbkW6m','td4W','bhafWPS4W7S','DaFcGwNdJa','AqWRsSoKgCoJWO5gaW','5AwF56ERWP3LHzZMJlWCW63dTWeC','zSoXWOq','vcmtmSkunCkilmkFm8kRW6y','WOaxW4JcImkOga','W4XVmmkpvSkEWRy','44km5O2g56Ed44cV6k6k5yE66iY75yYU5lMZ5lQ7','W4hcLSoL','56sp5AwaapcFVi0','A8kAxaW1cMHDW4pcRq','wrONW6xcGG','pvKBW4BdQa','5y6e5yI/5yspW5CnCci','WOK/k3hcKq','BGTdhSoFhSo5WOW','WO4RDmoS','W6JcN8oAbSoa','urn9bSo8','WRBdNSk3vxZdRSoqW6NcLf4','jGO8W7BdLLqQ','WQBcKmomW5L3','tSoTpCkNBG','W5umshKU','WQlcTJWWWRW','W75/dCk9wa','W67cISoAhSkZ','keCyWQCy','qSkimeeuAwC','omoYWPS','xSo8hSkEvID2l8kbWRC','CSkohehcJmk4','jX03W77dGW','5AA456AgnEweMEAoK8oVpKbEra','6lYL5yAC5Qo75l6y5PEK5yED5AYslEw7OEITRW','wmoLa8khdg5Mm8k4WQS','ESo3WOb5kYy','W5P3cCkaBa','lLmsWOef','t8oWbCkByI9Xm8kxWQm','jqTuASo2pmo5','p0LCW57cISosl8om','WRRcP8kc','W6/dV8kEudVdGmoPW
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