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