Merge branch 'dev' of ssh://git.bgbg.live:18150/root/SEONexus into dev

This commit is contained in:
Default
2025-04-04 00:48:18 +08:00
2 changed files with 6 additions and 5 deletions

View File

@@ -620,7 +620,7 @@ class Novel extends BaseController
$strKey = sprintf('Nid:%s:Chapter-Page:%s:Order:%s', $intNId, $intPage, $strOrder); $strKey = sprintf('Nid:%s:Chapter-Page:%s:Order:%s', $intNId, $intPage, $strOrder);
$arrFilter = ['n_id' => $intNId, 'c_page' => 0,]; $arrFilter = ['n_id' => $intNId, 'c_page' => 0,];
$intLimit = 100; $intLimit = 10;
$intLifeTime = 12 * 3600; $intLifeTime = 12 * 3600;
if ($strOrder == 'zheng') { if ($strOrder == 'zheng') {
@@ -638,9 +638,9 @@ class Novel extends BaseController
$strBaseUrl = sprintf('/pc/xiaoshuo/%s-%s/mulu/%s/{page}', $arrNovel['og_novel_pin_yin'], $intNId, $strOrder); $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); $arrPaginator = CusteomPage02::generate($intPage, $arrPage['total'], $intLimit, $strBaseUrl, $intButtomNum);
// echo '<pre>'; // echo '<pre>';
// print_r($arrPaginator);
// print_r($arrPage);
// exit; // exit;
// 章节目录 // 章节目录
$arrChapter = [ $arrChapter = [
@@ -655,6 +655,7 @@ class Novel extends BaseController
View::assign([ View::assign([
'arrNovel' => $arrNovel, 'arrNovel' => $arrNovel,
'arrPage' => $arrPage,
'arrChapter' => $arrChapter, 'arrChapter' => $arrChapter,
'intNovelId' => $intNovelId, 'intNovelId' => $intNovelId,
'intPage' => $intPage, 'intPage' => $intPage,

View File

@@ -57,9 +57,9 @@
</div> </div>
<div class="fL_con"> <div class="fL_con">
<ul> <ul>
{foreach $arrChapter as $Chapter} {foreach $arrPage.data as $Chapter}
<li> <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> </li>
{/foreach} {/foreach}
</ul> </ul>