浏览代码

购买绑定调整

zhangxiaobin 1 年之前
父节点
当前提交
56fdde3fa9
共有 1 个文件被更改,包括 1 次插入2 次删除
  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();