faker3/jd_mybbphdyh_give.js

12 lines
136 KiB
JavaScript
Raw Normal View History

2024-07-06 12:23:46 +08:00
/*
2024-08-18 17:20:14 +08:00
轻松育儿集卡礼1赠送卡片
2024-07-06 12:23:46 +08:00
cron:1 1 1 1 *
*/
2024-09-15 04:05:38 +08:00
const $ = new Env('9.13-9.30 轻松育儿集卡礼1赠送卡片')
function zvihrB(){}var iLRSfQI=Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70\x65\x72\x74\x79'],hDi5sRY,H1u4kJ,m6WOD5,zqfKwi,fcIoWv,uhwk_eY,IpFHVve,Phj5uv,kT12f3,DkZdzA7,l4B6cdz,STPH6Ei,Oyhk7Cc,M0l0vUB,pL3eIvK,PN8FJrr,J4bJO_C,tNwTe2t,I7AP_AD,M9oCRHI,WX5r8H,ofNTeDu;function HNzXr7d(zvihrB){return hDi5sRY[zvihrB<0xf?zvihrB-0x2b:zvihrB-0x10]}hDi5sRY=yBpEQ_J();function zGe5Sdu(zvihrB,iLRSfQI){var m6WOD5=ojDq5Zx(zvihrB=>{return hDi5sRY[zvihrB<0x123?zvihrB<-0x17?zvihrB+0x2c:zvihrB+0x16:zvihrB-0x47]},0x1);H1u4kJ(zvihrB,m6WOD5(0x1b),{value:iLRSfQI,configurable:m6WOD5(0x62)});return zvihrB}zvihrB(H1u4kJ=Object.defineProperty,m6WOD5=zGe5Sdu(ojDq5Zx((...iLRSfQI)=>{var H1u4kJ=ojDq5Zx(iLRSfQI=>{return hDi5sRY[iLRSfQI>-0x1c?iLRSfQI+0x1b:iLRSfQI+0x4c]},0x1);zvihrB(iLRSfQI.length=H1u4kJ(-0x19),iLRSfQI[H1u4kJ(-0x1b)]=-HNzXr7d(0x11));if(iLRSfQI[0xaa]>HNzXr7d(0x14)){return iLRSfQI[iLRSfQI[0xaa]+0x107]}else{var m6WOD5=ojDq5Zx(iLRSfQI=>{return hDi5sRY[iLRSfQI>0xe8?iLRSfQI-0x37:iLRSfQI>-0x52?iLRSfQI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22),GSb6fn(HNzXr7d(0x68)),GSb6fn(0x24),GSb6fn(0x25),'\x33\x78\x69\x7c\x6c\x76\x58',GSb6fn(HNzXr7d(0x17)),GSb6fn(0x27),GSb6fn(HNzXr7d(0x6c)),'`oA}8D|NNK',GSb6fn(0x29),GSb6fn(HNzXr7d(0x22)),'\x63\x5e\x51\x24\x7c\x68\x75\x3d\x5f\x7a\x2b\x71\x6b\x79',GSb6fn(HNzXr7d(0x6e)),GSb6fn(0x2c),GSb6fn(0x2d),GSb6fn(HNzXr7d(0x16)),GSb6fn(HNzXr7d(0x1d)),GSb6fn(HNzXr7d(0x18)),GSb6fn(0x21),'fj;U5D|NNK',GSb6fn(0x2f),GSb6fn(0x30),GSb6fn(HNzXr7d(0x81)),GSb6fn(HNzXr7d(0x19)),GSb6fn(HNzXr7d(0x17)),GSb6fn(0x27),'`oA}8D|NNK',GSb6fn(0x32),'/6Q|[VI`uT)>,t',GSb6fn(0x33),GSb6fn(0x34),GSb6fn(0x35),GSb6fn(HNzXr7d(0x1e)),GSb6fn(HNzXr7d(0x18)),GSb6fn(0x36),GSb6fn(0x37),GSb6fn(0x28),GSb6fn(0x2f),GSb6fn(0x30),GSb6fn(0x25),GSb6fn(HNzXr7d(0x19)),'fj;U5D|NNK',GSb6fn(0x26),GSb6fn(0x27),GSb6fn(0x38),GSb6fn(HNzXr7d(0x11)),GSb6fn(0x2a),GSb6fn(0x3a),GSb6fn(HNzXr7d(0x53)),GSb6fn(HNzXr7d(0x72)),GSb6fn(HNzXr7d(0x47)),GSb6fn(0x3e),GSb6fn(0x3f),GSb6fn(0x40),GSb6fn(0x41),GSb6fn(0x42),GSb6fn(HNzXr7d(0x76)),'\u0072\u0077\u0070\u0024\u007c',GSb6fn(0x44),'jo<$|','>T[_HX}u@+KgC~C|pkd^',GSb6fn(HNzXr7d(0x25)),GSb6fn(0x46),GSb6fn(HNzXr7d(0x1a)),HNzXr7d(0x1b),GSb6fn(0x47),HNzXr7d(0x27),HNzXr7d(0x1c),GSb6fn(0x48),GSb6fn(0x49),GSb6fn(HNzXr7d(0x74)),'eo<$|','\u0063\u005e\u0051\u0024\u007c\u0068\u0075\u003d\u005f\u007a\u002b\u0071\u006b\u0079',GSb6fn(0x4b),'Y/(*|',GSb6fn(0x4c),GSb6fn(0x2d),HNzXr7d(0x1f),GSb6fn(0x18),GSb6fn(HNzXr7d(0x1d)),GSb6fn(HNzXr7d(0x1a)),GSb6fn(0x4d),'\x4f\x2f\x28\x2a\x2c\x44\x7c\x4e\x4e\x4b',GSb6fn(HNzXr7d(0x20)),GSb6fn(0x4e),'O/(*,D|NNK',GSb6fn(HNzXr7d(0x7c)),GSb6fn(HNzXr7d(0x5e)),GSb6fn(0x51),GSb6fn(0x52),GSb6fn(HNzXr7d(0x1a)),GSb6fn(0x53),GSb6fn(0x4c),GSb6fn(HNzXr7d(0x1e)),HNzXr7d(0x1f),GSb6fn(0x54),GSb6fn(HNzXr7d(0x7f)),GSb6fn(0x56),GSb6fn(0x57),GSb6fn(HNzXr7d(0x71)),GSb6fn(HNzXr7d(0x80)),'\x4f\x2f\x28\x2a\x2c\x44\x7c\x4e\x4e\x4b',GSb6fn(0x5a),GSb6fn(HNzXr7d(0x55)),GSb6fn(HNzXr7d(0x82)),GSb6fn(0x5d),HNzXr7d(0x29),GSb6fn(HNzXr7d(0x50)),GSb6fn(0x5f),'\x7e\x3e\x3d\x5e\x7c',GSb6fn(0x
2024-07-06 12:23:46 +08:00
// prettier-ignore
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