|
@@ -72,13 +72,14 @@ namespace GxPress.Service.Implement.Epub
|
|
|
int i = 0;
|
|
|
foreach (EpubTextContentFile textContentFile in epubBook.ReadingOrder)
|
|
|
{
|
|
|
- if (i >= sectionValue && sectionValue > 0)
|
|
|
- {
|
|
|
- htmlContent = HtmlAgilityPackHelper.GetHmtlContent(textContentFile.Content);
|
|
|
- break;
|
|
|
- }
|
|
|
+
|
|
|
if (textContentFile.FileName.Equals(request.CatalogId) || textContentFile.FileName.Equals(request.CatalogNameg))
|
|
|
{
|
|
|
+ if (i >= sectionValue && sectionValue > 0)
|
|
|
+ {
|
|
|
+ htmlContent = HtmlAgilityPackHelper.GetHmtlContent(textContentFile.Content);
|
|
|
+ break;
|
|
|
+ }
|
|
|
//当前文本内容文件的HTML
|
|
|
htmlContent = HtmlAgilityPackHelper.GetHmtl(textContentFile.Content);
|
|
|
break;
|