修改插件响应结果判断,新增跳过通知

This commit is contained in:
v-me-50
2025-06-18 17:42:14 +08:00
parent 7b2235d7e7
commit 7360e0c3a2
5 changed files with 59 additions and 12 deletions

View File

@@ -183,6 +183,9 @@ func tryCallPlugin(name, action string, params map[string]interface{}, logger *p
}
cmd.Wait()
logger.Debug("插件响应", "plugin", name, "action", action, "response", resp)
if resp.Status != "success" {
return nil, fmt.Errorf("插件响应错误: %s", resp.Message)
}
return &resp, nil
}