|
@@ -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}"));
|
|
|
}
|
|
|
}
|
|
|
}
|