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])) {