2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 11:40:51 +08:00

修复未开启体力无法戳一戳唤出体力

This commit is contained in:
leiyilu 2022-07-07 23:17:44 +08:00
parent 88ba473ba7
commit 394383dd53
2 changed files with 4 additions and 5 deletions

View File

@ -40,8 +40,8 @@ function init() {
//#体力 //#体力
export async function Note(e, { export async function Note(e, {
render render
}) { },poke) {
if (!Cfg.get("sys.Note")) { if (!Cfg.get("sys.Note")&&!poke) {
return false; return false;
} }
let cookie, uid; let cookie, uid;
@ -355,7 +355,7 @@ export async function pokeNote(e){
if (!Cfg.get("note.poke")) { if (!Cfg.get("note.poke")) {
return false; return false;
} }
return await Note(e, getPluginRender("xiaoyao-cvs-plugin")); return await Note(e, getPluginRender("xiaoyao-cvs-plugin"),"poke");
} }

View File

@ -89,12 +89,11 @@ export async function sysCfg(e, {
Note: getStatus("sys.Note",false), Note: getStatus("sys.Note",false),
Atlas: getStatus("sys.Atlas",false), Atlas: getStatus("sys.Atlas",false),
len:Cfg.get("mb.len", 0), len:Cfg.get("mb.len", 0),
poke: getStatus("note.poke"), poke: getStatus("note.poke",false),
imgPlus: fs.existsSync(plusPath), imgPlus: fs.existsSync(plusPath),
bg: await rodom(), //获取底图 bg: await rodom(), //获取底图
Atlasall:getStatus("Atlas.all",false), Atlasall:getStatus("Atlas.all",false),
} }
console.log(cfg)
//渲染图像 //渲染图像
return await Common.render("admin/index", { return await Common.render("admin/index", {
...cfg, ...cfg,