优化结构

This commit is contained in:
Yvan
2026-08-28 17:42:53 +08:00
parent 9148c10c0c
commit 8d290f2954
9 changed files with 27 additions and 17 deletions
+3
View File
@@ -309,6 +309,9 @@ func (h *Audit) CreateError(c *gin.Context) {
return
}
if err := h.recorder.CreateErrorMutationRequest(c.Request.Context(), &req); err != nil {
if h.logger != nil {
h.logger.ErrorContext(c.Request.Context(), "创建错误记录失败", "mod", "audit", "error", err)
}
Fail(c, "创建失败")
return
}