## 开放发送短信;
This commit is contained in:
parent
87da3200c4
commit
157bf80d4e
|
@ -17,13 +17,12 @@ public class SmsServiceProvider implements ISmsServiceApi {
|
||||||
@Override
|
@Override
|
||||||
public R<String> sendAliSms(String phone, String code, EAliSmsTemplate aliSmsTemplate) {
|
public R<String> sendAliSms(String phone, String code, EAliSmsTemplate aliSmsTemplate) {
|
||||||
try {
|
try {
|
||||||
// String str = SmsUtil.sendAliSms(phone, code, aliSmsTemplate);
|
String str = SmsUtil.sendAliSms(phone, code, aliSmsTemplate);
|
||||||
// if (null == str) {
|
if (null == str) {
|
||||||
// return R.ok();
|
return R.ok();
|
||||||
// }
|
}
|
||||||
// log.error("发送阿里短信失败: {}", str);
|
log.error("发送阿里短信失败: {}", str);
|
||||||
// return R.fail(str);
|
return R.fail(str);
|
||||||
return R.fail("功能正在完善中...");
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("发送阿里短信异常 phone: {}, code: {}", phone, code, e);
|
log.error("发送阿里短信异常 phone: {}, code: {}", phone, code, e);
|
||||||
return R.fail(e.getMessage());
|
return R.fail(e.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue