|
@@ -48,13 +48,13 @@ namespace GxPress.Service.Implement.Epub
|
|
|
bookCatalog.Children = new List<BookCatalogResult>();
|
|
|
foreach (var item in subChapters)
|
|
|
{
|
|
|
+ var bookCatalogModel = new BookCatalogResult();
|
|
|
+ bookCatalogModel.Children = new List<BookCatalogResult>();
|
|
|
i++;
|
|
|
- bookCatalog = new BookCatalogResult();
|
|
|
- bookCatalog.Id = i;
|
|
|
- bookCatalog.CatalogNameg = item.Title;
|
|
|
- bookCatalog.CatalogId = item.HtmlContentFile.FileName;
|
|
|
- bookCatalog.ParentId = i;
|
|
|
- bookCatalog.Children.Add(bookCatalog);
|
|
|
+ bookCatalogModel.Id = i;
|
|
|
+ bookCatalogModel.CatalogNameg = item.Title;
|
|
|
+ bookCatalogModel.CatalogId = item.HtmlContentFile.FileName;
|
|
|
+ bookCatalog.Children.Add(bookCatalogModel);
|
|
|
}
|
|
|
i++;
|
|
|
}
|