fix: 记录操作200/204都为成功

This commit is contained in:
TsMask
2023-11-01 19:29:14 +08:00
parent ae7b922d24
commit a59aec4834

View File

@@ -115,7 +115,7 @@ func LogOperate(options collectlogs.Options) func(http.Handler) http.Handler {
status := strArr[2] status := strArr[2]
// 响应状态 // 响应状态
if status == "200" { if status == "200" || status == "204" {
operLog.Status = common.STATUS_YES operLog.Status = common.STATUS_YES
} else { } else {
operLog.Status = common.STATUS_NO operLog.Status = common.STATUS_NO