add:添加配置文件

master
msb_89821 2 years ago
parent a9349b7a9e
commit a8deefce83

@ -81,7 +81,7 @@ public class PassengerController {
userInfo.setPhoneNumber(phone); userInfo.setPhoneNumber(phone);
userInfo.setToken(token); userInfo.setToken(token);
stringRedisTemplate.opsForValue().set(PassengerConsonant.phoneNumberTokenPreKey + phone+PassengerConsonant.PassengerIdendity, stringRedisTemplate.opsForValue().set(PassengerConsonant.phoneNumberTokenPreKey + phone+PassengerConsonant.PassengerIdendity,
token,30,TimeUnit.MINUTES); token,2,TimeUnit.HOURS);
return ResponseResult.success(userInfo); return ResponseResult.success(userInfo);
} }

@ -79,6 +79,7 @@ public class SendSmsCodeController {
String msg="【我来啦】尊敬的用户,您的验证码为:"+radom+"2分钟有效"; String msg="【我来啦】尊敬的用户,您的验证码为:"+radom+"2分钟有效";
Map<String, Object> params = prepareParams(smsAccount.getAccount(), smsAccount.getPassword(), phoneNumber, msg, null, null, Map<String, Object> params = prepareParams(smsAccount.getAccount(), smsAccount.getPassword(), phoneNumber, msg, null, null,
UUID.randomUUID().toString()); UUID.randomUUID().toString());
log.info("配置参数是33={}",JSON.toJSONString(smsAccount));
String rutlet=post(smsAccount.getUrl() + PATH_SEND_SMS, params); String rutlet=post(smsAccount.getUrl() + PATH_SEND_SMS, params);
log.info("==="+rutlet); log.info("==="+rutlet);
if(StringUtils.isBlank(rutlet)){ if(StringUtils.isBlank(rutlet)){

Loading…
Cancel
Save