diff --git a/app/Services/ParkingInformationService.php b/app/Services/ParkingInformationService.php index c1d6c8c..650fa78 100644 --- a/app/Services/ParkingInformationService.php +++ b/app/Services/ParkingInformationService.php @@ -90,7 +90,7 @@ class ParkingInformationService extends BaseService } // 通过车位类型 创建车牌 - if ($space_type_id) { + if (empty($license_plate_id) && $space_type_id) { $createData = [ 'number' => $license_plate, 'space_type_id' => $space_type_id