mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进数据批量验证的错误信息返回
This commit is contained in:
@@ -1031,7 +1031,11 @@ class Model
|
||||
// 没有返回true 则表示验证失败
|
||||
if (!empty($options['patch'])) {
|
||||
// 批量验证
|
||||
$this->error[] = $result;
|
||||
if (is_array($result)) {
|
||||
$this->error[] = $result;
|
||||
} else {
|
||||
$this->error[$key] = $result;
|
||||
}
|
||||
} else {
|
||||
$this->error = $result;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user