mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
update 优化 MailMessage 实体支持多类型 收件人参数便于使用
This commit is contained in:
parent
999c7a34a8
commit
bcb80a2493
@ -56,7 +56,7 @@ public class MailService implements MailClient {
|
||||
List<String> address;
|
||||
if (CollUtil.isEmpty(mailMessage.getMailAddressList())) {
|
||||
if (StrUtil.isBlank(mailMessage.getMailAddress())) {
|
||||
throw new MailException("收件人地址");
|
||||
throw new MailException("收件人地址不能为空!");
|
||||
}
|
||||
address = CollUtil.newArrayList(mailMessage.getMailAddress());
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user