|
|
|
@ -119,6 +119,7 @@ class ParkingCameraService extends BaseService |
|
|
|
foreach ($data as &$item) { |
|
|
|
$control_lights_ip = $item['control_lights_ip'] ?? ''; |
|
|
|
$space_attr_id = $item['space_attr_id'] ?? ''; |
|
|
|
if ($data['is_control_lights'] == 1) { |
|
|
|
if (empty($control_lights_ip)) { |
|
|
|
throw new CustomException( |
|
|
|
__('validation.parking_camera.lights_ip_empty') |
|
|
|
@ -129,6 +130,7 @@ class ParkingCameraService extends BaseService |
|
|
|
__('validation.parking_camera.lights_ip_max') |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
$space_id = ParkingSpace::getValueId($item['space_number']); |
|
|
|
if (!$space_id && $space_attr_id) { |
|
|
|
// 创建车位 |
|
|
|
|