diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index b594a77..a094b74 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -473,22 +473,14 @@ 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']); - - - // 模拟数据 - $arrNewsNovel = [ - ['id' => 1, 'name' => '小说1', 'author' => '作者1'], - ['id' => 2, 'name' => '小说2', 'author' => '作者2'], - ['id' => 3, 'name' => '小说3', 'author' => '作者3'], - ['id' => 4, 'name' => '小说3', 'author' => '作者3'], - ['id' => 5, 'name' => '小说3', 'author' => '作者3'], - ['id' => 6, 'name' => '小说3', 'author' => '作者3'], - ['id' => 7, 'name' => '小说3', 'author' => '作者3'], - ['id' => 8, 'name' => '小说3', 'author' => '作者3'], - ]; + // echo '
';
+        // var_dump($arrChapter);
 
         View::assign([
-            'arrNewsNovel' => $arrNewsNovel,
+            'arrNovel' => $arrNovel,
+            'arrChapter' => $arrChapter,
+            'arrPreChapter' => $arrPreChapter,
+            'arrNextChapter' => $arrNextChapter,
             'strPageCode' => 'boy',
             'intNovelId' => $intNovelId,
             'intChapterSort' => $intChapterSort,
diff --git a/code/app/home/view/kuangyu/Pc/getNovelChapter.html b/code/app/home/view/kuangyu/Pc/getNovelChapter.html
index f9a7ed4..6215869 100644
--- a/code/app/home/view/kuangyu/Pc/getNovelChapter.html
+++ b/code/app/home/view/kuangyu/Pc/getNovelChapter.html
@@ -26,7 +26,6 @@
 							最近阅读
 							
 						
 						
-

  章节内容转码失败!

-

+ {$arrChapter.content}
@@ -242,9 +239,7 @@
    - {foreach $arrNewsNovel as $category} - {include file="Pc/Public/chapterTableAll" /} - {/foreach} +
diff --git a/code/app/home/view/kuangyu/Pc/getNovelInfo.html b/code/app/home/view/kuangyu/Pc/getNovelInfo.html index 5d4fcd6..bec6703 100644 --- a/code/app/home/view/kuangyu/Pc/getNovelInfo.html +++ b/code/app/home/view/kuangyu/Pc/getNovelInfo.html @@ -3,7 +3,7 @@ {block name="title"}{/block} {block name="head-js"}{/block} {block name="head-css"} - + {/block} {block name="main"}