From 34d36d542d42077c13452b502be93d5c4c06093c Mon Sep 17 00:00:00 2001 From: zcstatham <578322713@qq.com> Date: Wed, 14 Jun 2023 23:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=85=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E8=B0=83=E8=AF=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/service/CarInfoHandle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/service/CarInfoHandle.php b/extend/service/CarInfoHandle.php index f09662a..c94c409 100644 --- a/extend/service/CarInfoHandle.php +++ b/extend/service/CarInfoHandle.php @@ -591,7 +591,7 @@ class CarInfoHandle 'update_timestamp' => $now ]; // 有效车架号且存在更新并清除状态 - if (strlen($frame_no) == 17 && ($old = Db::name('car_info_t')->where('car_frame_no', $frame_no)->value('id'))) { + if (strlen($frame_no) == 17 && ($old = Db::name('car_info_t')->where('car_frame_no', $frame_no)->find())) { foreach ($update_keys as $key) { if (empty($row_array[$key])) $row_array[$key] = $old[$key];