Skip to content

Commit

Permalink
feat:添加邮件处理链接
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng521521 committed Nov 13, 2023
1 parent 8043db9 commit 1f53392
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/dl/officialsite/team/TeamService.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ public void join(TeamMemberJoinVO teamMember) {
Member member1 = admin.get();
String email = member1.getEmail();
String subject = team.getTeamName() + "团队新成员"+ member1.getNickName()+"加入申请";
String content = "点击此链接去处理" + "https://dapplearning.org/team/admin";
List<String> mailAddress = new ArrayList<>();
mailAddress.add(email);
log.info("发送邮件给管理员:{},接收地址{}", email, mailAddress);
emailService.memberJoinTeam(mailAddress, subject, subject);
emailService.memberJoinTeam(mailAddress, subject, content);
} else {
throw new BizException(CodeEnums.TEAM_ADMIN_NOT_EXIST.getCode(),
CodeEnums.TEAM_ADMIN_NOT_EXIST.getMsg());
Expand All @@ -147,10 +148,11 @@ public void join(TeamMemberJoinVO teamMember) {
Member member1 = admin.get();
String email = member1.getEmail();
String subject = team.getTeamName() + "团队新成员"+ member1.getNickName()+"加入申请";
String content = "点击此链接去处理" + "https://dapplearning.org/team/admin";
List<String> mailAddress = new ArrayList<>();
mailAddress.add(email);
log.info("发送邮件给管理员:{},接收地址{}", email, mailAddress);
emailService.memberJoinTeam(mailAddress, subject, subject);
emailService.memberJoinTeam(mailAddress, subject, content);
} else {
throw new BizException(CodeEnums.TEAM_ADMIN_NOT_EXIST.getCode(),
CodeEnums.TEAM_ADMIN_NOT_EXIST.getMsg());
Expand Down

0 comments on commit 1f53392

Please sign in to comment.