李昊 4 年之前
父节点
当前提交
09c5256a0f

+ 1 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Epub/EpubService.cs

@@ -75,7 +75,7 @@ namespace GxPress.Service.Implement.Epub
 
                 if (textContentFile.FileName.Equals(request.CatalogId) || textContentFile.FileName.Equals(request.CatalogNameg))
                 {
-                    if (i >= sectionValue && sectionValue > 0)
+                    if (i > sectionValue && sectionValue > 0)
                     {
                         htmlContent = HtmlAgilityPackHelper.GetHmtlContent(textContentFile.Content);
                         break;

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

@@ -87,7 +87,7 @@ namespace GxPress.Service.Implement.Media
                 sectionValue = Convert.ToInt32(result.BookCatalogResults.Count * freeProportion);
                 foreach (var item in result.BookCatalogResults)
                 {
-                    if (item.Id <= sectionValue)
+                    if (item.Id < sectionValue)
                         item.IsRead = true;
                 }
             }