update-novel-template1-url
This commit is contained in:
@@ -105,6 +105,7 @@ class Novel extends BaseController
|
||||
View::assign([
|
||||
'arrDayRankNovel' => $arrDayRankNovel,
|
||||
'arrWeekRankNovel' => $arrWeekRankNovel,
|
||||
|
||||
'arrMoonRankNovel' => $arrMoonRankNovel,
|
||||
'arrTotalRankNovel' => $arrTotalRankNovel,
|
||||
'arrNewsNovelRankNovel' => $arrNewsNovelRankNovel,
|
||||
@@ -118,8 +119,8 @@ class Novel extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
// 书库
|
||||
public function getLibrary(Request $Request)
|
||||
// 书库 [:strNovelChannel]-[:intCategoryId]-[:strStatus]-[:strTextNumber]-[:strUpdateTime]-[:strSort]
|
||||
public function getLibrary(Request $Request,$strNovelChannel=null,$intCategoryId=null,$strStatus=null,$strTextNumber=null,$strUpdateTime=null,$strSort=null,$intPage=1)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
@@ -175,10 +176,10 @@ class Novel extends BaseController
|
||||
}
|
||||
|
||||
// 男生女生频道
|
||||
public function getBoyNovel(Request $Request)
|
||||
public function getNovelChannel(Request $Request)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
$strChannel = $Request->param('strChannel'); // 区分男生/女生频道
|
||||
$strNovelChannel = $Request->param('strChannel'); // 区分男生/女生频道
|
||||
|
||||
// 模拟数据-推荐等级为9的,连载的,男生频道/女生频道, 随机12个小说
|
||||
$arrRecommendSerializationNovel = [
|
||||
@@ -237,15 +238,15 @@ class Novel extends BaseController
|
||||
'arrRecommendSerializationNovel' => $arrRecommendSerializationNovel,
|
||||
'arrRecommendEndNovel' => $arrRecommendEndNovel,
|
||||
'arrAdBanner' => [],
|
||||
'strPageCode' => $strChannel
|
||||
'strPageCode' => $strNovelChannel
|
||||
]);
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
} else {
|
||||
return View::fetch('pc/getBoyNovel');
|
||||
return View::fetch('pc/getNovelChannel');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 分类
|
||||
public function getNovelCategory(Request $Request)
|
||||
{
|
||||
@@ -319,7 +320,7 @@ class Novel extends BaseController
|
||||
}
|
||||
|
||||
// 小说详情
|
||||
public function getNovelInfo(Request $Request)
|
||||
public function getNovelInfo(Request $Request,$intNovelId = 1)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
@@ -335,6 +336,12 @@ class Novel extends BaseController
|
||||
['id' => 8, 'name' => '小说3', 'author' => '作者3'],
|
||||
];
|
||||
|
||||
// 最新章节 取最新5章节
|
||||
// 相邻推荐->关联的 kan 数据
|
||||
// 精品推荐->同分类随机10条数据
|
||||
// 最新要点->取新意章节, 随机提取一部分内容 大概150字数
|
||||
|
||||
|
||||
View::assign([
|
||||
'arrRecommendNovel' => $arrRecommendNovel,
|
||||
'strPageCode' => 'boy'
|
||||
@@ -347,7 +354,7 @@ class Novel extends BaseController
|
||||
}
|
||||
|
||||
// 小说章节
|
||||
public function getNovelChapter(Request $Request)
|
||||
public function getNovelChapter(Request $Request, $intNovelId = 1, $intChapterId = 1, $intChapterPage = 1)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
@@ -432,8 +439,8 @@ class Novel extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
// 小说章节-SEO-自定义页面-列表
|
||||
public function getSeoList(Request $Request)
|
||||
// 小说章节-文章-自定义页面-列表
|
||||
public function getArticleList(Request $Request,$intCategoryId = null ,$intPage = 1)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
@@ -456,12 +463,12 @@ class Novel extends BaseController
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
} else {
|
||||
return View::fetch('pc/getSeoList');
|
||||
return View::fetch('pc/getArticleList');
|
||||
}
|
||||
}
|
||||
|
||||
// 小说章节-SEO-自定义页面-详情
|
||||
public function getSeoInfo(Request $Request)
|
||||
// 小说章节-文章-自定义页面-详情
|
||||
public function getArticleInfo(Request $Request,$intArticleId)
|
||||
{
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
@@ -484,7 +491,7 @@ class Novel extends BaseController
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
} else {
|
||||
return View::fetch('pc/getSeoInfo');
|
||||
return View::fetch('pc/getArticleInfo');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class User extends BaseController
|
||||
// 获取路由附加的参数
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
// 模拟数据
|
||||
// 模拟数据-推荐作品 随机推荐等级为9的 10条数据
|
||||
$arrNewsNovel = [
|
||||
['id' => 1, 'name' => '小说1', 'author' => '作者1'],
|
||||
['id' => 2, 'name' => '小说2', 'author' => '作者2'],
|
||||
@@ -82,7 +82,7 @@ class User extends BaseController
|
||||
if ($boolIsMobile) {
|
||||
return View::fetch();
|
||||
} else {
|
||||
return View::fetch('Pc/User/history');
|
||||
return View::fetch('Pc/User/getHistory');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user