From 87b3283bd3563830364ed9855b5dc08ceecff1ab Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 13 Apr 2017 16:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=95=B0=E6=8D=AE=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {