From 3a0dab30f614496dca673787d3171e24319f2eb4 Mon Sep 17 00:00:00 2001 From: make Date: Sun, 18 May 2025 22:55:28 +0800 Subject: [PATCH] debug-log --- code/app/services/ChapterService.php | 3 ++- code/app/services/NovelService.php | 3 ++- code/app/services/VideoService.php | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/code/app/services/ChapterService.php b/code/app/services/ChapterService.php index 0f88976..1bb74e8 100644 --- a/code/app/services/ChapterService.php +++ b/code/app/services/ChapterService.php @@ -296,9 +296,10 @@ class ChapterService $intButtonNum = $arrParams['button_num']; $intPage = $arrChapter['page'] ?? 1; $intLimit = $arrChapter['limit'] ?? 10 ; + $intTotal = $arrChapter['total'] ?? 0; $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; } diff --git a/code/app/services/NovelService.php b/code/app/services/NovelService.php index 2e8f074..72fc7e5 100644 --- a/code/app/services/NovelService.php +++ b/code/app/services/NovelService.php @@ -595,9 +595,10 @@ class NovelService $strKey = $arrParams['key']; $intPage = $arrNovel['page'] ?? 1; $intLimit = $arrNovel['limit'] ?? 10; + $intTotal = $arrNovel['total'] ?? 0; $intButtomNum = $arrParams['button_num']; $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; } diff --git a/code/app/services/VideoService.php b/code/app/services/VideoService.php index 4603f3a..479a55a 100644 --- a/code/app/services/VideoService.php +++ b/code/app/services/VideoService.php @@ -636,9 +636,10 @@ class VideoService $strKey = $arrParams['key']; $intPage = $arrVideo['page'] ?? 1; $intLimit = $arrVideo['limit'] ?? 10; + $intTotal = $arrVideo['total'] ?? 0; $intButtomNum = $arrParams['button_num']; $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; } @@ -664,9 +665,10 @@ class VideoService $intPage = $arrVideo['page'] ?? 1; $intLimit = $arrVideo['limit'] ?? 10; + $intTotal = $arrVideo['total'] ?? 0; $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); + $arrPaginator = CusteomPage02::generate($intPage, $intTotal, $intLimit, $strBaseUrl, $intButtomNum); return $arrPaginator; }