Pārlūkot izejas kodu

购买绑定调整

zhangxiaobin 1 gadu atpakaļ
vecāks
revīzija
56fdde3fa9
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      application/common/service/OrderService.php

+ 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();