From 91a045c724494d3afdba9e60dc1a1629e5e71781 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 20 Aug 2016 18:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bsaveall=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/Model.php b/library/think/Model.php index 64c115d6..eef7b6ca 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -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; } }