mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 07:12:47 +08:00
改进Validate的getRuleMsg方法
This commit is contained in:
@@ -1215,7 +1215,7 @@ class Validate
|
|||||||
$msg = Lang::get(substr($msg, 2, -1));
|
$msg = Lang::get(substr($msg, 2, -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_string($msg) && false !== strpos($msg, ':')) {
|
if (is_string($msg) && is_string($rule) && false !== strpos($msg, ':')) {
|
||||||
// 变量替换
|
// 变量替换
|
||||||
if (strpos($rule, ',')) {
|
if (strpos($rule, ',')) {
|
||||||
$array = array_pad(explode(',', $rule), 3, '');
|
$array = array_pad(explode(',', $rule), 3, '');
|
||||||
|
|||||||
Reference in New Issue
Block a user