From 94a3595c182d3d78c0234232c12c081308fbaadb Mon Sep 17 00:00:00 2001 From: make Date: Tue, 20 May 2025 20:05:23 +0800 Subject: [PATCH] debug-log-grm --- code/app/common.php | 6 +++-- code/app/home/view/default/index/index.html | 15 ++++++++--- .../home/view/default/novel/getLibrary.html | 5 +++- .../view/default/novel/getNovelCatalog.html | 5 +++- .../view/default/novel/getNovelChapter.html | 5 +++- .../home/view/default/novel/getNovelInfo.html | 13 +++++++--- code/app/home/view/default/pc/getLibrary.html | 4 ++- code/app/home/view/default/pc/index.html | 25 ++++++++++++++----- .../home/view/haoZi/novel/getNovelInfo.html | 9 +++++-- .../view/haoZi/pc/public/endNovelList.html | 5 +++- .../view/haoZi/pc/public/hostListImg.html | 4 ++- .../view/haoZi/pc/public/hostListText.html | 4 ++- .../haoZi/pc/public/indexBoyNewsList.html | 4 ++- .../view/haoZi/pc/public/indexBoyNewsOne.html | 4 ++- .../haoZi/pc/public/indexBoyRankList.html | 4 ++- .../view/haoZi/pc/public/indexBoyRankOne.html | 4 ++- .../haoZi/pc/public/indexNewsUpdateList.html | 4 ++- .../view/haoZi/pc/public/shukuNovelList.html | 4 ++- .../view/haoZi/pc/public/swiperListImg.html | 4 ++- .../home/view/kuangYu/pc/getNovelChapter.html | 2 +- .../home/view/kuangYu/pc/getNovelInfo.html | 4 ++- code/app/home/view/shikong/pc/index.html | 24 +++++++++++++----- .../view/shikong/public/allChapterPage.html | 8 ++++-- .../home/view/xiongMao/novel/getLibrary.html | 4 ++- .../view/xiongMao/novel/getNovelCatalog.html | 4 ++- .../view/xiongMao/novel/getNovelInfo.html | 8 ++++-- .../app/home/view/xiongMao/pc/user/index.html | 4 ++- .../view/xiongMao/public/allChapterPage.html | 8 ++++-- .../home/view/xiongMao/public/novelListH.html | 4 ++- .../view/xiongMao/public/novelListRank.html | 4 ++- .../home/view/xiongMao/public/novelListS.html | 4 ++- code/app/services/NovelService.php | 8 +++--- code/app/services/VideoService.php | 12 ++++----- 33 files changed, 165 insertions(+), 61 deletions(-) diff --git a/code/app/common.php b/code/app/common.php index 170035f..3a19cb7 100644 --- a/code/app/common.php +++ b/code/app/common.php @@ -68,14 +68,16 @@ namespace { function replaceLastPageNumber($url, $number) { + $url = (string)($url ?? ''); // 使用正则表达式替换最后一个 "1" 为 "number" - return preg_replace('/1(?=[^1]*$)/', $number, (string)$url); + return preg_replace('/1(?=[^1]*$)/', $number, $url); } function removeScriptTags($rpText, $newText) { + $newText = (string)($newText ?? ''); // 使用正则表达式替换所有