From d44231a0ff9d42d159c4212853bdb8fa45111cdf Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 27 Jun 2023 16:45:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=A2=E6=9D=BF=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=98=BE=E7=A4=BA=E4=BC=98=E5=8C=96=20(#1454?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/middleware/operation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/middleware/operation.go b/backend/middleware/operation.go index f13471326..7977ce59f 100644 --- a/backend/middleware/operation.go +++ b/backend/middleware/operation.go @@ -118,8 +118,8 @@ func OperationLog() gin.HandlerFunc { } } } - record.DetailEN = operationDic.FormatEN - record.DetailZH = operationDic.FormatZH + record.DetailEN = strings.ReplaceAll(operationDic.FormatEN, "[]", "") + record.DetailZH = strings.ReplaceAll(operationDic.FormatZH, "[]", "") writer := responseBodyWriter{ ResponseWriter: c.Writer,