Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
e9a8e299
Commit
e9a8e299
authored
May 10, 2018
by
Junling Bu
Browse files
fix[litemall-wx-api]: 购物车商品没有删除。
parent
a63bdd63
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/web/WxCartController.java
View file @
e9a8e299
...
...
@@ -357,7 +357,6 @@ public class WxCartController {
/**
* 购物车商品删除
* 如果原来没有勾选,则设置勾选状态;如果商品已经勾选,则设置非勾选状态。
*
* @param userId 用户ID
* @param body 购物车商品信息, { productIds: xxx }
...
...
@@ -381,11 +380,11 @@ public class WxCartController {
List
<
Integer
>
productIds
=
JacksonUtil
.
parseIntegerList
(
body
,
"productIds"
);
if
(
productIds
==
null
){
if
(
productIds
==
null
||
productIds
.
size
()
==
0
){
return
ResponseUtil
.
badArgument
();
}
cartService
.
delete
(
productIds
,
1
);
cartService
.
delete
(
productIds
,
userId
);
return
index
(
userId
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment