Przeglądaj źródła

处理总分异常

zhouj1203@hotmail.com 4 lat temu
rodzic
commit
04b587e5c4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      TEAMModelOS/Controllers/Common/ExamController.cs

+ 1 - 1
TEAMModelOS/Controllers/Common/ExamController.cs

@@ -503,7 +503,7 @@ namespace TEAMModelOS.Controllers
                         });
                         await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(exam, id.ToString(), new PartitionKey($"Exam-{school}"));
                     }
-                    result.sum[index] = result.studentScores[index].Sum();
+                    result.sum[newIndex] = result.studentScores[newIndex].Sum();
                     classResult = await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(result, result.id, new PartitionKey($"{result.code}"));
                 }