faker3/jd_fcwb_help.js

15 lines
72 KiB
JavaScript
Raw Normal View History

2024-11-12 11:17:55 +08:00
/*
2024-12-13 19:58:22 +08:00
欢乐挖宝助力
2024-11-12 11:17:55 +08:00
环境变量
2024-12-13 19:58:22 +08:00
JD_FCWB_InviterId // 指定助力码 非必须,不填默认助力账号一 格式inviterId&inviterCode
JD_FCWB_NUM // 指定人数 非必须,不填默认跑全部账号
2024-11-12 11:17:55 +08:00
cron:1 1 1 1 *
*/
2024-12-13 19:58:22 +08:00
const $ = new Env('欢乐挖宝助力')
function dlFE0Zk(){}var Getj17u=Object['defineProperty'],s5MjUkd,ZaUPiA,Qt8Irg6,nP4uAF,LyIJto,ET1kEZd,FY9UKC,mojrHHa,QSLhpTN,ptyXJa5,czBIKr,sKHFk8,blcWuOO,rbpPx7,DHTsicK,osyyc5,YJ2bwQQ,zZIsNqk,l8tJ0dg,EYmDuOF;function rn8blh(dlFE0Zk){return s5MjUkd[dlFE0Zk<0xa7?dlFE0Zk+0xb:dlFE0Zk-0x4a]}s5MjUkd=KOKxuVG();function FHcgUM(dlFE0Zk,Getj17u){var Qt8Irg6=ogPRhUM(dlFE0Zk=>{return s5MjUkd[dlFE0Zk<-0x21?dlFE0Zk-0x2f:dlFE0Zk<-0x21?dlFE0Zk+0x1f:dlFE0Zk<0x92?dlFE0Zk>0x92?dlFE0Zk+0x7:dlFE0Zk+0x20:dlFE0Zk-0x14]},0x1);return ZaUPiA.call(null,dlFE0Zk,Qt8Irg6(-0x8),{value:Getj17u,configurable:!0x0})}dlFE0Zk(ZaUPiA=Object.defineProperty,Qt8Irg6=ogPRhUM((dlFE0Zk,Getj17u)=>{return Getj17u(dlFE0Zk())},0x2)(IaiWaS,r_JOn8j));var hxDH3C9=[],avieWP=[sqY7Hs(0x0),sqY7Hs(0x1),sqY7Hs(rn8blh(0x3)),sqY7Hs(rn8blh(0x1)),sqY7Hs(rn8blh(-0xb)),sqY7Hs(0x5),sqY7Hs(0x6),sqY7Hs(0x7),s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55 +08:00
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); 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((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } 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.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.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) 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(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.d