feat: add more parameters in mail template. (#2095)

* Fixed the bug of not being able to query according to the content

The content table is associated at query time now.

* Update static file mappings on refresh

* feat:add more parameter in mail template

* Update CommentEventListener.java

* Update CommentEventListener.java

* Update CommentEventListener.java
pull/2098/head
yhc 2022-05-18 01:50:09 -05:00 committed by GitHub
parent 46220a9286
commit 8390752149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -126,6 +126,10 @@ public class CommentEventListener {
data.put("pageTitle", post.getTitle());
data.put("author", postComment.getAuthor());
data.put("content", postComment.getContent());
data.put("email", postComment.getEmail());
data.put("status", postComment.getStatus());
data.put("createTime", postComment.getCreateTime());
data.put("authorUrl", postComment.getAuthorUrl());
subject.append("您的博客文章《")
.append(post.getTitle())
@ -144,6 +148,10 @@ public class CommentEventListener {
data.put("pageTitle", sheet.getTitle());
data.put("author", sheetComment.getAuthor());
data.put("content", sheetComment.getContent());
data.put("email", sheetComment.getEmail());
data.put("status", sheetComment.getStatus());
data.put("createTime", sheetComment.getCreateTime());
data.put("authorUrl", sheetComment.getAuthorUrl());
subject.append("您的博客页面《")
.append(sheet.getTitle())
@ -162,6 +170,10 @@ public class CommentEventListener {
data.put("pageTitle", journal.getCreateTime());
data.put("author", journalComment.getAuthor());
data.put("content", journalComment.getContent());
data.put("email", journalComment.getEmail());
data.put("status", journalComment.getStatus());
data.put("createTime", journalComment.getCreateTime());
data.put("authorUrl", journalComment.getAuthorUrl());
subject.append("您的博客日志有了新的评论");
}
@ -230,6 +242,10 @@ public class CommentEventListener {
data.put("baseContent", baseComment.getContent());
data.put("replyAuthor", postComment.getAuthor());
data.put("replyContent", postComment.getContent());
data.put("baseAuthorEmail", baseComment.getEmail());
data.put("replyAuthorEmail", postComment.getEmail());
data.put("createTime", postComment.getCreateTime());
data.put("authorUrl", postComment.getAuthorUrl());
subject.append("您在【")
.append(blogTitle)
@ -263,6 +279,10 @@ public class CommentEventListener {
data.put("baseContent", baseComment.getContent());
data.put("replyAuthor", sheetComment.getAuthor());
data.put("replyContent", sheetComment.getContent());
data.put("baseAuthorEmail", baseComment.getEmail());
data.put("replyAuthorEmail", sheetComment.getEmail());
data.put("createTime", sheetComment.getCreateTime());
data.put("authorUrl", sheetComment.getAuthorUrl());
subject.append("您在【")
.append(blogTitle)
@ -298,6 +318,10 @@ public class CommentEventListener {
data.put("baseContent", baseComment.getContent());
data.put("replyAuthor", journalComment.getAuthor());
data.put("replyContent", journalComment.getContent());
data.put("baseAuthorEmail", baseComment.getEmail());
data.put("replyAuthorEmail", journalComment.getEmail());
data.put("createTime", journalComment.getCreateTime());
data.put("authorUrl", journalComment.getAuthorUrl());
subject.append("您在【")
.append(blogTitle)