mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
改进Url类的域名传入
This commit is contained in:
@@ -272,7 +272,12 @@ class Url
|
|||||||
$domain .= '.' . $rootDomain;
|
$domain .= '.' . $rootDomain;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ($request->isSsl() || Config::get('is_https') ? 'https://' : 'http://') . $domain;
|
if (false !== strpos($domain, ':')) {
|
||||||
|
$scheme = '';
|
||||||
|
} else {
|
||||||
|
$scheme = $request->isSsl() || Config::get('is_https') ? 'https://' : 'http://';
|
||||||
|
}
|
||||||
|
return $scheme . $domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 解析URL后缀
|
// 解析URL后缀
|
||||||
|
|||||||
Reference in New Issue
Block a user