From cbc0597470a296ab9509757663559efa3742a92a Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 17 May 2016 11:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Request=E7=B1=BB=E7=9A=84has?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Request.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/library/think/Request.php b/library/think/Request.php index 4be21392..ef0edbfc 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -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; }