From c17670701a8b8664ed77447a12d516242d54d7a5 Mon Sep 17 00:00:00 2001 From: touchscale <11134128+touchscale@user.noreply.gitee.com> Date: Thu, 11 May 2023 12:43:18 +0000 Subject: [PATCH] update lib/config/config.js. Signed-off-by: touchscale <11134128+touchscale@user.noreply.gitee.com> --- lib/config/config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/config/config.js b/lib/config/config.js index 41898cd..0f0a64a 100644 --- a/lib/config/config.js +++ b/lib/config/config.js @@ -62,6 +62,10 @@ class Cfg { return this.getConfig('renderer'); } + get notice() { + return this.getConfig('notice'); + } + /** 主人qq */ get masterQQ () { let masterQQ = this.getConfig('other').masterQQ || [] @@ -99,6 +103,13 @@ class Cfg { return { ...def, ...config } } + /** notice配置 */ + getOther () { + let def = this.getdefSet('notice') + let config = this.getConfig('notice') + return { ...def, ...config } + } + /** * @param app 功能 * @param name 配置文件名称