confirm和deifferent验证规则默认提示调整 支持传入验证比较字段名,例如:

confirm|repassword,确认密码
This commit is contained in:
thinkphp
2016-12-13 15:25:26 +08:00
parent e36987fc5d
commit 381f90a735

View File

@@ -72,8 +72,8 @@ class Validate
'expire' => '不在有效期内 :rule', 'expire' => '不在有效期内 :rule',
'allowIp' => '不允许的IP访问', 'allowIp' => '不允许的IP访问',
'denyIp' => '禁止的IP访问', 'denyIp' => '禁止的IP访问',
'confirm' => ':attribute和字段 :rule 不一致', 'confirm' => ':attribute和确认字段:2不一致',
'different' => ':attribute和字段 :rule 不能相同', 'different' => ':attribute和比较字段:2不能相同',
'egt' => ':attribute必须大于等于 :rule', 'egt' => ':attribute必须大于等于 :rule',
'gt' => ':attribute必须大于 :rule', 'gt' => ':attribute必须大于 :rule',
'elt' => ':attribute必须小于等于 :rule', 'elt' => ':attribute必须小于等于 :rule',