1.update collectLatestImage interface

main
Gary 9 months ago
parent a55ec19878
commit b1125d7aaf

@ -141,12 +141,12 @@ public class JournalController {
} }
@ApiOperation(value = "2.2 获取用户收藏最新一期的期刊封面") @ApiOperation(value = "2.2 获取用户收藏最新一期的期刊封面")
@GetMapping("/collectLatestImage/{userId}") @GetMapping("/collectLatestImage")
@GlobalInterceptor(checkAppUserLogin = true) @GlobalInterceptor(checkAppUserLogin = true)
public Result<String> collectLatestImage( public Result<String> collectLatestImage(
@RequestHeader(value = "Authorization", required = true) String authorization, @RequestHeader(value = "Authorization", required = true) String authorization) {
@PathVariable @VerifyParam(required = true) String userId) { UserLoginDto user = jwtUtil.getUserLoginDto(authorization);
String objectId=getCollectLatest(userId); String objectId=getCollectLatest(user.getUserId());
if (StringTools.isEmpty(objectId)) { if (StringTools.isEmpty(objectId)) {
return Result.success(null); return Result.success(null);
} }

Loading…
Cancel
Save