guqiang пре 1 месец
родитељ
комит
9345cafbb3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Hotline.Application/Exam/Service/TestPapers/TestPaperService.cs

+ 1 - 1
src/Hotline.Application/Exam/Service/TestPapers/TestPaperService.cs

@@ -274,7 +274,7 @@ namespace Hotline.Application.Exam.Service.TestPapers
             {
                 testPaperQuestionCountViewResponses = await CalcuteManualQuestionCount(testPaperQuestionCountRequest);
             }
-            else
+            else if(testPaperQuestionCountRequest.ExtractRuleId.IsNotNullOrEmpty())
             {
                 testPaperQuestionCountViewResponses = await CalcuteRandomQuestionCount(testPaperQuestionCountRequest);
             }