Commit 74e85959 authored by 滑稽刘's avatar 滑稽刘 Committed by Gitee
Browse files

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

parent 64d66219
......@@ -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) {
......
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