Quellcode durchsuchen

调整试题数接口

guqiang vor 1 Monat
Ursprung
Commit
9345cafbb3

+ 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);
             }