From 965e14eb76ebc0c75d91d4f79fb84b55c6329ad9 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 13 Dec 2016 14:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BValidate=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E9=97=AD=E5=8C=85=E8=A7=84=E5=88=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Validate.php b/library/think/Validate.php index d68811f0..2053ae26 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -362,6 +362,7 @@ class Validate foreach ($rules as $key => $rule) { if ($rule instanceof \Closure) { $result = call_user_func_array($rule, [$value, $data]); + $info = is_numeric($key) ? '' : $key; } else { // 判断验证类型 if (is_numeric($key)) {