diff --git a/app/Services/ParkingGateControlService.php b/app/Services/ParkingGateControlService.php index 57fe943..16f326a 100644 --- a/app/Services/ParkingGateControlService.php +++ b/app/Services/ParkingGateControlService.php @@ -42,7 +42,7 @@ class ParkingGateControlService extends BaseService $item['channel'] = $ParkingChannel['name']; $item['parking'] = Parking::getName($ParkingChannel['parking_id']); } - $item['enter_type_str'] = $typeArr[$item['enter_type']]; + $item['enter_type_str'] = $typeArr[$item['enter_type']] ?? ''; $item['leave_type_str'] = $typeArr[$item['leave_type']] ?? ''; $item['dwell_time'] = get_time_difference_str( $item['enter_at'],