zhouj1203@hotmail.com 1 year ago
parent
commit
1c67d70e9f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      TEAMModelOS/Controllers/Common/AreaController.cs

+ 2 - 2
TEAMModelOS/Controllers/Common/AreaController.cs

@@ -2136,12 +2136,12 @@ namespace TEAMModelOS.Controllers
                                     {
                                         if (acs.type == 1)
                                         {
-                                            Azure.Response eresponse = await client.GetContainer("TEAMModelOS", "Common").ReadItemStreamAsync(acs.acId, new PartitionKey($"Exam-{code}"));
+                                            Azure.Response eresponse = await client.GetContainer("TEAMModelOS", "Common").ReadItemStreamAsync(acs.acId, new PartitionKey($"Exam-{art.school}"));
                                             if (response.Status == 200)
                                             {
                                                 ExamInfo data = JsonDocument.Parse(response.Content).RootElement.Deserialize<ExamInfo>();
                                                 data.status = 404;
-                                                await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(data, data.id, new PartitionKey($"Exam-{code}"));
+                                                await client.GetContainer("TEAMModelOS", "Common").ReplaceItemAsync(data, data.id, new PartitionKey($"{data.code}"));
                                             }
                                         }
                                     }