diff --git a/code/app/common.php b/code/app/common.php index 49ca04b..170035f 100644 --- a/code/app/common.php +++ b/code/app/common.php @@ -69,13 +69,13 @@ namespace { function replaceLastPageNumber($url, $number) { // 使用正则表达式替换最后一个 "1" 为 "number" - return preg_replace('/1(?=[^1]*$)/', $number, $url); + return preg_replace('/1(?=[^1]*$)/', $number, (string)$url); } function removeScriptTags($rpText, $newText) { // 使用正则表达式替换所有