mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
修正
This commit is contained in:
@@ -1132,7 +1132,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
public function getChangedData()
|
public function getChangedData()
|
||||||
{
|
{
|
||||||
$data = array_udiff_assoc($this->data, $this->origin, function ($a, $b) {
|
$data = array_udiff_assoc($this->data, $this->origin, function ($a, $b) {
|
||||||
if ((empty($b) || empty($b)) && $a !== $b) {
|
if ((empty($a) || empty($b)) && $a !== $b) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return is_object($a) || $a != $b ? 1 : 0;
|
return is_object($a) || $a != $b ? 1 : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user