mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
修复帮助皮肤中设置模糊为0时不生效的问题
This commit is contained in:
parent
3815884473
commit
35e7c17b85
@ -45,7 +45,7 @@ let Theme = {
|
||||
.help-table .td,.help-table .th{width:${100 / colCount}%}
|
||||
`]
|
||||
let css = function (sel, css, key, def, fn) {
|
||||
let val = themeStyle[key] || diyStyle[key] || sysStyle[key] || def
|
||||
let val = Data.def(themeStyle[key], diyStyle[key], sysStyle[key], def)
|
||||
if (fn) {
|
||||
val = fn(val)
|
||||
}
|
||||
|
@ -93,6 +93,8 @@ class App {
|
||||
|
||||
// v2执行方法
|
||||
v2App (e) {
|
||||
let cfg = this.cfg || {}
|
||||
let event = cfg.event
|
||||
let apps = this.apps
|
||||
return async function (e) {
|
||||
let msg = e.original_msg || e.msg || ''
|
||||
@ -114,6 +116,11 @@ class App {
|
||||
return true
|
||||
}
|
||||
}
|
||||
} else if (event === 'poke' && msg === '#poke#') {
|
||||
let ret = await app.fn(e, {})
|
||||
if (ret === true) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user