mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
修正Request类的has方法
This commit is contained in:
@@ -60,6 +60,7 @@ class Request
|
|||||||
* @var array 请求参数
|
* @var array 请求参数
|
||||||
*/
|
*/
|
||||||
protected $param = [];
|
protected $param = [];
|
||||||
|
protected $session = [];
|
||||||
protected $file = [];
|
protected $file = [];
|
||||||
protected $cookie = [];
|
protected $cookie = [];
|
||||||
protected $server = [];
|
protected $server = [];
|
||||||
@@ -391,8 +392,8 @@ class Request
|
|||||||
} else {
|
} else {
|
||||||
$param = $this->param;
|
$param = $this->param;
|
||||||
}
|
}
|
||||||
if (isset($this->param[$name])) {
|
if (isset($param[$name])) {
|
||||||
return ($checkEmpty && '' === $this->param[$name]) ? false : true;
|
return ($checkEmpty && '' === $param[$name]) ? false : true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user