From 989ae25809f3bbdcf598b559c4718a36c4dcdaf5 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 25 Jun 2024 16:10:10 +0800 Subject: [PATCH] 1 --- api/service/Question.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/service/Question.go b/api/service/Question.go index 556886a..95af2d8 100644 --- a/api/service/Question.go +++ b/api/service/Question.go @@ -362,7 +362,7 @@ func (r *QuestionService) PutQuestion(questionId int64, req requests.PutQuestion return false, err } - if firstLabelId != *question.FirstLabelId { + if &firstLabelId != question.FirstLabelId { labelDao := dao.LabelDao{} _, err = labelDao.GetLabelFirstById(firstLabelId) if err != nil { @@ -537,7 +537,7 @@ func (r *QuestionService) PutQuestionTest(questionId int64, req requests.PutQues return false, err } - if firstLabelId != *question.FirstLabelId { + if &firstLabelId != question.FirstLabelId { labelDao := dao.LabelDao{} _, err = labelDao.GetLabelFirstById(firstLabelId) if err != nil {