From b1125d7aafef50d4d0644d1ed2a2729d7574134e Mon Sep 17 00:00:00 2001 From: Gary Date: Tue, 5 Mar 2024 09:36:07 +0800 Subject: [PATCH] 1.update collectLatestImage interface --- .../java/com/luoo/music/controller/JournalController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java b/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java index bf8ce8d..ac35068 100644 --- a/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java +++ b/luoo_music/src/main/java/com/luoo/music/controller/JournalController.java @@ -141,12 +141,12 @@ public class JournalController { } @ApiOperation(value = "2.2 获取用户收藏最新一期的期刊封面") - @GetMapping("/collectLatestImage/{userId}") + @GetMapping("/collectLatestImage") @GlobalInterceptor(checkAppUserLogin = true) public Result collectLatestImage( - @RequestHeader(value = "Authorization", required = true) String authorization, - @PathVariable @VerifyParam(required = true) String userId) { - String objectId=getCollectLatest(userId); + @RequestHeader(value = "Authorization", required = true) String authorization) { + UserLoginDto user = jwtUtil.getUserLoginDto(authorization); + String objectId=getCollectLatest(user.getUserId()); if (StringTools.isEmpty(objectId)) { return Result.success(null); }