jdpro/jd_jzfl_draw.js

7 lines
111 KiB
JavaScript
Raw Normal View History

2024-10-02 12:37:22 +00:00
/*
12 6 * * * jd_jzfl_draw.js
*/
const $ = new Env('家装福利抽奖');
2024-11-26 04:35:52 +00:00
function mjH1Ohs(){}var UrE1xqP=Object['defineProperty'],W418_uS,YD0656n,Ci4MnY4,o0sWCt,SIFbLTB,zcAsQT0,xva_APw,N4DWKTi,D6aMi87,tSddfbv,egfXEe,APRKJD,d1OkkuH,MWWHwiX,ft59eF,iy0TWME,YMOOTdn,UwkPuW_,YjOrT4,yHbcKr_;function CEBypj(mjH1Ohs){return W418_uS[mjH1Ohs>0x9?mjH1Ohs>0x99?mjH1Ohs+0x45:mjH1Ohs-0xa:mjH1Ohs+0xb]}W418_uS=jYU9s03();function iiTTQ6C(mjH1Ohs,UrE1xqP){YD0656n(mjH1Ohs,CEBypj(0x20),{value:UrE1xqP,configurable:!0x0});return mjH1Ohs}mjH1Ohs(YD0656n=Object.defineProperty,Ci4MnY4=UvCdOor((mjH1Ohs,UrE1xqP)=>{return UrE1xqP(mjH1Ohs())},0x2)(FvSdLh,rDANUt));var ysk6pT=[],gkZLE7=[Wlidvk(0x0),Wlidvk(0x1),Wlidvk(CEBypj(0x1e)),Wlidvk(CEBypj(0x27)),Wlidvk(0x4),Wlidvk(0x5),Wlidvk(0x6),'dFyB|,iR','hci|7,_R',Wlidvk(0x7),Wlidvk(0x8),'ccmB/|iRQr?aU_KT]x',Wlidvk(0x9),Wlidvk(0xa),Wlidvk(0xb),Wlidvk(0xc),Wlidvk(0xd),Wlidvk(0xe),Wlidvk(0xf),'oNe|BkH',Wlidvk(0x10),Wlidvk(0x11),Wlidvk(CEBypj(0x35)),Wlidvk(0x13),'o1>|~YiR','o1>|~Y}5H~)',Wlidvk(0x14),Wlidvk(0x15),Wlidvk(0x16),Wlidvk(CEBypj(0xa)),'_">|~YiR',Wlidvk(0x18),Wlidvk(CEBypj(0x3c)),Wlidvk(0x19),Wlidvk(0x1a),Wlidvk(0x11),Wlidvk(CEBypj(0x4a)),Wlidvk(0x1c),Wlidvk(CEBypj(0x75)),Wlidvk(0x1e),'Qm>|,,H','8Ta|j=iR',Wlidvk(0x1f),Wlidvk(0x20),Wlidvk(0x1b),Wlidvk(0x1d),'Qm>|,,H',Wlidvk(0x20),'Qm>|,,H',Wlidvk(0x20),Wlidvk(0x1b),Wlidvk(0x1d),'m_i|=FIR',Wlidvk(0x21),Wlidvk(0x22),Wlidvk(0x23),'Oml|)',Wlidvk(0x24),Wlidvk(0x25),'bRr=q?F1(>hLZqk,=d{1(w+Z)|tG=Frr44hqs:dAzo47eQvb_">|~Y}5=o(:/|O5P&^&{!"3FOr+h!^,K~fruBNLF<FC5C~gTvX+gkZ@f',Wlidvk(0x26),'4WyB=|!YW',Wlidvk(0x27),'4WyB=|ZDX','|iOtF|]]W','CTw;|,CKW',Wlidvk(0x28),'A=0QD,Mo_P%s<kVq%T]f=tsKGCXgCcYyj%k;5|#+l*Vn_4K#6_:6$',Wlidvk(0x29),'vp|ALv}B>ST5]X0&O`Df','8=@|fuNx',Wlidvk(0x2a),'2kNt=|PR',Wlidvk(0x2b),'hci|7,_R',Wlidvk(0x2c),Wlidvk(0x2d),Wlidvk(0x2e),'xea|A:H',Wlidvk(0x2f),Wlidvk(0x30),Wlidvk(0x31),Wlidvk(0x32),Wlidvk(0x33),Wlidvk(0x34),Wlidvk(0x35),Wlidvk(0x36),Wlidvk(0x37),Wlidvk(CEBypj(0x1f)),Wlidvk(0x39),'/+|Obp&u',Wlidvk(0x3a),Wlidvk(CEBypj(0x66)),Wlidvk(0x25),Wlidvk(0x28),Wlidvk(0x3c),Wlidvk(0x3d),'4cs%t^c%qIv4|e',Wlidvk(CEBypj(0x6b)),Wlidvk(0x3f),Wlidvk(0x40),Wlidvk(0x41),Wlidvk(0x42),'Pel|^/>R',Wlidvk(0x43),'Pel|[8>R',Wlidvk(0x44),Wlidvk(0x45),Wlidvk(CEBypj(0x1d)),Wlidvk(0x47),Wlidvk(0x48),Wlidvk(CEBypj(0x65)),Wlidvk(0x4a),Wlidvk(0x4b),Wlidvk(0x4c),Wlidvk(CEBypj(0x43)),'Pel|p%u`gIS>,llzvx',Wlidvk(0x4e),Wlidvk(0x4f),Wlidvk(0x50),Wlidvk(0x48),Wlidvk(CEBypj(0x25)),Wlidvk(0x48),Wlidvk(0x49),Wlidvk(0x52),Wlidvk(0x53),Wlidvk(0x54),Wlidvk(0x55),Wlidvk(0x56),Wlidvk(0x57),Wlidvk(0x58),Wlidvk(0x59),Wlidvk(CEBypj(0x37)),Wlidvk(0x52),Wlidvk(CEBypj(0x2a)),Wlidvk(0x25),'3Na|A:H',Wlidvk(0x29),Wlidvk(0x25),Wlidvk(0x5c),Wlidvk(0x5d),CEBypj(0x16),Wlidvk(0x5e),Wlidvk(0x5f),Wlidvk(0x60),'Ili||,CKyCNFx',Wlidvk(CEBypj(0x5f)),Wlidvk(0x62),Wlidvk(0x63),Wlidvk(CEBypj(0xe)),Wlidvk(0x65),Wlidvk(0x66),'|#SB5|LR','xcs|!YTR',Wlidvk(0x67),Wlidvk(CEBypj(0x12)),Wlidvk(CEBypj(0x3a)),Wlidvk(CEBypj(0x11)),Wlidvk(0x6b),Wlidvk(CEBypj(0xb)),'Qm>|,,H',Wlidvk(0x6d),Wlidvk(CEBypj(0xc)),'.a?Q+Y|x',Wlidvk(0x6e),'nF)6^kQv|*]<x',Wlidvk(0x6f),Wlidvk(0x70),Wlidvk(0x71),Wlidvk(CEBypj(0x3b)),Wlidvk(0x72),Wlidvk(0x73),Wlidvk(0x53),Wlidvk(0x29),Wlidvk(CEBypj(0xa)),Wlidvk(0x74),Wlidvk(0x75),Wlidvk(0x76),Wlidvk(0x2c),Wlidvk(0x77),'g=Ft/|vR',Wlidvk(0x78),'ees|BkH',Wlidvk(0x79),Wlidvk(0x7a),Wlidvk(CEBypj(0x52)),'Bc~|>','g=Ft/|vR',Wlidvk(0x7c),Wlidvk(0x24),'UNl|3ZyR',Wlidvk(0x7d),'Pel|=FIR',Wlidvk(CEBypj(0x7d)),Wlidvk(0x7e),Wlidvk(0x5f),Wlidvk(0x7f),'Ili||,>R',Wlidvk(0x80),Wlidvk(0x81),Wlidvk(0x62),Wlidvk(0x63),Wlidvk(0x64),Wlidvk(0x65),Wlidvk(0x66),'|#SB5|LR','xcs|!YTR',Wlidvk(0x67),Wlidvk(0x68),Wlidvk(0x69),Wlidvk(0x6a),Wlidvk(CEBypj(0xf)),Wlidvk(CEBypj(0xb)),Wlidvk(0x20),Wlidvk(0x6d),Wlidvk(0x16),Wlidvk(0x29),CEBypj(0xd),Wlidvk(0x7c),CEBypj(0x10),Wlidvk(0x2c),Wlidvk(0x53),Wlidvk(0x6e),Wlidvk(0x79),Wlidvk(0x7a),Wlidvk(0x29),Wlidvk(0x24),Wlidvk(0x76),Wlidvk(CEBypj(0x17)),Wlidvk(0x62),Wlidvk(0x83),Wlidvk(0x84),Wlidvk(0x85),Wlidvk(0x86),Wlidvk(0x87),Wlidvk(0x88),Wlidvk(0x26),'gbs|/tc,R',Wlidvk(0x89),Wlidvk(0x8a),Wlidvk(0x8b),Wlidvk(0x8c),'o1>|~YiR',Wlidvk(CEBypj(0x5d)),Wlidvk(0x29),'g=F
2024-10-02 12:37:22 +00: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