记得上下班打卡 | git大法好,push需谨慎

Commit 0f032721 authored by zhengfuxin's avatar zhengfuxin

修改bug

parent 8153d68c
......@@ -74,7 +74,7 @@ public class GoblinFrontLoginController {
String userId=CurrentUtil.getCurrentUid();
return ResponseDto.success(goblinFrontService.getShoppCart(userId,type));
}
@GetMapping("deleteShopCart")
@GetMapping("deleteShopCartTest")
@ApiOperation("请勿调用,测试用")
public ResponseDto<GoblinShoppingCartVoo> deleteShopCart(@RequestParam(name = "type", required = true)String type) {
String userId=CurrentUtil.getCurrentUid();
......
......@@ -938,7 +938,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
*/
public boolean delteShoppingCart(String[] skuIds,String userId,String type) {
boolean isDeleteAll = false;
GoblinShoppingCartVoo goblinShoppingCartVoo = (GoblinShoppingCartVoo) redisUtil.get(GoblinRedisConst.FRONT_SHOPCART.concat(userId));
GoblinShoppingCartVoo goblinShoppingCartVoo = (GoblinShoppingCartVoo) redisUtil.get(GoblinRedisConst.FRONT_SHOPCART.concat(userId).concat(type));
if (null != goblinShoppingCartVoo) {
List<GoblinShoppingCartVo> shopList = goblinShoppingCartVoo.getShopList();
Iterator<GoblinShoppingCartVo> shopIter = shopList.iterator();
......
Markdown is supported
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