小说第一模板 url 设计
This commit is contained in:
@@ -387,8 +387,16 @@ class Novel extends BaseController
|
||||
}
|
||||
|
||||
|
||||
// 小说章节
|
||||
public function getNovelChapter(Request $Request, $intNovelId = 1, $intChapterId = 1, $intChapterPage = 1)
|
||||
/**
|
||||
* 小说章节
|
||||
*
|
||||
* @param Request $Request
|
||||
* @param integer $intNovelId 小说id
|
||||
* @param integer $intChapterSort 章节排序 序号
|
||||
* @param integer $intChapterPage 每个章节的分页
|
||||
* @return void
|
||||
*/
|
||||
public function getNovelChapter(Request $Request, $intNovelId = 1, $intChapterSort = 1, $intChapterPage = 0)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
@@ -406,7 +414,10 @@ class Novel extends BaseController
|
||||
|
||||
View::assign([
|
||||
'arrNewsNovel' => $arrNewsNovel,
|
||||
'strPageCode' => 'boy'
|
||||
'strPageCode' => 'boy',
|
||||
'intNovelId' => $intNovelId,
|
||||
'intChapterSort' => $intChapterSort,
|
||||
'intChapterPage' => $intChapterPage,
|
||||
]);
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
@@ -415,8 +426,16 @@ class Novel extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
// 小说章节-所有章节
|
||||
public function getNovelChapterAll(Request $Request, $intNovelId = null, $intPage = 1, $strSort = 'asc')
|
||||
/**
|
||||
* 小说目录页面
|
||||
*
|
||||
* @param Request $Request
|
||||
* @param [type] $intNovelId 小说id
|
||||
* @param integer $intPage 目录分页
|
||||
* @param string $strOrder 正序倒叙:zheng/dao
|
||||
* @return void
|
||||
*/
|
||||
public function getNovelChapterAll(Request $Request, $intNovelId = null, $intPage = 1, $strOrder = 'zheng')
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
// 模拟数据
|
||||
@@ -433,7 +452,9 @@ class Novel extends BaseController
|
||||
|
||||
View::assign([
|
||||
'arrNovelChapterAll' => $arrNovelChapterAll,
|
||||
'strSort' => $strSort,
|
||||
'intNovelId' => $intNovelId,
|
||||
'intPage' => $intPage,
|
||||
'strOrder' => $strOrder,
|
||||
'strPageCode' => 'chapters',
|
||||
]);
|
||||
if ($boolIsMobile) {
|
||||
|
||||
Reference in New Issue
Block a user