!1168 【漏洞修复】由于自增id可猜测,需避免别有用心之人删除别人的购物车 update /yudao/module/trade/service/cart/CartServiceImpl.java.

Merge pull request !1168 from 山野羡民/N/A
This commit is contained in:
芋道源码 2024-12-27 13:45:35 +00:00 committed by Gitee
commit 8c4f906da4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class CartServiceImpl implements CartService {
}
// 批量标记删除
cartMapper.deleteBatchIds(ids);
cartMapper.deleteByIds(carts.stream().map(CartDO::getId).toList());
}
@Override