mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
修复未开启体力无法戳一戳唤出体力
This commit is contained in:
parent
88ba473ba7
commit
394383dd53
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user