Bladeren bron

调整返回参数

CrazyIter 4 jaren geleden
bovenliggende
commit
4e529edd99
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      TEAMModelOS.SDK/Module/AzureBlob/Implements/AzureBlobDBRepository.cs

+ 1 - 1
TEAMModelOS.SDK/Module/AzureBlob/Implements/AzureBlobDBRepository.cs

@@ -689,7 +689,7 @@ namespace TEAMModelOS.SDK.Module.AzureBlob.Implements
             // Generate the shared access signature on the container, setting the constraints directly on the signature.
             string   sasContainerToken = blobContainer.GetSharedAccessSignature(adHocPolicy, null);
            
-            return new { url = blobContainer.Uri, sas = sasContainerToken, timeout = time,name = blobContainer.Name };
+            return new { url = blobContainer.Uri.AbsoluteUri.Replace(blobContainer.Uri.AbsolutePath,""), sas = sasContainerToken, timeout = time,name = blobContainer.Name };
         }
         public async Task<Dictionary<string,object>> GetBlobSasUri(BlobSas blobSas,bool isRead) {
             string sasBlobToken;