fix: 记录操作200/204都为成功
This commit is contained in:
1 parent
ae7b922d24
commit
a59aec4834
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user