diff --git a/Src/CodeSpirit.ExamApi/Services/Implementations/ExamPaperService.cs b/Src/CodeSpirit.ExamApi/Services/Implementations/ExamPaperService.cs index dc05fab1e2f6aa26d83b709b1ca6240e0e382649..44066d740737fe25baf7b883d7d39ece981cee60 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, "总分与各题型分数之和必须相等"); }