改进Merge类save方法

This commit is contained in:
thinkphp
2017-01-23 11:06:07 +08:00
parent 6ade10482a
commit c45229c762

View File

@@ -158,7 +158,7 @@ class Merge extends Model
} }
// 数据对象赋值 // 数据对象赋值
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
$this->setAttr($key, $value); $this->setAttr($key, $value, $data);
} }
if (!empty($where)) { if (!empty($where)) {
$this->isUpdate = true; $this->isUpdate = true;