From 04af32942c66e342dccb2c1061db8831a073dc37 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Fri, 26 Jun 2026 16:35:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E4=BD=8D=E6=A5=BC=E5=B1=82=E5=8F=91?= =?UTF-8?q?=E7=94=9F=E6=94=B9=E5=8F=98=EF=BC=8C=E5=9C=B0=E5=9B=BE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=88=99=E5=88=A0=E9=99=A42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/ParkingElectronicMapService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/ParkingElectronicMapService.php b/app/Services/ParkingElectronicMapService.php index 9269389..ceb0bcc 100644 --- a/app/Services/ParkingElectronicMapService.php +++ b/app/Services/ParkingElectronicMapService.php @@ -127,8 +127,8 @@ class ParkingElectronicMapService extends BaseService $old_floor_id = ParkingElectronicMap::query()->where([ 'space_id' => $space_id ])->value('floor_id'); - if ($old_floor_id != $floor_id) { - self::syncDeleteMapSpace($space_id, $floor_id); + if ($old_floor_id && $old_floor_id != $floor_id) { + self::syncDeleteMapSpace($space_id, $old_floor_id); } } }