| | |
| | | return new SuccessResponseData(); |
| | | } |
| | | |
| | | //发送者是我本体,标记回复该条回复消息已读 |
| | | if (MyConstant.myIds.contains(addDto.getVisitorNickName())) { |
| | | commentService.lambdaUpdate() |
| | | .eq(BlogArticleComment::getId, lastComment.getId()) |
| | | .set(BlogArticleComment::getIsRead, MyConstant.Yes) |
| | | .update(); |
| | | } |
| | | |
| | | //前一个留言接收邮件回复(如果是给评论者自己的追加可以跳过) |
| | | if (MyConstant.Yes.equals(lastComment.getIsReceiveCallback()) |
| | | && StrUtil.isNotEmpty(lastComment.getVisitorEmail()) |
| | |
| | | // && !lastComment.getVisitorEmail().equals(MyConstant.email) |
| | | && !lastComment.getVisitorNickName().equals(addDto.getVisitorNickName()) |
| | | && !lastComment.getVisitorEmail().equals(addDto.getVisitorEmail())) { |
| | | |
| | | TemplateEngine engine = TemplateUtil.createEngine(new TemplateConfig("templates", TemplateConfig.ResourceMode.CLASSPATH)); |
| | | Template template = engine.getTemplate("emailReplyModel.ftl"); |
| | | |
| | | String title = MyConstant.msgTitle; |
| | | String address; |
| | |
| | | title = checkArticle.getTitle(); |
| | | } |
| | | |
| | | TemplateEngine engine = TemplateUtil.createEngine(new TemplateConfig(MyConstant.ftlModel.path, TemplateConfig.ResourceMode.CLASSPATH)); |
| | | Template template = engine.getTemplate(MyConstant.ftlModel.reply); |
| | | |
| | | Dict dict = Dict.create() |
| | | .set("lastGuest", lastComment.getVisitorNickName()) |
| | | .set("commentContent", lastComment.getCommentContent()) |