Url类改进

This commit is contained in:
thinkphp
2017-05-22 15:46:02 +08:00
parent ab2222b100
commit 4ceb4f4d95

View File

@@ -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后缀