mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正验证字段比较
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user