|
|
|
@ -47,15 +47,17 @@ public class PassengerController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 调服务获取验证码
|
|
|
|
|
String smsCode = sendSMSCodeService.getSmsCode(6,passengerRequestDto.getPhoneNumber());
|
|
|
|
|
String smsCode = "123465";// 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(),
|
|
|
|
|
// smsCode,2, TimeUnit.MINUTES);
|
|
|
|
|
stringRedisTemplate.opsForValue().set(PassengerConsonant.phoneNumberCodePreKey+passengerRequestDto.getPhoneNumber(),
|
|
|
|
|
smsCode,2, TimeUnit.MINUTES);
|
|
|
|
|
smsCode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ResponseResult.success("成功!");
|
|
|
|
|