From ca3f8fa28aa7b3ca7bcdc7abe85e2448a2997fde Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Sat, 12 Oct 2024 17:29:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E7=AD=BE1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/service/Question.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/service/Question.go b/api/service/Question.go index 449e8e9..0e23314 100644 --- a/api/service/Question.go +++ b/api/service/Question.go @@ -34,7 +34,7 @@ func (r *QuestionService) AddQuestion(req requests.AddQuestion) (bool, error) { // 验证二级标签 var secondLabelId int64 if req.SecondLabelId != "" { - secondLabelId, err := strconv.ParseInt(req.SecondLabelId, 10, 64) + secondLabelId, err = strconv.ParseInt(req.SecondLabelId, 10, 64) if err != nil { return false, err }