diff --git a/api/service/Question.go b/api/service/Question.go index 5f07693..928f1cb 100644 --- a/api/service/Question.go +++ b/api/service/Question.go @@ -907,14 +907,6 @@ func (r *QuestionService) GetQuestion(questionId int64) (g *dto.QuestionDto, err return nil, errors.New("题目不存在") } - if question.QuestionStatus == 2 { - return nil, errors.New("题目已禁用") - } - - if question.IsDelete == 1 { - return nil, errors.New("题目已删除") - } - // 处理返回值 g = dto.GetQuestionDto(question)