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,