mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
添加default_url_root参数设置默认URL根地址
This commit is contained in:
@@ -89,6 +89,8 @@ return [
|
|||||||
'url_route_must' => false,
|
'url_route_must' => false,
|
||||||
// 域名部署
|
// 域名部署
|
||||||
'url_domain_deploy' => false,
|
'url_domain_deploy' => false,
|
||||||
|
// 当前默认URL根地址
|
||||||
|
'default_url_root' => '',
|
||||||
// 域名根,如thinkphp.cn
|
// 域名根,如thinkphp.cn
|
||||||
'url_domain_root' => '',
|
'url_domain_root' => '',
|
||||||
// 是否自动转换URL中的控制器和操作名
|
// 是否自动转换URL中的控制器和操作名
|
||||||
|
|||||||
@@ -132,6 +132,9 @@ class Request
|
|||||||
if (is_null($this->filter)) {
|
if (is_null($this->filter)) {
|
||||||
$this->filter = Config::get('default_filter');
|
$this->filter = Config::get('default_filter');
|
||||||
}
|
}
|
||||||
|
if (Config::get('default_url_root')) {
|
||||||
|
$this->root(Config::get('default_url_root'));
|
||||||
|
}
|
||||||
// 保存 php://input
|
// 保存 php://input
|
||||||
$this->input = file_get_contents('php://input');
|
$this->input = file_get_contents('php://input');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user