李昊 4 년 전
부모
커밋
e6468476f3

BIN
gx_api/GxPress/Api/.DS_Store


+ 2 - 2
gx_api/GxPress/Api/GxPress.Api/AppControllers/videoController.cs

@@ -93,7 +93,7 @@ namespace GxPress.Api.AppControllers
             try
             {
                 var path = Common.Tools.StringUtils.GetWebRootPath(_environment.WebRootPath);
-                var filepath = path + "/cache/20200428/1588144602647614.mp4";
+                var filepath = path + "/cache/20200529/1234.mp4";
                 FileInfo fileInfo = new FileInfo(filepath);
                 byte[] bytsize = new byte[fileInfo.Length];
                 var ext = fileInfo.Extension;
@@ -123,7 +123,7 @@ namespace GxPress.Api.AppControllers
             try
             {
                 var path = Common.Tools.StringUtils.GetWebRootPath(_environment.WebRootPath);
-                var filepath = path + "/cache/20200428/1588144602647614.mp4";
+                var filepath = path + "/cache/20200529/1234.mp4";
                 //var filepath = "http://localhost:83/cache/20200428/1588144602647614.mp4";
                 //从第3个到第12个字节,共10个字节。(0是第一个字节)
                 var begin = int.Parse(range.Split('-')[0]);

+ 1 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/Media/MediaRepository.cs

@@ -300,6 +300,7 @@ namespace GxPress.Repository.Implement.Media
                         {
                             var mediaLibrary = _mapper.Map<Entity.tede2.Media.MediaLibrary>(item);
                             mediaLibrary.MediaId = result.Id;
+                            mediaLibrary.FileUrl = StringUtils.RemoveDomain(mediaLibrary.FileUrl);
                             await mediaLibraryRepository.InsertAsync(mediaLibrary);
                         }
                     }