mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
验证类的confirm方法field参数可选 便于静态验证
This commit is contained in:
@@ -428,7 +428,7 @@ class Validate
|
||||
* @param string $field 字段名
|
||||
* @return bool
|
||||
*/
|
||||
protected function confirm($value, $rule, $data, $field)
|
||||
protected function confirm($value, $rule, $data, $field = '')
|
||||
{
|
||||
if ('' == $rule) {
|
||||
if (strpos($field, '_confirm')) {
|
||||
|
||||
Reference in New Issue
Block a user