default
This commit is contained in:
@@ -147,34 +147,7 @@ class Novel extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
// 书架
|
||||
public function getBookShelf(Request $Request)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
// 模拟数据
|
||||
$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([
|
||||
'arrNewsNovel' => $arrNewsNovel,
|
||||
'strPageCode' => 'bookshelf'
|
||||
]);
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
} else {
|
||||
return View::fetch('pc/getBookShelf');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 男生女生频道
|
||||
public function getNovelChannel(Request $Request)
|
||||
{
|
||||
@@ -248,7 +221,7 @@ class Novel extends BaseController
|
||||
}
|
||||
|
||||
// 分类
|
||||
public function getNovelCategory(Request $Request)
|
||||
public function getNovelCategory(Request $Request,$intCategoryId = null ,$intPage = 1)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
$strChannel = $Request->param('strChannel'); // 区分男生 / 女生频道
|
||||
@@ -310,7 +283,7 @@ class Novel extends BaseController
|
||||
'arrRecommendSerializationNovel' => $arrRecommendSerializationNovel,
|
||||
'arrRecommendEndNovel' => $arrRecommendEndNovel,
|
||||
'arrAdBanner' => [],
|
||||
'strPageCode' => $strChannel
|
||||
'strPageCode' => 'category'
|
||||
]);
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
@@ -382,10 +355,9 @@ class Novel extends BaseController
|
||||
}
|
||||
|
||||
// 小说章节-所有章节
|
||||
public function getNovelChapterAll(Request $Request)
|
||||
public function getNovelChapterAll(Request $Request,$intNovelId=null,$intPage=1,$strSort='asc')
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
// 模拟数据
|
||||
$arrNovelChapterAll = [
|
||||
['id' => 1, 'name' => '小说1', 'author' => '作者1'],
|
||||
@@ -400,7 +372,8 @@ class Novel extends BaseController
|
||||
|
||||
View::assign([
|
||||
'arrNovelChapterAll' => $arrNovelChapterAll,
|
||||
'strPageCode' => 'boy'
|
||||
'strSort' => $strSort,
|
||||
'strPageCode' => 'chapters',
|
||||
]);
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
|
||||
@@ -52,6 +52,7 @@ class User extends BaseController
|
||||
|
||||
View::assign([
|
||||
'arrNewsNovel' => $arrNewsNovel,
|
||||
'strPageCode' => 'category'
|
||||
]);
|
||||
|
||||
if ($boolIsMobile) {
|
||||
@@ -77,6 +78,7 @@ class User extends BaseController
|
||||
|
||||
View::assign([
|
||||
'arrNewsNovel' => $arrNewsNovel,
|
||||
'strPageCode' => 'history'
|
||||
]);
|
||||
|
||||
if ($boolIsMobile) {
|
||||
|
||||
Reference in New Issue
Block a user