Jelajahi Sumber

购买绑定调整

zhangxiaobin 1 tahun lalu
induk
melakukan
56fdde3fa9
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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();