改进url生成的端口问题

This commit is contained in:
thinkphp
2018-07-19 15:41:22 +08:00
parent aee39266d8
commit 368272f7e3

View File

@@ -239,7 +239,7 @@ class Url
$rootDomain = Config::get('url_domain_root');
if (true === $domain) {
// 自动判断域名
$domain = Config::get('app_host') ?: $request->host(true);
$domain = Config::get('app_host') ?: $request->host();
$domains = Route::rules('domain');
if ($domains) {