mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
邮件模块 bug -修改保留字冲突
This commit is contained in:
parent
c3335ba2ca
commit
63983bbab3
@ -29,18 +29,18 @@ public interface MailAccountConvert {
|
||||
.setHost(mailAccountDO.getHost())
|
||||
.setPort(mailAccountDO.getPort())
|
||||
.setAuth(true)
|
||||
.setFrom(mailAccountDO.getFrom())
|
||||
.setFrom(mailAccountDO.getFromAddress())
|
||||
.setUser(mailAccountDO.getUsername())
|
||||
.setPass(mailAccountDO.getPassword())
|
||||
.setSslEnable(mailAccountDO.getSslEnable());
|
||||
};
|
||||
}
|
||||
|
||||
default Map<String, String> convertToMap(MailAccountDO mailAccountDO , String content) {
|
||||
Map<String , String> map = new HashMap<>();
|
||||
map.put("from" , mailAccountDO.getFrom());
|
||||
map.put("from_address" , mailAccountDO.getFromAddress());
|
||||
map.put("username" , mailAccountDO.getUsername());
|
||||
map.put("content" , content);
|
||||
return map;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ public class MailLogDO extends BaseDO implements Serializable {
|
||||
/**
|
||||
* 邮箱账号
|
||||
*/
|
||||
private String from;
|
||||
private String fromAddress;
|
||||
|
||||
/**
|
||||
* 模版主键
|
||||
|
@ -26,7 +26,7 @@ public class MailSendMessage extends AbstractStreamMessage {
|
||||
* 邮箱地址
|
||||
*/
|
||||
@NotNull(message = "邮箱地址不能为空")
|
||||
private String from;
|
||||
private String fromAddress;
|
||||
/**
|
||||
* 用户名
|
||||
*/
|
||||
|
@ -57,7 +57,7 @@ public class MailProducer {
|
||||
public void sendMailSendMessage(MailAccountDO mailAccountDO, MailTemplateDO mailTemplateDO, String content, List<String> tos, String title , Long sendLogId) {
|
||||
MailSendMessage message = new MailSendMessage();
|
||||
message.setContent(content);
|
||||
message.setFrom(mailAccountDO.getFrom());
|
||||
message.setFromAddress(mailAccountDO.getFromAddress());
|
||||
message.setHost(mailAccountDO.getHost());
|
||||
message.setPort(mailAccountDO.getPort());
|
||||
message.setPassword(mailAccountDO.getPassword());
|
||||
|
@ -43,7 +43,7 @@ public class MailLogServiceImpl implements MailLogService {
|
||||
@Override
|
||||
public Long createMailLog(MailAccountDO mailAccountDO , MailTemplateDO mailTemplateDO , String from, String content, List<String> tos, String title, Boolean isSend) {
|
||||
MailLogDO.MailLogDOBuilder logDOBuilder = MailLogDO.builder();
|
||||
logDOBuilder.from(mailAccountDO.getFrom());
|
||||
logDOBuilder.fromAddress(mailAccountDO.getFromAddress());
|
||||
logDOBuilder.accountId(mailAccountDO.getId());
|
||||
logDOBuilder.content(content);
|
||||
logDOBuilder.title(title);
|
||||
|
Loading…
Reference in New Issue
Block a user