From f31a169bc205f3a700115222c4bf4f5081ca10a7 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Tue, 26 Nov 2024 14:51:18 +0800 Subject: [PATCH] 3444 --- api/service/Question.go | 8 -------- 1 file changed, 8 deletions(-) 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)