验证错误信息补充

This commit is contained in:
thinkphp
2017-07-17 16:04:51 +08:00
parent 52e33ddbc7
commit 14de36b6f4

View File

@@ -38,6 +38,7 @@ class Validate
protected static $typeMsg = [
'require' => ':attribute不能为空',
'number' => ':attribute必须是数字',
'integer' => ':attribute必须是整数',
'float' => ':attribute必须是浮点数',
'boolean' => ':attribute必须是布尔值',
'email' => ':attribute格式不符',