From 394383dd53e03b3ebdf0f798179abe0eaf70db08 Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Thu, 7 Jul 2022 23:17:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E4=BD=93=E5=8A=9B=E6=97=A0=E6=B3=95=E6=88=B3=E4=B8=80=E6=88=B3?= =?UTF-8?q?=E5=94=A4=E5=87=BA=E4=BD=93=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/Note.js | 6 +++--- apps/admin.js | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/Note.js b/apps/Note.js index 6bca05c..a624a9b 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -40,8 +40,8 @@ function init() { //#体力 export async function Note(e, { render -}) { - if (!Cfg.get("sys.Note")) { +},poke) { + if (!Cfg.get("sys.Note")&&!poke) { return false; } let cookie, uid; @@ -355,7 +355,7 @@ export async function pokeNote(e){ if (!Cfg.get("note.poke")) { return false; } - return await Note(e, getPluginRender("xiaoyao-cvs-plugin")); + return await Note(e, getPluginRender("xiaoyao-cvs-plugin"),"poke"); } diff --git a/apps/admin.js b/apps/admin.js index 7c26794..cafebb7 100644 --- a/apps/admin.js +++ b/apps/admin.js @@ -89,12 +89,11 @@ export async function sysCfg(e, { Note: getStatus("sys.Note",false), Atlas: getStatus("sys.Atlas",false), len:Cfg.get("mb.len", 0), - poke: getStatus("note.poke"), + poke: getStatus("note.poke",false), imgPlus: fs.existsSync(plusPath), bg: await rodom(), //获取底图 Atlasall:getStatus("Atlas.all",false), } - console.log(cfg) //渲染图像 return await Common.render("admin/index", { ...cfg,