This commit is contained in:
make
2025-04-01 22:38:18 +08:00
parent acca888857
commit 40de78c605
3 changed files with 9 additions and 22 deletions

View File

@@ -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 '<pre>';
// var_dump($arrChapter);
View::assign([
'arrNewsNovel' => $arrNewsNovel,
'arrNovel' => $arrNovel,
'arrChapter' => $arrChapter,
'arrPreChapter' => $arrPreChapter,
'arrNextChapter' => $arrNextChapter,
'strPageCode' => 'boy',
'intNovelId' => $intNovelId,
'intChapterSort' => $intChapterSort,

View File

@@ -26,7 +26,6 @@
<cite>最近阅读</cite>
<div class="dropdown last-read" id="j_nearList">
<dl>
{foreach $arrNewsNovel as $category}
<dd>
<div class="book-wrap cf">
<div class="book-cover fl">
@@ -50,7 +49,6 @@
</div>
</div>
</dd>
{/foreach}
</dl>
@@ -154,8 +152,7 @@
</div>
</div>
<div class="read-content j_readContent">
<p>  章节内容转码失败!</p>
<p> </p>
{$arrChapter.content}
</div>
</div>
</div>
@@ -242,9 +239,7 @@
<div class="catalog-list-wrap">
<div class="volume-list">
<ul>
{foreach $arrNewsNovel as $category}
{include file="Pc/Public/chapterTableAll" /}
{/foreach}
</ul>
</div>
</div>

View File

@@ -3,7 +3,7 @@
{block name="title"}{/block}
{block name="head-js"}{/block}
{block name="head-css"}
<link rel="canonical" href="{Request->DomainModel->d_domain}/book-name-1">
<link rel="canonical" href='{Request->DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
{/block}
{block name="main"}