修改标签1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user