|
@@ -895,7 +895,9 @@ class OrderService implements OrderServiceInterface
|
|
|
if (!empty($shop)) {
|
|
|
$del_shop = ShoppingCart::where('user_id', $data['user_id'])->delete();
|
|
|
if (empty($del_shop)) {
|
|
|
- return Result::error("删除失败");
|
|
|
+ Db::rollBack();
|
|
|
+ return Result::error("删除购物车失败");
|
|
|
+ // throw new \Exception("删除购物车失败");
|
|
|
}
|
|
|
}
|
|
|
$shop = [
|