Commit c680ec4e authored by ZhengJie's avatar ZhengJie
Browse files

[代码完善](v2.5): update EmailServiceImpl.java

close https://github.com/elunez/eladmin/issues/478
parent ae171c02
...@@ -64,7 +64,7 @@ public class EmailServiceImpl implements EmailService { ...@@ -64,7 +64,7 @@ public class EmailServiceImpl implements EmailService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void send(EmailVo emailVo, EmailConfig emailConfig){ public void send(EmailVo emailVo, EmailConfig emailConfig){
if(emailConfig == null){ if(emailConfig.getId() == null){
throw new BadRequestException("请先配置,再操作"); throw new BadRequestException("请先配置,再操作");
} }
// 封装 // 封装
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment