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