From 6a38636caac7e75f0b8700ed8e8b3fdef5ff73e0 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 13 Jan 2025 11:44:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Raw=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E5=90=8E=E4=BA=8C=E6=AC=A1=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=89=A7=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/concern/Attribute.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/model/concern/Attribute.php b/src/model/concern/Attribute.php index 0f2a1f1b..105d2840 100644 --- a/src/model/concern/Attribute.php +++ b/src/model/concern/Attribute.php @@ -374,6 +374,10 @@ public function getChangedData(): array return 1; } + if ($b instanceof Raw) { + return 0; + } + return is_object($a) || $a != $b ? 1 : 0; });