diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index a50ba4f..48be835 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 = [ @@ -576,7 +577,7 @@ class Novel extends BaseController } /** - * 小说目录页面 + * 小说章节列表页面 * * @param Request $Request * @param [type] $intNovelId 小说id @@ -593,6 +594,9 @@ class Novel extends BaseController $intNId = $intNovelId; $arrNovel = $NovelModel->getNovelInfo($intNId); + $ChapterModel = new ChapterModel; + + // 章节目录 $arrChapter = [ ['c_sort_num' => 1, 'name' => '第1章', 'created_at' => '作者1'], @@ -622,7 +626,12 @@ class Novel extends BaseController - // 小说-搜索 + /** + * 小说-搜索 + * + * @param Request $Request + * @return void + */ public function getSearchNovel(Request $Request) { $boolIsMobile = $Request->param('boolIsMobile');