debug
This commit is contained in:
@@ -86,7 +86,7 @@ class Novel extends BaseController
|
||||
$boolIsMobile = $Request->param('boolIsMobile');
|
||||
|
||||
// 性别
|
||||
|
||||
|
||||
$arrSex = [
|
||||
'all' => 0,
|
||||
'nansheng-xiaoshuo' => 1,
|
||||
@@ -100,17 +100,15 @@ class Novel extends BaseController
|
||||
$intGender = $arrSex[$strGender];
|
||||
|
||||
// 分类
|
||||
// $strCategory = $Request->param('strCategory');
|
||||
|
||||
if ($strCategory == 'all') {
|
||||
$strSearchCategory = NULL;
|
||||
} else if (!in_array($strGender, CategoryModel::$arrCategoryPinYin)) {
|
||||
} else if (!in_array($strCategory, CategoryModel::$arrCategoryPinYin)) {
|
||||
return response('Bad Request', 400);
|
||||
} else {
|
||||
$strCategoryKey = array_search($strGender, CategoryModel::$arrCategoryPinYin);
|
||||
$strCategoryKey = array_search($strCategory, CategoryModel::$arrCategoryPinYin);
|
||||
$strSearchCategory = CategoryModel::$arrCategory[$strCategoryKey];
|
||||
}
|
||||
|
||||
|
||||
// 小说状态
|
||||
// $strStatus = $Request->param('strStatus');
|
||||
$arrStatus = [
|
||||
@@ -140,7 +138,7 @@ class Novel extends BaseController
|
||||
$arrPage = $NovelModel->getCommonNovelPageOnCache($strKey, $intPage, $intLimit, $intLifeTime, $intGender, $strSearchStatus);
|
||||
|
||||
|
||||
$strTemplate = NULL;
|
||||
$strTemplate = '';
|
||||
$intButtomNum = 5;
|
||||
if ($boolIsMobile == false) {
|
||||
$intButtomNum = 10;
|
||||
@@ -162,8 +160,6 @@ class Novel extends BaseController
|
||||
'arrPaginator' => $arrPaginator,
|
||||
]);
|
||||
|
||||
|
||||
|
||||
return View::fetch($strTemplate);
|
||||
}
|
||||
|
||||
@@ -349,7 +345,6 @@ class Novel extends BaseController
|
||||
// 精品推荐->同分类随机10条数据
|
||||
// 最新要点->取新意章节, 随机提取一部分内容 大概150字数
|
||||
|
||||
|
||||
// {strNovelName}最新章节_{strNovelName}{strNovelAuthor}_{strNovelName}全文阅读_{strSiteName}
|
||||
// {strNovelName}免费全文阅读-{strNovelName}{strNovelAuthor}-{strSiteName}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user