debug
This commit is contained in:
@@ -473,22 +473,14 @@ class Novel extends BaseController
|
|||||||
$arrPreChapter = $ChapterModel->getPreChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
|
$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']);
|
$arrNextChapter = $ChapterModel->getNextChapter($arrChapter['n_id'], $arrChapter['c_sort_num'], $arrChapter['c_page']);
|
||||||
|
|
||||||
|
// echo '<pre>';
|
||||||
|
// var_dump($arrChapter);
|
||||||
// 模拟数据
|
|
||||||
$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'],
|
|
||||||
];
|
|
||||||
|
|
||||||
View::assign([
|
View::assign([
|
||||||
'arrNewsNovel' => $arrNewsNovel,
|
'arrNovel' => $arrNovel,
|
||||||
|
'arrChapter' => $arrChapter,
|
||||||
|
'arrPreChapter' => $arrPreChapter,
|
||||||
|
'arrNextChapter' => $arrNextChapter,
|
||||||
'strPageCode' => 'boy',
|
'strPageCode' => 'boy',
|
||||||
'intNovelId' => $intNovelId,
|
'intNovelId' => $intNovelId,
|
||||||
'intChapterSort' => $intChapterSort,
|
'intChapterSort' => $intChapterSort,
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
<cite>最近阅读</cite>
|
<cite>最近阅读</cite>
|
||||||
<div class="dropdown last-read" id="j_nearList">
|
<div class="dropdown last-read" id="j_nearList">
|
||||||
<dl>
|
<dl>
|
||||||
{foreach $arrNewsNovel as $category}
|
|
||||||
<dd>
|
<dd>
|
||||||
<div class="book-wrap cf">
|
<div class="book-wrap cf">
|
||||||
<div class="book-cover fl">
|
<div class="book-cover fl">
|
||||||
@@ -50,7 +49,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</dd>
|
</dd>
|
||||||
{/foreach}
|
|
||||||
|
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
@@ -154,8 +152,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="read-content j_readContent">
|
<div class="read-content j_readContent">
|
||||||
<p> 章节内容转码失败!</p>
|
{$arrChapter.content}
|
||||||
<p> </p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -242,9 +239,7 @@
|
|||||||
<div class="catalog-list-wrap">
|
<div class="catalog-list-wrap">
|
||||||
<div class="volume-list">
|
<div class="volume-list">
|
||||||
<ul>
|
<ul>
|
||||||
{foreach $arrNewsNovel as $category}
|
|
||||||
{include file="Pc/Public/chapterTableAll" /}
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{block name="title"}{/block}
|
{block name="title"}{/block}
|
||||||
{block name="head-js"}{/block}
|
{block name="head-js"}{/block}
|
||||||
{block name="head-css"}
|
{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}
|
||||||
|
|
||||||
{block name="main"}
|
{block name="main"}
|
||||||
|
|||||||
Reference in New Issue
Block a user