This commit is contained in:
make
2025-04-20 21:50:58 +08:00
parent 34206fe268
commit 3216cffb5e
15 changed files with 352 additions and 233 deletions

View File

@@ -158,10 +158,10 @@ class NovelService
{
$strKey = 'CATEGORY_INFO_URL';
$strUrl = $this->getPageUrl($strKey, [
'strGender' => $strGender ?? '',
'strCategory' => $strCategory ?? '',
'strStatus' => $strStatus ?? '',
'strOrder' => $strOrder ?? '',
'strGender' => $strGender ?? 'all',
'strCategory' => $strCategory ?? 'all',
'strStatus' => $strStatus ?? 'all',
'strOrder' => $strOrder ?? 'all',
'intPage' => $intPage ?? 1,
]);
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
@@ -234,9 +234,16 @@ class NovelService
*
* @return array
*/
public function getCategoryFilter(): array
public function getCategoryFilter(string $n_sex=''): array
{
return array_combine(CategoryModel::$arrCategoryPinYin, CategoryModel::$arrCategory);
if($n_sex == 'man'){
return CategoryModel::$arrCategoryAll['man'];
}else if($n_sex == 'women'){
return CategoryModel::$arrCategoryAll['women'];
}else{
return array_combine(CategoryModel::$arrCategoryPinYin, CategoryModel::$arrCategory);
}
}
/**