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