fix: 记录操作200/204都为成功
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user