!20 2022-1-17 Carl

Merge pull request !20 from Admin/sit-Carl-V3
This commit is contained in:
Admin 2022-01-17 06:37:53 +00:00 committed by Gitee
commit c80e9b0df4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -123,7 +123,8 @@ public class GoodController {
@ApiOperation(value = "查询购物车信息", notes = "查询购物车信息") @ApiOperation(value = "查询购物车信息", notes = "查询购物车信息")
@PostMapping("royalcanin/getCartProductInfo") @PostMapping("royalcanin/getCartProductInfo")
public List<CartEntity> getCartProductInfo(String memberId){ public List<CartEntity> getCartProductInfo(HttpServletRequest request){
String memberId = SmartJWTUtil.decodeToken(request.getHeader(TOKEN_NAME));
return cartService.getAllProductbyMember(memberId); return cartService.getAllProductbyMember(memberId);
} }