mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
I函数增加参数
This commit is contained in:
@@ -30,7 +30,7 @@ function C($name = '', $value = null, $range = '')
|
||||
}
|
||||
|
||||
// 获取输入数据 支持默认值和过滤
|
||||
function I($key, $default = null, $filter = '')
|
||||
function I($key, $default = null, $filter = '', $merge = false, $data = [])
|
||||
{
|
||||
if ($pos = strpos($key, '.')) {
|
||||
// 指定参数来源
|
||||
@@ -44,7 +44,7 @@ function I($key, $default = null, $filter = '')
|
||||
// 默认为自动判断
|
||||
$method = 'param';
|
||||
}
|
||||
return \think\Input::$method($key, $default, $filter);
|
||||
return \think\Input::$method($key, $default, $filter, $merge, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user