mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进Request类param方法
This commit is contained in:
@@ -633,7 +633,7 @@ class Request
|
||||
if (true === $name) {
|
||||
// 获取包含文件上传信息的数组
|
||||
$file = $this->file();
|
||||
$data = array_merge($this->param, $file);
|
||||
$data = is_array($file) ? array_merge($this->param, $file) : $this->param;
|
||||
return $this->input($data, '', $default, $filter);
|
||||
}
|
||||
return $this->input($this->param, $name, $default, $filter);
|
||||
@@ -886,7 +886,7 @@ class Request
|
||||
return $array[$name];
|
||||
}
|
||||
}
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user