This commit is contained in:
make
2025-04-03 19:51:35 +08:00
parent 6e4060ef4f
commit ed4be0ec10
2 changed files with 7 additions and 6 deletions

View File

@@ -618,10 +618,10 @@ class Novel extends BaseController
$strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['og_novel_pin_yin'], $intNId, $strOrder);
$arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
// echo '<pre>';
// print_r($arrPaginator);
// exit;
echo '<pre>';
print_r($arrPage);
exit;
// 章节目录
$arrChapter = [
['c_sort_num' => 1, 'name' => '第1章', 'created_at' => '作者1'],
@@ -635,6 +635,7 @@ class Novel extends BaseController
View::assign([
'arrNovel' => $arrNovel,
'arrPage' => $arrPage,
'arrChapter' => $arrChapter,
'intNovelId' => $intNovelId,
'intPage' => $intPage,

View File

@@ -57,9 +57,9 @@
</div>
<div class="fL_con">
<ul>
{foreach $arrChapter as $Chapter}
{foreach $arrPage.data as $Chapter}
<li>
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" target="_blank">{$Chapter.created_at}</a>
<a href="/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$Chapter.c_sort_num}" target="_blank">{$Chapter.name}</a>
</li>
{/foreach}
</ul>