diff --git a/library/think/Model.php b/library/think/Model.php index 759484a2..47ff150c 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -411,6 +411,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess */ public function saveAll($dataSet) { + $result = 0; foreach ($dataSet as $data) { $result = $this->isUpdate(false)->save($data, [], false); }