mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
验证类的验证方法支持第五个title参数传入
This commit is contained in:
@@ -390,7 +390,7 @@ class Validate
|
|||||||
// 验证类型
|
// 验证类型
|
||||||
$callback = isset(self::$type[$type]) ? self::$type[$type] : [$this, $type];
|
$callback = isset(self::$type[$type]) ? self::$type[$type] : [$this, $type];
|
||||||
// 验证数据
|
// 验证数据
|
||||||
$result = call_user_func_array($callback, [$value, $rule, $data, $field]);
|
$result = call_user_func_array($callback, [$value, $rule, $data, $field, $title]);
|
||||||
} else {
|
} else {
|
||||||
$result = true;
|
$result = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user