mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进验证类的错误信息定义
This commit is contained in:
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user