This commit is contained in:
make
2025-04-14 15:33:46 +08:00
parent 0e0435e6df
commit 39698ce5b1

View File

@@ -595,6 +595,9 @@ class Novel extends BaseController
$NovelModel = NovelModel::getInstance();
$arrNovel = $NovelModel->getNovelByNId($intNId);
$arrNovel['category_pinyin'] = $arrNovel['category_pinyin'] ?? 'all';
$arrNovel['category_sex'] = $arrNovel['category_sex'] ?? 'man';
// 最新章节
$ChapterModel = ChapterModel::getInstance();
$arrChapter = $ChapterModel->getLatestChapterByNId($intNId);
@@ -676,6 +679,9 @@ class Novel extends BaseController
$intNId = $intNovelId;
$arrNovel = $NovelModel->getNovelByNId($intNId);
$arrNovel['category_pinyin'] = $arrNovel['category_pinyin'] ?? 'all';
$arrNovel['category_sex'] = $arrNovel['category_sex'] ?? 'man';
// 章节
$ChapterModel = ChapterModel::getInstance();
$arrFilter = ['n_id' => $intNId, 'c_sort_num' => $intChapterSort, 'c_page' => $intChapterPage];
@@ -759,6 +765,9 @@ class Novel extends BaseController
$intNId = $intNovelId;
$arrNovel = $NovelModel->getNovelByNId($intNId);
$arrNovel['category_pinyin'] = $arrNovel['category_pinyin'] ?? 'all';
$arrNovel['category_sex'] = $arrNovel['category_sex'] ?? 'man';
$ChapterModel = ChapterModel::getInstance();
$strKey = sprintf('Nid:%s:Chapter-Page:%s:Order:%s', $intNId, $intPage, $strOrder);