Skip to content

Commit

Permalink
调整
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st authored Nov 22, 2024
1 parent ce74364 commit 46df2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 46df2e8

Please # to comment.