|
|
|
@ -308,7 +308,7 @@ class ParkingLicensePlateController extends BaseController |
|
|
|
$license_plate_id = ParkingLicensePlate::getValueId($license_plate); |
|
|
|
|
|
|
|
if (!$license_plate_id) { |
|
|
|
throw new Exception(''); |
|
|
|
throw new CustomException(__validation('controller.license_plate.not_exists')); |
|
|
|
} |
|
|
|
|
|
|
|
$parkingSpace = ParkingSpace::query()->where( |
|
|
|
@ -328,6 +328,8 @@ class ParkingLicensePlateController extends BaseController |
|
|
|
'parking_space_type' => $space_type_name |
|
|
|
]; |
|
|
|
return $this->responseService->success($data); |
|
|
|
} catch (CustomException $e) { |
|
|
|
throw $e; |
|
|
|
} catch (Exception $e) { |
|
|
|
return $this->responseService->systemError( |
|
|
|
__('controller.license_plate.not_put') |
|
|
|
|