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