From 39698ce5b1ca38fb54b09cb4c9d37cc097b4d3dc Mon Sep 17 00:00:00 2001 From: make Date: Mon, 14 Apr 2025 15:33:46 +0800 Subject: [PATCH] debug --- code/app/home/controller/Novel.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index 7f26700..0224a04 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -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);