diff --git a/src/Url.php b/src/Url.php index 11783d6..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 = (string)$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);