diff --git a/src/main/java/com/gxwebsoft/common/system/controller/MainController.java b/src/main/java/com/gxwebsoft/common/system/controller/MainController.java index fc8d593..cfa84a1 100644 --- a/src/main/java/com/gxwebsoft/common/system/controller/MainController.java +++ b/src/main/java/com/gxwebsoft/common/system/controller/MainController.java @@ -651,7 +651,7 @@ public class MainController extends BaseController { String content = title + appUrl + appName + passwordStr; // 发送邮件通知 if (email != null) { - emailRecordService.sendEmail(title, content, email); + emailRecordService.sendEmail(title, content, email, addUser.getTenantId()); } return success("注册成功", new LoginResult(access_token, addUser)); } diff --git a/src/main/java/com/gxwebsoft/common/system/service/EmailRecordService.java b/src/main/java/com/gxwebsoft/common/system/service/EmailRecordService.java index b99a195..25ec4c2 100644 --- a/src/main/java/com/gxwebsoft/common/system/service/EmailRecordService.java +++ b/src/main/java/com/gxwebsoft/common/system/service/EmailRecordService.java @@ -47,5 +47,5 @@ public interface EmailRecordService extends IService { void sendHtmlEmail(String title, String path, Map map, String[] toEmails) throws MessagingException, IOException; - void sendEmail(String title, String content, String receiver); + void sendEmail(String title, String content, String receiver, Integer tenantId); } diff --git a/src/main/java/com/gxwebsoft/common/system/service/impl/EmailRecordServiceImpl.java b/src/main/java/com/gxwebsoft/common/system/service/impl/EmailRecordServiceImpl.java index 13ecae2..ec645c4 100644 --- a/src/main/java/com/gxwebsoft/common/system/service/impl/EmailRecordServiceImpl.java +++ b/src/main/java/com/gxwebsoft/common/system/service/impl/EmailRecordServiceImpl.java @@ -72,13 +72,14 @@ public class EmailRecordServiceImpl extends ServiceImpl impleme String content = title + appUrl + appName + adminUrl + account + password; // 发送邮件通知 if (company.getEmail() != null) { - emailRecordService.sendEmail(title, content, company.getEmail()); + emailRecordService.sendEmail(title, content, company.getEmail(), company.getTid()); } return company; }