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