## 开放发送短信;

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

View File

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