diff --git a/library/think/Model.php b/library/think/Model.php index 42ec0ad5..f28e5031 100644 --- a/library/think/Model.php +++ b/library/think/Model.php @@ -930,7 +930,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess // 获取有更新的数据 $data = array_udiff_assoc($this->data, $this->origin, function ($a, $b) { - return $a === $b ? 0 : 1; + return is_object($a) || $a != $b ? 1 : 0; }); if (!empty($this->readonly)) {