mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进Request类的domain方法
This commit is contained in:
@@ -275,9 +275,6 @@ class Request
|
||||
return $this;
|
||||
} elseif (!$this->domain) {
|
||||
$this->domain = $this->scheme() . '://' . $this->host();
|
||||
if (!in_array($this->port(), ['80', '443'])) {
|
||||
$this->domain .= ':' . $this->port();
|
||||
}
|
||||
}
|
||||
return $this->domain;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user