diff --git a/lib/midware/operate_log.go b/lib/midware/operate_log.go index c1f5cf30..7a70868c 100644 --- a/lib/midware/operate_log.go +++ b/lib/midware/operate_log.go @@ -115,7 +115,7 @@ func LogOperate(options collectlogs.Options) func(http.Handler) http.Handler { status := strArr[2] // 响应状态 - if status == "200" { + if status == "200" || status == "204" { operLog.Status = common.STATUS_YES } else { operLog.Status = common.STATUS_NO