debug-log

This commit is contained in:
make
2025-05-18 22:55:28 +08:00
parent 0468aa1b57
commit 3a0dab30f6
3 changed files with 8 additions and 4 deletions

View File

@@ -296,9 +296,10 @@ class ChapterService
$intButtonNum = $arrParams['button_num']; $intButtonNum = $arrParams['button_num'];
$intPage = $arrChapter['page'] ?? 1; $intPage = $arrChapter['page'] ?? 1;
$intLimit = $arrChapter['limit'] ?? 10 ; $intLimit = $arrChapter['limit'] ?? 10 ;
$intTotal = $arrChapter['total'] ?? 0;
$strBaseUrl = app(NovelService::class)->getNovelCatalogUrl($arrParams['n_id'], $arrNovel['n_name_pinyin'], $arrParams['sort_type'], '{page}'); $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); $arrPaginator = CusteomPage02::generate($intPage, $intTotal, $intLimit, $strBaseUrl, $intButtonNum);
return $arrPaginator; return $arrPaginator;
} }

View File

@@ -595,9 +595,10 @@ class NovelService
$strKey = $arrParams['key']; $strKey = $arrParams['key'];
$intPage = $arrNovel['page'] ?? 1; $intPage = $arrNovel['page'] ?? 1;
$intLimit = $arrNovel['limit'] ?? 10; $intLimit = $arrNovel['limit'] ?? 10;
$intTotal = $arrNovel['total'] ?? 0;
$intButtomNum = $arrParams['button_num']; $intButtomNum = $arrParams['button_num'];
$strBaseUrl = app(NovelService::class)->getNovelSearchUrl($strKey, '{page}'); $strBaseUrl = app(NovelService::class)->getNovelSearchUrl($strKey, '{page}');
$arrPaginator = CusteomPage02::generate($intPage, $arrNovel['total'], $intLimit, $strBaseUrl, $intButtomNum); $arrPaginator = CusteomPage02::generate($intPage, $intTotal, $intLimit, $strBaseUrl, $intButtomNum);
return $arrPaginator; return $arrPaginator;
} }

View File

@@ -636,9 +636,10 @@ class VideoService
$strKey = $arrParams['key']; $strKey = $arrParams['key'];
$intPage = $arrVideo['page'] ?? 1; $intPage = $arrVideo['page'] ?? 1;
$intLimit = $arrVideo['limit'] ?? 10; $intLimit = $arrVideo['limit'] ?? 10;
$intTotal = $arrVideo['total'] ?? 0;
$intButtomNum = $arrParams['button_num']; $intButtomNum = $arrParams['button_num'];
$strBaseUrl = app(VideoService::class)->getVideoSearchUrl($strKey, '{page}'); $strBaseUrl = app(VideoService::class)->getVideoSearchUrl($strKey, '{page}');
$arrPaginator = CusteomPage02::generate($intPage, $arrVideo['total'], $intLimit, $strBaseUrl, $intButtomNum); $arrPaginator = CusteomPage02::generate($intPage, $intTotal, $intLimit, $strBaseUrl, $intButtomNum);
return $arrPaginator; return $arrPaginator;
} }
@@ -664,9 +665,10 @@ class VideoService
$intPage = $arrVideo['page'] ?? 1; $intPage = $arrVideo['page'] ?? 1;
$intLimit = $arrVideo['limit'] ?? 10; $intLimit = $arrVideo['limit'] ?? 10;
$intTotal = $arrVideo['total'] ?? 0;
$intButtomNum = $arrParams['button_num']; $intButtomNum = $arrParams['button_num'];
$strBaseUrl = app(VideoService::class)->getVideoCategoryUrl($strCategory, $strParentCategory, $strArea, $strLang, $strYear, $strOrder, '{page}'); $strBaseUrl = app(VideoService::class)->getVideoCategoryUrl($strCategory, $strParentCategory, $strArea, $strLang, $strYear, $strOrder, '{page}');
$arrPaginator = CusteomPage02::generate($intPage, $arrVideo['total'], $intLimit, $strBaseUrl, $intButtomNum); $arrPaginator = CusteomPage02::generate($intPage, $intTotal, $intLimit, $strBaseUrl, $intButtomNum);
return $arrPaginator; return $arrPaginator;
} }