|
@@ -219,6 +219,7 @@ namespace TEAMModelOS.Services
|
|
|
teacher.defaultSchool = null;
|
|
|
}
|
|
|
}
|
|
|
+ await client.GetContainer(Constant.TEAMModelOS, "Teacher").ReplaceItemAsync<Teacher>(teacher, id, new PartitionKey("Base"));
|
|
|
//預設學校ID
|
|
|
defaultschool = teacher.defaultSchool;
|
|
|
}
|
|
@@ -284,7 +285,7 @@ namespace TEAMModelOS.Services
|
|
|
}
|
|
|
catch { }
|
|
|
|
|
|
- await client.GetContainer(Constant.TEAMModelOS, "Teacher").ReplaceItemAsync<Teacher>(teacher, id, new PartitionKey("Base"));
|
|
|
+
|
|
|
//取得Teacher Blob 容器位置及SAS
|
|
|
await _azureStorage.GetBlobContainerClient(id).CreateIfNotExistsAsync(PublicAccessType.None); //嘗試創建Teacher私有容器,如存在則不做任何事,保障容器一定存在
|
|
|
var (blob_uri, blob_sas) = _azureStorage.GetBlobContainerSAS(id, BlobContainerSasPermissions.Write | BlobContainerSasPermissions.Read | BlobContainerSasPermissions.List | BlobContainerSasPermissions.Delete);
|