This commit is contained in:
make
2025-04-01 17:32:45 +08:00
parent 521347c20f
commit 7a98fd404c
13 changed files with 110 additions and 107 deletions

View File

@@ -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}