李昊 лет назад: 4
Родитель
Сommit
34cc9766ac
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      GxPress/Api/GxPress.Api/AdminControllers/AdminFileController.cs

+ 2 - 2
GxPress/Api/GxPress.Api/AdminControllers/AdminFileController.cs

@@ -41,7 +41,7 @@ namespace GxPress.Api.AdminControllers
 
             var saveResult = FileHelper.SaveFile(StringUtils.GetWebRootPath(_environment.WebRootPath), file.FileName,
                 bytes);
-            saveResult.AbsolutePath = Request.Scheme + "://" + Request.Host.Host +
+            saveResult.AbsolutePath = Request.Scheme + "s://" + Request.Host.Host +
                                       (Request.Host.Port > 0 ? $":{Request.Host.Port}" : string.Empty) +
                                       saveResult.RelativePath;
             return saveResult;
@@ -69,7 +69,7 @@ namespace GxPress.Api.AdminControllers
 
             var saveResult = FileHelper.SaveFile(StringUtils.GetWebRootPath(_environment.WebRootPath), file.FileName,
                 bytes);
-            saveResult.AbsolutePath = Request.Scheme + "://" + Request.Host.Host +
+            saveResult.AbsolutePath = Request.Scheme + "s://" + Request.Host.Host +
                                       (Request.Host.Port > 0 ? $":{Request.Host.Port}" : string.Empty) +
                                       saveResult.RelativePath;