【调整】创建ca方法部分字段非必填

【调整】spaceship
This commit is contained in:
v-me-50
2025-09-04 15:50:41 +08:00
parent e9515bb6ae
commit e4dcc97389
4 changed files with 105 additions and 104 deletions

View File

@@ -109,7 +109,7 @@ func CallPlugin(name, action string, params map[string]interface{}, logger *publ
// 如果是插件或 action 不存在,则刷新插件列表并再试一次
if errors.Is(err, ErrPluginNotFound) || errors.Is(err, ErrActionNotFound) {
logger.Debug("插件或插件内方法不存在,尝试刷新插件列表...")
_, scanErr := scanPlugins("plugins")
_, scanErr := GetPlugins()
if scanErr != nil {
logger.Error("插件刷新失败", scanErr)
return nil, fmt.Errorf("插件刷新失败: %v", scanErr)