This commit is contained in:
yunwuxin
2018-11-27 15:47:11 +08:00
parent e5141a0759
commit cca9d245ad

View File

@@ -673,6 +673,7 @@ class Request
{
if (is_array($name)) {
$this->param = [];
$this->mergeParam = false;
return $this->route = array_merge($this->route, $name);
}
return $this->input($this->route, $name, $default, $filter);
@@ -693,6 +694,7 @@ class Request
}
if (is_array($name)) {
$this->param = [];
$this->mergeParam = false;
return $this->get = array_merge($this->get, $name);
}
return $this->input($this->get, $name, $default, $filter);
@@ -718,6 +720,7 @@ class Request
}
if (is_array($name)) {
$this->param = [];
$this->mergeParam = false;
return $this->post = array_merge($this->post, $name);
}
return $this->input($this->post, $name, $default, $filter);
@@ -743,6 +746,7 @@ class Request
}
if (is_array($name)) {
$this->param = [];
$this->mergeParam = false;
return $this->put = is_null($this->put) ? $name : array_merge($this->put, $name);
}
@@ -789,6 +793,7 @@ class Request
}
if (is_array($name)) {
$this->param = [];
$this->mergeParam = false;
return $this->request = array_merge($this->request, $name);
}
return $this->input($this->request, $name, $default, $filter);