From 3ed9e29f4efac20f0d0d7a192e1d350fd139a5a8 Mon Sep 17 00:00:00 2001 From: Hhh0121 <2607250025@qq.com> Date: Mon, 29 Jul 2024 16:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A8=A1=E5=9E=8B=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=96=B9=E6=B3=95=EF=BC=8C=E9=BB=98=E8=AE=A4=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=85=A8=E5=B1=80=E6=9F=A5=E8=AF=A2=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model.php b/src/Model.php index 8acb064e..d501d8ba 100644 --- a/src/Model.php +++ b/src/Model.php @@ -709,7 +709,7 @@ protected function updateData(): bool } // 模型更新 - $db = $this->db(); + $db = $this->db(null); $db->transaction(function () use ($data, $allowFields, $db) { $this->key = null;