refactor(系统设置): 字段名称调整

This commit is contained in:
WangXu10 2023-07-27 16:07:28 +08:00 committed by 刘瑞斌
parent 5bd61bf764
commit a045f0406d
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ public class EMailInfoDto {
private String from;
private String password;
private String ssl;
private String tls;
private String tsl;
private String recipient;
}

View File

@ -123,7 +123,7 @@ public class SystemParameterService {
} else if (StringUtils.equals(param.getParamKey(), ParamConstants.MAIL.SSL.getValue())) {
mailInfo.setSsl(param.getParamValue());
} else if (StringUtils.equals(param.getParamKey(), ParamConstants.MAIL.TLS.getValue())) {
mailInfo.setTls(param.getParamValue());
mailInfo.setTsl(param.getParamValue());
} else if (StringUtils.equals(param.getParamKey(), ParamConstants.MAIL.RECIPIENTS.getValue())) {
mailInfo.setRecipient(param.getParamValue());
}

View File

@ -122,7 +122,7 @@ public class SystemParameterControllerTests extends BaseTest {
hashMap.put("smtp.from", "aaa@fit2cloud.com");
hashMap.put("smtp.recipient", "aaa@fit2cloud.com");
hashMap.put("smtp.ssl", "ture");
hashMap.put("smtp.tls", "false");
hashMap.put("smtp.tsl", "false");
this.requestPost(EMAIL_INFO_TEST_CONNECT_URL, hashMap, ERROR_REQUEST_MATCHER);
}