添加default_url_root参数设置默认URL根地址

This commit is contained in:
thinkphp
2017-05-22 12:39:46 +08:00
parent 37ff5677dc
commit bb3cfae0a6
2 changed files with 5 additions and 0 deletions

View File

@@ -132,6 +132,9 @@ class Request
if (is_null($this->filter)) {
$this->filter = Config::get('default_filter');
}
if (Config::get('default_url_root')) {
$this->root(Config::get('default_url_root'));
}
// 保存 php://input
$this->input = file_get_contents('php://input');
}