mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
验证去除相同对比
This commit is contained in:
@@ -508,12 +508,11 @@ class Validate
|
|||||||
* @access protected
|
* @access protected
|
||||||
* @param mixed $value 字段值
|
* @param mixed $value 字段值
|
||||||
* @param mixed $rule 验证规则
|
* @param mixed $rule 验证规则
|
||||||
* @param array $data 数据
|
|
||||||
* @return bool
|
* @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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user