## 开放发送短信;

This commit is contained in:
cabbage 2025-05-15 10:20:52 +08:00
parent 87da3200c4
commit 157bf80d4e
1 changed files with 6 additions and 7 deletions

View File

@ -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());