From 0eedf84b942383fa2b785c7c456deac21ad32f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8D=E6=BD=9C?= <1620556043@qq.com> Date: Tue, 25 Mar 2025 09:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=94=9F=E6=88=90=E9=9A=8F?= =?UTF-8?q?=E6=9C=BA=E8=AF=95=E5=8D=B7=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Implementations/ExamPaperService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/CodeSpirit.ExamApi/Services/Implementations/ExamPaperService.cs b/Src/CodeSpirit.ExamApi/Services/Implementations/ExamPaperService.cs index dc05fab..44066d7 100644 --- a/Src/CodeSpirit.ExamApi/Services/Implementations/ExamPaperService.cs +++ b/Src/CodeSpirit.ExamApi/Services/Implementations/ExamPaperService.cs @@ -377,7 +377,7 @@ namespace CodeSpirit.ExamApi.Services.Implementations private async Task ValidateRandomExamPaperRules(GenerateRandomExamPaperDto createDto) { // 总分与各题型分数之和必须相等 - if (createDto.TotalScore!= createDto.QuestionTypeRules.Sum(r => r.ScorePerQuestion & r.Count)) + if (createDto.TotalScore!= createDto.QuestionTypeRules.Sum(r => r.ScorePerQuestion * r.Count)) { throw new AppServiceException(400, "总分与各题型分数之和必须相等"); } -- Gitee