diff --git a/code/app/home/config/router.php b/code/app/home/config/router.php index fcf1b45..bf201dc 100644 --- a/code/app/home/config/router.php +++ b/code/app/home/config/router.php @@ -66,7 +66,7 @@ Route::get('/pc/shuku/all', [Novel::class, 'getLibrary'])->append(['boolIsMobile */ Route::get('/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter']) ->append(['boolIsMobile' => true, 'intUriType' => 1]) - ->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+', 'intChapterId' => '\d+', 'intChapterPage' => '\d+']); + ->pattern(['intNovelId' => '\d+', 'name' => '[\w-]+','intChapterSort' => '\d+', 'intChapterPage' => '\d+']); Route::get('/pc/xiaoshuo/:name-:intNovelId/zhang-:intChapterSort/[:intChapterPage]', [Novel::class, 'getNovelChapter']) ->append(['boolIsMobile' => false, 'intUriType' => 1]) diff --git a/code/app/home/controller/Novel.php b/code/app/home/controller/Novel.php index 2f3175a..f4b425a 100644 --- a/code/app/home/controller/Novel.php +++ b/code/app/home/controller/Novel.php @@ -536,7 +536,6 @@ class Novel extends BaseController { $boolIsMobile = $Request->param('boolIsMobile'); - // 小说详情 $NovelModel = new NovelModel; $intNId = $intNovelId; @@ -552,6 +551,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']); + // 缺少数据 // 分类:男生和女生所对应的分类,看导航展示 // 这个小说的 分类拼音 diff --git a/code/app/home/view/kuangyu/Novel/getNovelChapter.html b/code/app/home/view/kuangyu/Novel/getNovelChapter.html index 901807e..6405fe7 100644 --- a/code/app/home/view/kuangyu/Novel/getNovelChapter.html +++ b/code/app/home/view/kuangyu/Novel/getNovelChapter.html @@ -21,9 +21,7 @@
    - {foreach $arrNewsNovel as $category} - {include file="Public/chapterTableAll" /} - {/foreach} +
@@ -38,29 +36,47 @@
- 上一章 - 上一章 --> + 上一章 + {else} + 上一章 + {/if} + + {if $arrNextChapter && $arrNextChapter.c_sort_num} + 下一章 - + {/if} +
-

“谁读的火焰风暴!”事已至此,秦渊只能依靠自己跟自己吐槽来安抚他生无可恋的内心了。

+ {$arrChapter.content|raw}
- 上一章 - 上一章 --> + 上一章 + {else} + 上一章 + {/if} + + {if $arrNextChapter && $arrNextChapter.c_sort_num} + 下一章 + {/if} + +
-

01 天龙问世

+

{$arrChapter.name}

你刚刚阅读到这里

1/1

@@ -186,7 +202,7 @@