From f439a84165f2c813503e2c5683fdebb47c7ce83c Mon Sep 17 00:00:00 2001 From: lilwil Date: Mon, 20 Mar 2017 13:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E5=8E=BB=E9=99=A4=E7=9B=B8?= =?UTF-8?q?=E5=90=8C=E5=AF=B9=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/think/Validate.php b/library/think/Validate.php index 328a7aaa..fd88bb9d 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -508,12 +508,11 @@ class Validate * @access protected * @param mixed $value 字段值 * @param mixed $rule 验证规则 - * @param array $data 数据 * @return bool */ - protected function eq($value, $rule, $data) + protected function eq($value, $rule) { - return !is_null($this->getDataValue($data, $rule)) && $value == $this->getDataValue($data, $rule); + return $value == $rule; } /**