修正Merge模型类

This commit is contained in:
thinkphp
2016-05-02 16:17:52 +08:00
parent e41120dcbf
commit 483a86e1a7

View File

@@ -143,9 +143,10 @@ class Merge extends Model
* @access public
* @param mixed $data 数据
* @param array $where 更新条件
* @param bool $getId 新增的时候是否获取id
* @return mixed
*/
public function save($data = [], $where = [])
public function save($data = [], $where = [], $getId = true)
{
if (!empty($data)) {
// 数据对象赋值