From 46df2e8be05ea02ae40f32140d656133aedfe4a5 Mon Sep 17 00:00:00 2001 From: ThinkPHP Date: Fri, 22 Nov 2024 12:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Url.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Url.php b/src/Url.php index 591f48e..6adb0a2 100644 --- a/src/Url.php +++ b/src/Url.php @@ -146,7 +146,7 @@ public function build(): string throw new \InvalidArgumentException('route name not exists:' . $name); } else { // 检测URL绑定 - $bind = $this->route->getDomainBind($domain && is_string($domain) ? $domain : null); + $bind = (string) $this->route->getDomainBind($domain && is_string($domain) ? $domain : null); if ($bind && 0 === strpos($url, $bind)) { $url = substr($url, strlen($bind) + 1);