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