mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 14:02:47 +08:00
改进saveall方法的验证
This commit is contained in:
@@ -737,7 +737,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
if ($this->validate) {
|
||||
// 数据批量验证
|
||||
foreach ($dataSet as $data) {
|
||||
if (!$this->validateData($data)) {
|
||||
if (!$this->validate($this->validate)->validateData($data)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user