From e35f497efaa3eb58d95d75405b69aaeba0466523 Mon Sep 17 00:00:00 2001 From: yunwuxin <448901948@qq.com> Date: Mon, 26 Feb 2024 20:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=B1=BB=E5=90=8D=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/concern/Attribute.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/concern/Attribute.php b/src/model/concern/Attribute.php index 6265ae80..3fb8a52b 100644 --- a/src/model/concern/Attribute.php +++ b/src/model/concern/Attribute.php @@ -18,6 +18,7 @@ use Stringable; use think\db\Raw; use think\helper\Str; +use think\Model; use think\model\Relation; /** @@ -234,7 +235,7 @@ public function data(array|object $data, bool $set = false, array $allow = []) } elseif (is_object($data)) { $data = get_object_vars($data); } - + // 清空数据 $this->data = [];