From 14de36b6f442dc6a916abf229552788658da6112 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 17 Jul 2017 16:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/Validate.php b/library/think/Validate.php index 1df14f11..e5efbd2b 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -38,6 +38,7 @@ class Validate protected static $typeMsg = [ 'require' => ':attribute不能为空', 'number' => ':attribute必须是数字', + 'integer' => ':attribute必须是整数', 'float' => ':attribute必须是浮点数', 'boolean' => ':attribute必须是布尔值', 'email' => ':attribute格式不符',