改进Request类和Route类的checkDomain方法

This commit is contained in:
thinkphp
2016-06-13 17:51:21 +08:00
parent 8c7302f04f
commit e14174fd63
2 changed files with 12 additions and 5 deletions

View File

@@ -192,6 +192,11 @@ class Request
$options['cookie'] = $cookie;
$options['file'] = $files;
$options['server'] = $server;
$options['url'] = $server['REQUEST_URI'];
$options['baseUrl'] = $info['path'];
$options['pathinfo'] = $info['path'];
$options['method'] = $server['REQUEST_METHOD'];
$options['domain'] = $server['HTTP_HOST'];
self::$instance = new self($options);
return self::$instance;
}