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