fix my thumbList & commentList

main
wangqing 7 months ago
parent 18193e93f7
commit 33e36c43c2

@ -452,8 +452,13 @@ public class MyController extends BaseController {
private PublicationLike getPublicationLike(PublicationLike publicationLike) { private PublicationLike getPublicationLike(PublicationLike publicationLike) {
UserInfo userInfo = userInfoService.findById(publicationLike.getUserId()); UserInfo userInfo = userInfoService.findById(publicationLike.getUserId());
publicationLike.setNickName("已注销");
publicationLike.setAvatar(Constants.RESOURCE_PREFIX+Constants.DEFAULT_USER_THUMBNAIL);
if(null != userInfo) {
publicationLike.setNickName(userInfo.getNickName()); publicationLike.setNickName(userInfo.getNickName());
publicationLike.setAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar()); publicationLike.setAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar());
}
return publicationLike; return publicationLike;
} }
// 查询我收到的评论 // 查询我收到的评论
@ -475,8 +480,13 @@ public class MyController extends BaseController {
private CommentHis getCommentHis(CommentHis commentHis) { private CommentHis getCommentHis(CommentHis commentHis) {
UserInfo userInfo = userInfoService.findById(commentHis.getCommenterId()); UserInfo userInfo = userInfoService.findById(commentHis.getCommenterId());
commentHis.setNickName("已注销");
commentHis.setCommenterAvatar(Constants.RESOURCE_PREFIX+Constants.DEFAULT_USER_THUMBNAIL);
if(null != userInfo) {
commentHis.setNickName(userInfo.getNickName()); commentHis.setNickName(userInfo.getNickName());
commentHis.setCommenterAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar()); commentHis.setCommenterAvatar(Constants.RESOURCE_PREFIX+userInfo.getAvatar());
}
return commentHis; return commentHis;
} }

Loading…
Cancel
Save