!190 新增短信接口实现类@Override注解

Merge pull request !190 from 梁剑锋/dev
This commit is contained in:
疯狂的狮子Li
2022-06-28 11:06:17 +00:00
committed by Gitee
2 changed files with 2 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ public class AliyunSmsTemplate implements SmsTemplate {
this.client = new Client(config); this.client = new Client(config);
} }
@Override
public SmsResult send(String phones, String templateId, Map<String, String> param) { public SmsResult send(String phones, String templateId, Map<String, String> param) {
if (StringUtils.isBlank(phones)) { if (StringUtils.isBlank(phones)) {
throw new SmsException("手机号不能为空"); throw new SmsException("手机号不能为空");

View File

@@ -43,6 +43,7 @@ public class TencentSmsTemplate implements SmsTemplate {
this.client = new SmsClient(credential, "", clientProfile); this.client = new SmsClient(credential, "", clientProfile);
} }
@Override
public SmsResult send(String phones, String templateId, Map<String, String> param) { public SmsResult send(String phones, String templateId, Map<String, String> param) {
if (StringUtils.isBlank(phones)) { if (StringUtils.isBlank(phones)) {
throw new SmsException("手机号不能为空"); throw new SmsException("手机号不能为空");