debug-log
This commit is contained in:
@@ -294,8 +294,8 @@ class ChapterService
|
||||
|
||||
$arrNovel = $this->NovelModel->getNovelByNId($arrParams['n_id']);
|
||||
$intButtonNum = $arrParams['button_num'];
|
||||
$intPage = $arrChapter['page'];
|
||||
$intLimit = $arrChapter['limit'];
|
||||
$intPage = $arrChapter['page'] ?? 1;
|
||||
$intLimit = $arrChapter['limit'] ?? 10 ;
|
||||
|
||||
$strBaseUrl = app(NovelService::class)->getNovelCatalogUrl($arrParams['n_id'], $arrNovel['n_name_pinyin'], $arrParams['sort_type'], '{page}');
|
||||
$arrPaginator = CusteomPage02::generate($intPage, $arrChapter['total'], $intLimit, $strBaseUrl, $intButtonNum);
|
||||
|
||||
@@ -148,7 +148,7 @@ class NovelService
|
||||
'intPage' => $intPage ?? 1,
|
||||
]);
|
||||
|
||||
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
|
||||
$strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl);
|
||||
return (string)$strUrl;
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ class NovelService
|
||||
'intPage' => $intPage ?? 1,
|
||||
]);
|
||||
|
||||
$strUrl = preg_replace('#/{2,}#', '/', $strUrl);
|
||||
$strUrl = preg_replace('#/{2,}#', '/', (string)$strUrl);
|
||||
return (string)$strUrl;
|
||||
}
|
||||
|
||||
@@ -593,8 +593,8 @@ class NovelService
|
||||
public function generateSearchPager(array $arrParams, array $arrSort, array $arrNovel): array
|
||||
{
|
||||
$strKey = $arrParams['key'];
|
||||
$intPage = $arrNovel['page'];
|
||||
$intLimit = $arrNovel['limit'];
|
||||
$intPage = $arrNovel['page'] ?? 1;
|
||||
$intLimit = $arrNovel['limit'] ?? 10;
|
||||
$intButtomNum = $arrParams['button_num'];
|
||||
$strBaseUrl = app(NovelService::class)->getNovelSearchUrl($strKey, '{page}');
|
||||
$arrPaginator = CusteomPage02::generate($intPage, $arrNovel['total'], $intLimit, $strBaseUrl, $intButtomNum);
|
||||
|
||||
@@ -360,13 +360,21 @@ class SiteContext
|
||||
$strOrder = $this->Request->param('strOrder');
|
||||
$strLang = $this->Request->param('strLang');
|
||||
$intPage = $this->Request->param('intPage');
|
||||
|
||||
$strVYear = 'all';
|
||||
if (!empty($strYear)) {
|
||||
if (key_exists($strYear, StaticConfig::$arrVideoYear) && $strYear != 'all') {
|
||||
$strVYear = StaticConfig::$arrVideoYear[$strYear];
|
||||
}
|
||||
}
|
||||
|
||||
ConverterMovel::setVal([
|
||||
'strVideoParentCategoryName' => empty($strParentCategory) || $strParentCategory == 'all' ? '' : StaticConfig::$arrVideoClass[$strParentCategory],
|
||||
'strVideoCategoryName' => empty($strCategory) || $strCategory == 'all' ? '' : VideoCategoryModel::$arrCategory[$strCategory],
|
||||
'strAreaName' => empty($strArea) || $strArea == 'all' ? '' : StaticConfig::$arrVideoArea[$strArea],
|
||||
'strLangName' => empty($strLang) || $strLang == 'all' ? '' : StaticConfig::$arrVideoLang[$strLang],
|
||||
'strOrderName' => empty($strOrder) || $strOrder == 'all' ? '' : StaticConfig::$arrVideoSortType[$strOrder],
|
||||
'strYear' => empty($strYear) || $strYear == 'all' ? '' : StaticConfig::$arrVideoYear[$strYear],
|
||||
'strYear' => $strVYear,
|
||||
'intPage' => $intPage ?? 1,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -487,6 +487,7 @@ class VideoService
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# v_year filter
|
||||
if (!empty($strVYear)) {
|
||||
if (key_exists($strVYear, StaticConfig::$arrVideoYear) && $strVYear != 'all') {
|
||||
@@ -634,7 +635,7 @@ class VideoService
|
||||
{
|
||||
$strKey = $arrParams['key'];
|
||||
$intPage = $arrVideo['page'] ?? 1;
|
||||
$intLimit = $arrVideo['limit'];
|
||||
$intLimit = $arrVideo['limit'] ?? 10;
|
||||
$intButtomNum = $arrParams['button_num'];
|
||||
$strBaseUrl = app(VideoService::class)->getVideoSearchUrl($strKey, '{page}');
|
||||
$arrPaginator = CusteomPage02::generate($intPage, $arrVideo['total'], $intLimit, $strBaseUrl, $intButtomNum);
|
||||
@@ -661,8 +662,8 @@ class VideoService
|
||||
$strYear = $arrParams['v_year'];
|
||||
$strOrder = $arrParams['sort_type'];
|
||||
|
||||
$intPage = $arrVideo['page'];
|
||||
$intLimit = $arrVideo['limit'];
|
||||
$intPage = $arrVideo['page'] ?? 1;
|
||||
$intLimit = $arrVideo['limit'] ?? 10;
|
||||
$intButtomNum = $arrParams['button_num'];
|
||||
$strBaseUrl = app(VideoService::class)->getVideoCategoryUrl($strCategory, $strParentCategory, $strArea, $strLang, $strYear, $strOrder, '{page}');
|
||||
$arrPaginator = CusteomPage02::generate($intPage, $arrVideo['total'], $intLimit, $strBaseUrl, $intButtomNum);
|
||||
|
||||
Reference in New Issue
Block a user