From fb34d470079fd466e5177e53e6bf2e5e54625c33 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 28 Oct 2018 11:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=A7=84=E5=88=99=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= 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 64fb1be7..df6c6e75 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -67,6 +67,8 @@ class Validate 'min' => 'min size of :attribute must be :rule', 'after' => ':attribute cannot be less than :rule', 'before' => ':attribute cannot exceed :rule', + 'afterWith' => ':attribute cannot be less than :rule', + 'beforeWith' => ':attribute cannot exceed :rule', 'expire' => ':attribute not within :rule', 'allowIp' => 'access IP is not allowed', 'denyIp' => 'access IP denied',