Browse Source

优化错误返回3

master
wanghongjun 3 weeks ago
parent
commit
961303c34a
  1. 3
      app/Services/ParkingSpaceService.php

3
app/Services/ParkingSpaceService.php

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

Loading…
Cancel
Save