Jelajahi Sumber

修改地址错误

qinchaoyue 3 bulan lalu
induk
melakukan
0315198220

+ 5 - 6
src/Hotline.Application/Snapshot/SnapshotApplicationBase.cs

@@ -123,7 +123,6 @@ public abstract class SnapshotApplicationBase
     public async Task<HomePageOutDto> GetHomePageAsync()
     {
         var fileServiceUrl = _sysSetting.FileServerUrl;
-        var fileDownloadApi = fileServiceUrl + _sysSetting.FileDownloadApi;
         var items = await _industryRepository.Queryable()
             .Where(m => m.IsEnable)
             .OrderBy(m => m.DisplayOrder)
@@ -131,18 +130,18 @@ public abstract class SnapshotApplicationBase
         items.ForEach(m =>
         {
             if (m.BackgroundImgUrl.NotNullOrEmpty())
-                m.BackgroundImgUrl = fileDownloadApi + m.BackgroundImgUrl;
+                m.BackgroundImgUrl = fileServiceUrl + m.BackgroundImgUrl;
             if (m.BannerImgUrl.NotNullOrEmpty())
-                m.BannerImgUrl = fileDownloadApi + m.BannerImgUrl;
+                m.BannerImgUrl = fileServiceUrl + m.BannerImgUrl;
             if (m.CareCellImgUrl.NotNullOrEmpty())
-                m.CareCellImgUrl = fileDownloadApi + m.CareCellImgUrl;
+                m.CareCellImgUrl = fileServiceUrl + m.CareCellImgUrl;
             if (m.CellImgUrl.NotNullOrEmpty())
-                m.CellImgUrl = fileDownloadApi + m.CellImgUrl;
+                m.CellImgUrl = fileServiceUrl + m.CellImgUrl;
         });
 
         return new HomePageOutDto
         {
-            Banners = _sysSetting.AppBanner.Split('|').Select(m => fileDownloadApi + m).ToList(),
+            Banners = _sysSetting.AppBanner.Split('|').Select(m => fileServiceUrl + m).ToList(),
             Industrys = items
         };
     }