From 1d70d1cb0aad4f747bcb2a5540ca32c5584f3518 Mon Sep 17 00:00:00 2001 From: Default Date: Thu, 3 Apr 2025 16:52:25 +0800 Subject: [PATCH] fix category info on chapter info . --- code/app/home/controller/Novel.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index 2cce12a..b71137b 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -497,6 +497,7 @@ class Novel extends BaseController $arrPreChapter = $ChapterModel->getPreChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']); $arrNextChapter = $ChapterModel->getNextChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']); + $arrCategoryAll = CategoryModel::$arrCategoryAll; // 模拟数据-随机推荐数据10条 $arrNewsNovel = [ @@ -584,7 +585,7 @@ class Novel extends BaseController } /** - * 小说目录页面 + * 小说章节列表页面 * * @param Request $Request * @param [type] $intNovelId 小说id @@ -601,6 +602,9 @@ class Novel extends BaseController $intNId = $intNovelId; $arrNovel = $NovelModel->getNovelInfo($intNId); + $ChapterModel = new ChapterModel; + + // 章节目录 $arrChapter = [ ['c_sort_num' => 1, 'name' => '第1章', 'created_at' => '作者1'], @@ -630,7 +634,12 @@ class Novel extends BaseController - // 小说-搜索 + /** + * 小说-搜索 + * + * @param Request $Request + * @return void + */ public function getSearchNovel(Request $Request) { $boolIsMobile = $Request->param('boolIsMobile');