zoulei 1 year ago
parent
commit
b6c13a1565
1 changed files with 1 additions and 0 deletions
  1. 1 0
      XdCxRhDW.Framework/HttpHelper.cs

+ 1 - 0
XdCxRhDW.Framework/HttpHelper.cs

@@ -95,6 +95,7 @@ public class HttpHelper
     /// <returns></returns>
     public static async Task<bool> DownloadFileAsync(string baseUrl, string remoteFileName, string localFile, int timeoutSeconds = 30)
     {
+        baseUrl = baseUrl.Replace("/api", "");
         if (!baseUrl.EndsWith("/"))
             baseUrl += "/";
         var server = new Uri(baseUrl + $"wwwroot/{remoteFileName}");