fix: 删除打印

This commit is contained in:
ningmengchongshui 2024-06-15 11:56:46 +08:00
parent 6472e0caf0
commit b790a79f98
1 changed files with 2 additions and 4 deletions

View File

@ -340,8 +340,6 @@ class PluginsLoader {
* *
*/ */
for (const plugin of priority) { for (const plugin of priority) {
console.log('plugin', plugin.add)
/** /**
* hook * hook
*/ */
@ -354,7 +352,7 @@ class PluginsLoader {
let ret let ret
for (const fnc in context) { for (const fnc in context) {
// 不是函数,错误插件错误写法 // 不是函数,错误插件错误写法
if (!plugin[fnc]) { if (typeof plugin[fnc] !== 'function') {
continue continue
} }
ret ||= await plugin[fnc](context[fnc]) ret ||= await plugin[fnc](context[fnc])
@ -416,7 +414,7 @@ class PluginsLoader {
try { try {
const start = Date.now() const start = Date.now()
// 不是函数。 // 不是函数。
if (!plugin[v.fnc]) { if (typeof plugin[v.fnc] !== 'function') {
continue continue
} }
const res = await plugin[v.fnc](e) const res = await plugin[v.fnc](e)