李昊 4 years ago
parent
commit
76461d2c53

+ 1 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Media/MediaService.cs

@@ -98,7 +98,7 @@ namespace GxPress.Service.Implement.Media
             var mediaLibrary = await mediaLibraryRepository.GetTaskAsync(request.MediaId);
             if (!mediaLibrary.FileUrl.Contains("epub"))
                 throw new Common.Exceptions.BusinessException("书籍不存在epub文件");
-            request.Path = mediaLibrary.FileUrl;
+            request.Path = "wwwroot" + mediaLibrary.FileUrl;
             return epubService.GetBookCatalogContent(request);
         }