faker3/jd_mybbphdyh.js

15 lines
54 KiB
JavaScript
Raw Normal View History

2024-07-06 12:23:46 +08:00
/*
不会自动运行请在有水的时候运行
//export jd_opencard_jdDraw="true" //true 开启抽奖false 关闭抽奖
//export jd_opencard_break="true" //IP限制后继续执行true/false
cron:1 1 1 1 *
*/
2024-07-16 00:24:38 +08:00
const $ = new Env('轻松育儿集卡礼')
const _0x430c60=_0x5328;function _0x5328(_0x147910,_0x5df1b6){const _0xf4e0fd=_0xf4e0();return _0x5328=function(_0x5328ed,_0xe3304f){_0x5328ed=_0x5328ed-0x1e1;let _0x1b212f=_0xf4e0fd[_0x5328ed];if(_0x5328['fjaYPG']===undefined){var _0x3e2ffa=function(_0x10c463){const _0x20893c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x533cdb='',_0x6a602='';for(let _0x170a15=0x0,_0x12542f,_0x4dcafe,_0xaca6b3=0x0;_0x4dcafe=_0x10c463['charAt'](_0xaca6b3++);~_0x4dcafe&&(_0x12542f=_0x170a15%0x4?_0x12542f*0x40+_0x4dcafe:_0x4dcafe,_0x170a15++%0x4)?_0x533cdb+=String['fromCharCode'](0xff&_0x12542f>>(-0x2*_0x170a15&0x6)):0x0){_0x4dcafe=_0x20893c['indexOf'](_0x4dcafe);}for(let _0xb6fe2d=0x0,_0x5eed92=_0x533cdb['length'];_0xb6fe2d<_0x5eed92;_0xb6fe2d++){_0x6a602+='%'+('00'+_0x533cdb['charCodeAt'](_0xb6fe2d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6a602);};const _0x249b89=function(_0x578799,_0x1b0c15){let _0x3d2d13=[],_0x5640e7=0x0,_0x137cc0,_0x21b795='';_0x578799=_0x3e2ffa(_0x578799);let _0x4481fb;for(_0x4481fb=0x0;_0x4481fb<0x100;_0x4481fb++){_0x3d2d13[_0x4481fb]=_0x4481fb;}for(_0x4481fb=0x0;_0x4481fb<0x100;_0x4481fb++){_0x5640e7=(_0x5640e7+_0x3d2d13[_0x4481fb]+_0x1b0c15['charCodeAt'](_0x4481fb%_0x1b0c15['length']))%0x100,_0x137cc0=_0x3d2d13[_0x4481fb],_0x3d2d13[_0x4481fb]=_0x3d2d13[_0x5640e7],_0x3d2d13[_0x5640e7]=_0x137cc0;}_0x4481fb=0x0,_0x5640e7=0x0;for(let _0x7416a2=0x0;_0x7416a2<_0x578799['length'];_0x7416a2++){_0x4481fb=(_0x4481fb+0x1)%0x100,_0x5640e7=(_0x5640e7+_0x3d2d13[_0x4481fb])%0x100,_0x137cc0=_0x3d2d13[_0x4481fb],_0x3d2d13[_0x4481fb]=_0x3d2d13[_0x5640e7],_0x3d2d13[_0x5640e7]=_0x137cc0,_0x21b795+=String['fromCharCode'](_0x578799['charCodeAt'](_0x7416a2)^_0x3d2d13[(_0x3d2d13[_0x4481fb]+_0x3d2d13[_0x5640e7])%0x100]);}return _0x21b795;};_0x5328['vKMnGi']=_0x249b89,_0x147910=arguments,_0x5328['fjaYPG']=!![];}const _0x1da211=_0xf4e0fd[0x0],_0x534af2=_0x5328ed+_0x1da211,_0x421414=_0x147910[_0x534af2];return!_0x421414?(_0x5328['FzZAeY']===undefined&&(_0x5328['FzZAeY']=!![]),_0x1b212f=_0x5328['vKMnGi'](_0x1b212f,_0xe3304f),_0x147910[_0x534af2]=_0x1b212f):_0x1b212f=_0x421414,_0x1b212f;},_0x5328(_0x147910,_0x5df1b6);}function _0xf4e0(){const _0x40e685=['pCkkW5lcSSo8dZjY','qg7dKftdG8kn','WRqXWPG','W7ZNUyZMNQRMLkFPLkNVVQm','W4pcKJa','W7FdUHzhW65UCa','kfTCrdldKq','gYeBW6GSWRK','WOLJW7aZ','WODMW5S9uWRdOsyve8ozW7FdUhhcS8k1W4m','5P6f5B245AE4','kfbsrdlcRv94','jSoYpSokW4mSWOKkW5tdL34TWRpdMmkYWOddNSoyW5aaWOZcHt7dGwxcG8oNEMXKW7qVwSkDWPJcHX4qx8ok','w2ddNMu','qSoFWRK','W5OdWPX9fJRdQLO','WQNdTxi1eGtcLSkNjmkdW4P/W4PeWP5qW7e','bSklBYhcOCkGW6JdMhFcLv3cNCoTW6m','sCovWRaeW6O','EmkkW4pcOSoDhaPIWOiyW7C','nwPVW5O','W6dcT8kzFCooW6y','iuddTseAWRtdGGW','WOa8WRjjvgRdLWPEm2xcSa','W4ywumkSrgFdRCkd','WQldQNuIsKW','WQWGWPJcHSkFw8oWWRSSl2O','EqRdRJewWQRdUeFcTSoTWRu7W6RcNcjKtmoeaCkcCmkIjCkdw8k+','CFcDVOtVURq','W4mxva','8l2+RCoO5Oob5zEM6i6T5B2/5A+Y54IIlEwKGowsSUwtLEENHE+/IG','bSkBEGtcQ8kHW5ddHxpcT0NcGG','WPucW6HCo8o6WPpdQa','W6yEWPPJlt/dOKW','cvbKoUwWVCkB','rfqj','uCkgW6JdRG','p2P2W54','g8kJDSool8o1W6qLr8kGmtG','WPzzmYZcSmouoW','57+m5Bko5BYW6kwq5yYF5PEj772r6k2K6ywL5Psn6lYr6kgX','outdTIa','p8ommf4','wCorWRCL','B346','WR3cVHbKW7/cQq','WQy9WRHPwgNdHG','yMfqv1vUfuLv','pN5VW71cW4Pu','WRJcUGPL','v8kBW4rDEWCRWPhcTCoGgsu','mSkeW4C','WQW3WPix','W6nbWQNdIb9OWPS','vZyQW7GzWRDhW4mUE1NcH8oeD8kcy0tcT8kuAmoHW4q','pr8aW44cWOvYW6HmuwZcRG','hCkWW5O','WRu2WRjzvhBdQKm','pMxcGCoJkh9NWQbzW51AFmozWRldNrfBWOnKmuGlECoKuCobs0i','aGON','B8kjWQLJW4DxyvnLxCoqEuCm','aCoAWPuFbKaE','W4afWP5JbGVdUKaZ','W5CmWOTW','fCkJW5JcTZS5vN5JvGpcIW','W69fWRZdJq','xmkjW7JdQSoP','sSk8W4mdW5qhiMK1cSkc','W7ZcUCka','W4jMW608rbxdPYXBdmoeW4RdUhpdUCk1W4VdM8kbbSoeW58wcCkUWO0ECH/cQYVcNq','57+I5Bgp5BY66kEZ5y+f5PwR77+n6k2h6yAF5PwW6l+c6kov','mMn0W5rDW45NhSkVW7DcaKq','juddQdatWRi','W6hcUqdcJSkEdg8','h8kcWQSscCkR','44oM5lIZ5lUP6lE35yYQ','WQmOvW','WPadW6W','d8khEaNcOmkUW67dLa','nrXgFG','m0tdRYq','W6uJWRvtda','5QYu77+R6lsz57IO5yIX56kF5OIh5AwP','sSk8W4mdW5qhiMKYd8osW54','5REB6kEA5l6X5z6p','E+IoKUw8Ja','is7dHq','twldG3JdH8kws3bwWOW','BSozofNdSwqQCCkdW4u','e8klAbFcOSk7','W6bZW5JdNSo6FC
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