Browse Source

优化错误返回2

master
wanghongjun 3 weeks ago
parent
commit
ff092405b7
  1. 2
      app/Services/ParkingSpaceService.php

2
app/Services/ParkingSpaceService.php

@ -399,7 +399,7 @@ class ParkingSpaceService extends BaseService
); );
DB::commit(); DB::commit();
return $model; return $model;
} catch (Exception $e) { } catch (Exception|CustomException $e) {
DB::rollBack(); DB::rollBack();
throw $e; throw $e;
} }

Loading…
Cancel
Save