mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
修正警告错误
This commit is contained in:
@@ -23,6 +23,8 @@ return [
|
|||||||
'empty_controller' => 'error',
|
'empty_controller' => 'error',
|
||||||
// 操作方法后缀
|
// 操作方法后缀
|
||||||
'action_suffix' => '',
|
'action_suffix' => '',
|
||||||
|
|
||||||
|
/* URL设置 */
|
||||||
// 获取当前页面地址的系统变量 默认为REQUEST_URI
|
// 获取当前页面地址的系统变量 默认为REQUEST_URI
|
||||||
'url_request_uri' => 'REQUEST_URI',
|
'url_request_uri' => 'REQUEST_URI',
|
||||||
// 基础URL路径
|
// 基础URL路径
|
||||||
@@ -31,8 +33,20 @@ return [
|
|||||||
'url_html_suffix' => '.html',
|
'url_html_suffix' => '.html',
|
||||||
// url变量绑定
|
// url变量绑定
|
||||||
'url_params_bind' => true,
|
'url_params_bind' => true,
|
||||||
// 异常页面的模板文件
|
// URL变量绑定的类型 0 按变量名绑定 1 按变量顺序绑定
|
||||||
'exception_tmpl' => THINK_PATH . 'tpl/think_exception.tpl',
|
'url_parmas_bind_type' => 0,
|
||||||
|
//url地址的后缀
|
||||||
|
'url_deny_suffix' => '',
|
||||||
|
//是否必须使用路由
|
||||||
|
'url_route_must' => false,
|
||||||
|
|
||||||
|
// 默认输出类型
|
||||||
|
'default_return_type' => 'html',
|
||||||
|
// 默认语言
|
||||||
|
'default_lang' => 'zh-cn',
|
||||||
|
// 是否使用session
|
||||||
|
'use_session' => true,
|
||||||
|
|
||||||
// 默认跳转页面对应的模板文件
|
// 默认跳转页面对应的模板文件
|
||||||
'dispatch_jump_tmpl' => THINK_PATH . 'tpl/dispatch_jump.tpl',
|
'dispatch_jump_tmpl' => THINK_PATH . 'tpl/dispatch_jump.tpl',
|
||||||
// 默认AJAX 数据返回格式,可选JSON XML ...
|
// 默认AJAX 数据返回格式,可选JSON XML ...
|
||||||
@@ -46,22 +60,14 @@ return [
|
|||||||
'response_exit' => true,
|
'response_exit' => true,
|
||||||
|
|
||||||
/* 错误设置 */
|
/* 错误设置 */
|
||||||
//错误显示信息,非调试模式有效
|
// 异常页面的模板文件
|
||||||
|
'exception_tmpl' => THINK_PATH . 'tpl/think_exception.tpl',
|
||||||
|
// 错误显示信息,非调试模式有效
|
||||||
'error_message' => '页面错误!请稍后再试~',
|
'error_message' => '页面错误!请稍后再试~',
|
||||||
// 错误定向页面
|
// 错误定向页面
|
||||||
'error_page' => '',
|
'error_page' => '',
|
||||||
// 显示错误信息
|
// 显示错误信息
|
||||||
'show_error_msg' => false,
|
'show_error_msg' => false,
|
||||||
//默认输出类型
|
|
||||||
'default_return_type' => 'html',
|
|
||||||
//默认语言
|
|
||||||
'default_lang' => 'zh-cn',
|
|
||||||
//是否使用session
|
|
||||||
'use_session' => true,
|
|
||||||
//url地址的后缀
|
|
||||||
'url_deny_suffix' => '',
|
|
||||||
//是否必须使用路由
|
|
||||||
'url_route_must' => false,
|
|
||||||
|
|
||||||
'log' => [
|
'log' => [
|
||||||
'type' => 'File',
|
'type' => 'File',
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ class App
|
|||||||
// 获取绑定参数
|
// 获取绑定参数
|
||||||
$args = self::getBindParams($method, $config['url_parmas_bind_type']);
|
$args = self::getBindParams($method, $config['url_parmas_bind_type']);
|
||||||
// 全局过滤
|
// 全局过滤
|
||||||
array_walk_recursive($args, 'Input::filterExp');
|
array_walk_recursive($args, 'think\\Input::filterExp');
|
||||||
$data = $method->invokeArgs($instance, $args);
|
$data = $method->invokeArgs($instance, $args);
|
||||||
} else {
|
} else {
|
||||||
$data = $method->invoke($instance);
|
$data = $method->invoke($instance);
|
||||||
|
|||||||
Reference in New Issue
Block a user