diff --git a/library/think/Model.php b/library/think/Model.php index d0201a00..f1d28155 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -943,7 +943,8 @@ abstract class Model implements \JsonSerializable, \ArrayAccess $this->setAttr($key, $value, $data); } if (!empty($where)) { - $this->isUpdate = true; + $this->isUpdate = true; + $this->updateWhere = $where; } }