zhouj1203@hotmail.com 1 سال پیش
والد
کامیت
c1f6d0e8a2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      TEAMModelOS/Controllers/Common/AreaController.cs

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

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