From c8dadb0e06efd7065ed629296b701604d7ddecca Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 10 Feb 2016 08:52:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index ac952bfd..38373d67 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -969,7 +969,7 @@ class Model $result = App::invokeFunction($val, [$value, $data]); } elseif (is_string($val)) { // 行为验证 - $result = Hook::exec($rule, '', $data); + $result = Hook::exec($val, '', $data); } else { // 验证字段规则 $result = $this->checkValidate($key, $val, $data);