Commit 4e62fcc7 authored by linlinjava's avatar linlinjava Committed by Gitee
Browse files

!32 修复立即购买会清空购物车的问题

Merge pull request !32 from 滑稽刘/master
parents 64d66219 74e85959
...@@ -411,7 +411,11 @@ public class WxOrderService { ...@@ -411,7 +411,11 @@ public class WxOrderService {
} }
// 删除购物车里面的商品信息 // 删除购物车里面的商品信息
cartService.clearGoods(userId); if(cartId.equals(0)){
cartService.clearGoods(userId);
}else{
cartService.deleteById(cartId);
}
// 商品货品数量减少 // 商品货品数量减少
for (LitemallCart checkGoods : checkedGoodsList) { for (LitemallCart checkGoods : checkedGoodsList) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment