This commit is contained in:
thinkphp
2016-01-29 16:27:16 +08:00
parent 52c2cd0533
commit 5734635706

View File

@@ -308,7 +308,7 @@ class Model
public function addAll($dataList, $options = [], $replace = false) public function addAll($dataList, $options = [], $replace = false)
{ {
if (empty($dataList)) { if (empty($dataList)) {
throw new Exception('no data to write') throw new Exception('no data to write');
} }
// 数据处理 // 数据处理
foreach ($dataList as $key => $data) { foreach ($dataList as $key => $data) {