mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42: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];
|
||||
// 验证数据
|
||||
$result = call_user_func_array($callback, [$value, $rule, $data, $field]);
|
||||
$result = call_user_func_array($callback, [$value, $rule, $data, $field, $title]);
|
||||
} else {
|
||||
$result = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user