3444
This commit is contained in:
parent
9695f77809
commit
f31a169bc2
@ -907,14 +907,6 @@ func (r *QuestionService) GetQuestion(questionId int64) (g *dto.QuestionDto, err
|
|||||||
return nil, errors.New("题目不存在")
|
return nil, errors.New("题目不存在")
|
||||||
}
|
}
|
||||||
|
|
||||||
if question.QuestionStatus == 2 {
|
|
||||||
return nil, errors.New("题目已禁用")
|
|
||||||
}
|
|
||||||
|
|
||||||
if question.IsDelete == 1 {
|
|
||||||
return nil, errors.New("题目已删除")
|
|
||||||
}
|
|
||||||
|
|
||||||
// 处理返回值
|
// 处理返回值
|
||||||
g = dto.GetQuestionDto(question)
|
g = dto.GetQuestionDto(question)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user