Commit e9a8e299 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-wx-api]: 购物车商品没有删除。

parent a63bdd63
...@@ -357,7 +357,6 @@ public class WxCartController { ...@@ -357,7 +357,6 @@ public class WxCartController {
/** /**
* 购物车商品删除 * 购物车商品删除
* 如果原来没有勾选,则设置勾选状态;如果商品已经勾选,则设置非勾选状态。
* *
* @param userId 用户ID * @param userId 用户ID
* @param body 购物车商品信息, { productIds: xxx } * @param body 购物车商品信息, { productIds: xxx }
...@@ -381,11 +380,11 @@ public class WxCartController { ...@@ -381,11 +380,11 @@ public class WxCartController {
List<Integer> productIds = JacksonUtil.parseIntegerList(body, "productIds"); List<Integer> productIds = JacksonUtil.parseIntegerList(body, "productIds");
if(productIds == null){ if(productIds == null || productIds.size() == 0){
return ResponseUtil.badArgument(); return ResponseUtil.badArgument();
} }
cartService.delete(productIds, 1); cartService.delete(productIds, userId);
return index(userId); return index(userId);
} }
......
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