mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Request的baseUrl方法
This commit is contained in:
@@ -216,10 +216,8 @@ class Request
|
||||
} elseif ($this->baseUrl) {
|
||||
return $this->baseUrl;
|
||||
} else {
|
||||
$url = $this->scheme() . '://' . $this->host();
|
||||
$url .= $_SERVER['PHP_SELF'];
|
||||
$this->baseUrl = $url;
|
||||
return $url;
|
||||
$this->baseUrl = rtrim($this->url(), '?' . $this->query());
|
||||
return $this->baseUrl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user