修正域名部署

This commit is contained in:
thinkphp
2016-01-05 10:48:02 +08:00
parent 7f9e88d0ce
commit 0c5a475e13

View File

@@ -238,6 +238,12 @@ class Route
// 检测URL路由
public static function check($url, $depr = '/')
{
// 检测域名部署
self::checkDomain();
if (!empty(self::$bind)) {
$url = implode('/', self::$bind) . '/' . $url;
}
// 优先检测是否存在PATH_INFO
if (empty($url)) {
$url = '/';
@@ -246,8 +252,6 @@ class Route
if ('/' != $depr) {
$url = str_replace($depr, '/', $url);
}
// 检测域名部署
self::checkDomain();
if (isset(self::$map[$url])) {
// URL映射