diff --git a/library/think/Url.php b/library/think/Url.php index 24a2b4e3..a354b68c 100644 --- a/library/think/Url.php +++ b/library/think/Url.php @@ -272,7 +272,7 @@ class Url $domain .= '.' . $rootDomain; } } - return ($request->isSsl() ? 'https://' : 'http://') . $domain; + return ($request->isSsl() || Config::get('is_https') ? 'https://' : 'http://') . $domain; } // 解析URL后缀