mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进数据更新判断
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user