diff --git a/app/Services/ParkingSpaceService.php b/app/Services/ParkingSpaceService.php index de89542..ebf4f2b 100644 --- a/app/Services/ParkingSpaceService.php +++ b/app/Services/ParkingSpaceService.php @@ -318,6 +318,7 @@ class ParkingSpaceService extends BaseService * @param $start_at // 维修开始时间 * @param $end_at // 维修结束时间 * @throws Exception + * @throws CustomException */ public function updateStatus( $id, @@ -399,7 +400,7 @@ class ParkingSpaceService extends BaseService ); DB::commit(); return $model; - } catch (Exception|CustomException $e) { + } catch (Exception $e) { DB::rollBack(); throw $e; }