diff --git a/library/think/Validate.php b/library/think/Validate.php index 7157b7d0..ebae5f63 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -338,6 +338,8 @@ class Validate $callback = isset($this->type[$type]) ? $this->type[$type] : [$this, $type]; // 验证数据 $result = call_user_func_array($callback, [$value, $rule, &$data, $field]); + } else { + $result = true; } }