修改标签1

This commit is contained in:
wucongxing8150 2024-10-12 17:29:55 +08:00
parent 34c9bb3215
commit ca3f8fa28a

View File

@ -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
}