From 4ebd16f8efd5ce792efb31a1e108aa927f361191 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 6 Dec 2016 13:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Validate=E7=B1=BB=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=AA=8C=E8=AF=81=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E6=9B=BF=E6=8D=A2=E8=A7=84=E5=88=99?= 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 84546464..3f9b2589 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -408,6 +408,7 @@ class Validate return $message; } elseif (true !== $result) { // 返回自定义错误信息 + $result = str_replace([':attribute', ':rule'], [$title, (string) $rule], $result); return $result; } $i++;