zhangxiaobin 1 rok pred
rodič
commit
56fdde3fa9

+ 1 - 2
application/common/service/OrderService.php

@@ -194,8 +194,7 @@ class OrderService
             ];
             $userBindRes = $userService->userWallet($userParams);
             if (!$userBindRes['status']) {
-                Db::rollback();
-                return false;
+                throw new Exception($userBindRes['msg']);
             }
             $userCarWhere['id'] = $carId;
             $userCar = Db::name('user_car')->where($userCarWhere)->find();