🐛 消息通知-评论被删除后数据加载失败问题修复
This commit is contained in:
parent
baa49a22e4
commit
dad3a1460e
@ -123,12 +123,14 @@ public class NotificationUtils {
|
|||||||
case "2":
|
case "2":
|
||||||
// 回帖
|
// 回帖
|
||||||
comment = commentService.findById(notification.getDataId().toString());
|
comment = commentService.findById(notification.getDataId().toString());
|
||||||
article = articleService.findArticleDTOById(comment.getCommentArticleId(), 0);
|
if (Objects.nonNull(comment)) {
|
||||||
if (Objects.nonNull(article)) {
|
article = articleService.findArticleDTOById(comment.getCommentArticleId(), 0);
|
||||||
notificationDTO.setDataTitle(article.getArticleTitle());
|
if (Objects.nonNull(article)) {
|
||||||
notificationDTO.setDataUrl(comment.getCommentSharpUrl());
|
notificationDTO.setDataTitle(article.getArticleTitle());
|
||||||
user = userService.findById(comment.getCommentAuthorId().toString());
|
notificationDTO.setDataUrl(comment.getCommentSharpUrl());
|
||||||
notificationDTO.setAuthor(genAuthor(user));
|
user = userService.findById(comment.getCommentAuthorId().toString());
|
||||||
|
notificationDTO.setAuthor(genAuthor(user));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "3":
|
case "3":
|
||||||
|
Loading…
Reference in New Issue
Block a user