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
4e62fcc7
Commit
4e62fcc7
authored
Jun 01, 2020
by
linlinjava
Committed by
Gitee
Jun 01, 2020
Browse files
!32 修复立即购买会清空购物车的问题
Merge pull request !32 from 滑稽刘/master
parents
64d66219
74e85959
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx-api/src/main/java/org/linlinjava/litemall/wx/service/WxOrderService.java
View file @
4e62fcc7
...
@@ -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
)
{
...
...
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