From de13770be636cb9860130a993a4a693aeadf85fa Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Tue, 28 Jun 2022 23:33:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9B=BE=E9=89=B4=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin.js | 2 ++ apps/xiaoyao_image.js | 3 +++ resources/admin/index.html | 10 ++++++++++ resources/dailyNote/xiaoyao_Note.html | 2 +- 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/apps/admin.js b/apps/admin.js index 2941fa8..c3bf600 100644 --- a/apps/admin.js +++ b/apps/admin.js @@ -24,6 +24,7 @@ let cfgMap = { "帮助": "sys.help", "匹配": "sys.Atlas", "模板": "mb.len", + "目录":"Atlas.all", }; let sysCfgReg = `^#图鉴设置\s*(${lodash.keys(cfgMap).join("|")})?\s*(.*)$`; export const rule = { @@ -89,6 +90,7 @@ export async function sysCfg(e, { len:Cfg.get("mb.len", 0), imgPlus: fs.existsSync(plusPath), bg: await rodom(), //获取底图 + Atlasall:getStatus("Atlas.all"), } console.log(cfg) //渲染图像 diff --git a/apps/xiaoyao_image.js b/apps/xiaoyao_image.js index 76179d6..0f71e62 100644 --- a/apps/xiaoyao_image.js +++ b/apps/xiaoyao_image.js @@ -13,6 +13,9 @@ const __dirname = path.resolve(); const list = ["shiwu_tujian", "yuanmo_tujian", "mijin_tujian", "shengyiwu_tujian"] export async function AtlasAlias(e) { + if (!Cfg.get("Atlas.all")) { + return false; + } let reg = /#(.*)/; if (Cfg.get("sys.Atlas")) { reg = /#*(.*)图鉴/; diff --git a/resources/admin/index.html b/resources/admin/index.html index 53fabdb..ec5d137 100644 --- a/resources/admin/index.html +++ b/resources/admin/index.html @@ -30,6 +30,16 @@
图鉴匹配规则需要 开启:图鉴结尾 关闭:食物原魔、圣遗物、食物无需图鉴结尾
+
  • +
    + 图鉴目录开关 + #图鉴设置目录 + 开启/关闭 + {{@Atlasall}} +
    +
    图鉴目录 为兼容之前用js版本插件用户可以用指令关闭功能
    +
  • + +