改进Request类的domain方法

This commit is contained in:
thinkphp
2016-12-23 15:36:22 +08:00
parent 2c03514d98
commit c8712192be

View File

@@ -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;
}