This commit is contained in:
2019-06-19 22:41:40 +08:00
parent 5c31e8e612
commit d3eef9c5fd
34 changed files with 1464 additions and 107 deletions

View File

@@ -17,39 +17,31 @@ use think\facade\Env;
return [
// 应用地址
'app_host' => Env::get('app.host', ''),
// 应用Trace环境变量优先读取
'app_trace' => true,
'app_host' => Env::get('app.host', ''),
// 应用的命名空间
'app_namespace' => '',
'app_namespace' => '',
// 是否启用路由
'with_route' => true,
'with_route' => true,
// 是否启用事件
'with_event' => true,
'with_event' => true,
// 自动多应用模式
'auto_multi_app' => true,
'auto_multi_app' => true,
// 应用映射(自动多应用模式有效)
'app_map' => [],
'app_map' => [],
// 域名绑定(自动多应用模式有效)
'domain_bind' => [],
'domain_bind' => [],
// 禁止URL访问的应用列表自动多应用模式有效
'deny_app_list' => [],
'deny_app_list' => [],
// 默认应用
'default_app' => 'index',
'default_app' => 'index',
// 默认时区
'default_timezone' => 'Asia/Shanghai',
// 默认验证器
'default_validate' => '',
// 默认跳转页面对应的模板文件
'dispatch_success_tmpl' => app()->getThinkPath() . 'tpl/dispatch_jump.tpl',
'dispatch_error_tmpl' => app()->getThinkPath() . 'tpl/dispatch_jump.tpl',
'default_timezone' => 'Asia/Shanghai',
// 异常页面的模板文件
'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',
'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => false,
'show_error_msg' => false,
];