refactor(系统设置): 字段名称调整
This commit is contained in:
parent
5bd61bf764
commit
a045f0406d
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue