From 8e8355e2d880ae5291066fd8115c8937789598d5 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 12 Dec 2016 16:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E9=AA=8C=E8=AF=81=E7=B1=BB?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/Validate.php b/library/think/Validate.php index 81fc58a3..cb113bc2 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -1201,6 +1201,8 @@ class Validate { if (isset($this->message[$attribute . '.' . $type])) { $msg = $this->message[$attribute . '.' . $type]; + } elseif (isset($this->message[$attribute][$type])) { + $msg = $this->message[$attribute][$type]; } elseif (isset($this->message[$attribute])) { $msg = $this->message[$attribute]; } elseif (isset(self::$typeMsg[$type])) {