debug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user