[fix]修改验证码
This commit is contained in:
parent
0eadf32334
commit
b7043ebe17
@ -67,11 +67,11 @@ public class CaptchaController {
|
|||||||
LinkedHashMap<String, String> map = new LinkedHashMap<>(1);
|
LinkedHashMap<String, String> map = new LinkedHashMap<>(1);
|
||||||
map.put("code", code);
|
map.put("code", code);
|
||||||
SmsBlend smsBlend = SmsFactory.getSmsBlend("config2");
|
SmsBlend smsBlend = SmsFactory.getSmsBlend("config2");
|
||||||
// SmsResponse smsResponse = smsBlend.sendMessage(phonenumber, templateId, map);
|
SmsResponse smsResponse = smsBlend.sendMessage(phonenumber, templateId, map);
|
||||||
// if (!smsResponse.isSuccess()) {
|
if (!smsResponse.isSuccess()) {
|
||||||
// log.error("验证码短信发送异常 => {}", smsResponse);
|
log.error("验证码短信发送异常 => {}", smsResponse);
|
||||||
// return R.fail(smsResponse.getData().toString());
|
return R.fail(smsResponse.getData().toString());
|
||||||
// }
|
}
|
||||||
log.info("{}:验证码发送成功,验证码为:{}", phonenumber, code);
|
log.info("{}:验证码发送成功,验证码为:{}", phonenumber, code);
|
||||||
return R.ok(code);
|
return R.ok(code);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user