Merge branch 'feature/promote_tg_dm' of wmtx/platform into release

优化当前域名获取
master
万盟天下 4 years ago committed by Gogs
commit 4f185eeb8a

@ -99,7 +99,7 @@ class Request {
public function getHost()
{
$host = $this->getScheme() . '://' . $this->serverInfo['SERVER_NAME'];
$host = $this->getScheme() . '://' . $this->serverInfo['HTTP_HOST'];
if (in_array($this->serverInfo['SERVER_PORT'], [80, 443])) {
return $host;
}

Loading…
Cancel
Save