add: 实现功能1

master
msb_89821 2 years ago
parent bcc9e33040
commit 663cd217d8

@ -48,6 +48,10 @@ public class PassengerController {
// 调服务获取验证码
String smsCode = sendSMSCodeService.getSmsCode(6,passengerRequestDto.getPhoneNumber());
if(StringUtils.isBlank(smsCode)){
log.error("");
return ResponseResult.fail(99,"短信验证码发送失败!");
}
log.info(""+ JSON.toJSONString(smsCode));
// 存入redis 有限时间
stringRedisTemplate.opsForValue().set(PassengerConsonant.phoneNumberCodePreKey+passengerRequestDto.getPhoneNumber(),

Loading…
Cancel
Save