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 $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;
}

Loading…
Cancel
Save