mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-04 03:06:39 +08:00
add jwt decode and remove shopping cart API parameter memberId
This commit is contained in:
parent
cfcc3396ea
commit
66d7a0556b
@ -123,7 +123,8 @@ public class GoodController {
|
||||
|
||||
@ApiOperation(value = "查询购物车信息", notes = "查询购物车信息")
|
||||
@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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user