From 8e8ac352a4b3b3610a448c4724cfc23a543440e5 Mon Sep 17 00:00:00 2001 From: lilwil Date: Mon, 20 Mar 2017 13:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=AA=8C=E8=AF=81=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=AF=94=E8=BE=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/think/Validate.php b/library/think/Validate.php index 89b2f11a..328a7aaa 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -459,7 +459,7 @@ class Validate * @param array $data 数据 * @return bool */ - protected function egt($value, $rule) + protected function egt($value, $rule, $data) { return !is_null($this->getDataValue($data, $rule)) && $value >= $this->getDataValue($data, $rule); } @@ -472,7 +472,7 @@ class Validate * @param array $data 数据 * @return bool */ - protected function gt($value, $rule) + protected function gt($value, $rule, $data) { return !is_null($this->getDataValue($data, $rule)) && $value > $this->getDataValue($data, $rule); } @@ -485,7 +485,7 @@ class Validate * @param array $data 数据 * @return bool */ - protected function elt($value, $rule) + protected function elt($value, $rule, $data) { return !is_null($this->getDataValue($data, $rule)) && $value <= $this->getDataValue($data, $rule); }