瀏覽代碼

调整试题数接口

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