|
|
@ -208,7 +208,8 @@ public class UserResiInfoServiceImpl extends BaseServiceImpl<UserResiInfoDao, Us |
|
|
|
if (!getResiInfoByMobile(verificationCodeFormDTO.getMobile())) { |
|
|
|
return new Result().error(EpmetErrorCode.MOBILE_HAS_BEEN_USED.getCode()); |
|
|
|
} |
|
|
|
//3:调用短信服务 生成验证码发送短信
|
|
|
|
//TODO 2020-05-23方便测试先屏蔽短信验证码发送
|
|
|
|
/*//3:调用短信服务 生成验证码发送短信
|
|
|
|
result = messageFeignClient.sendSmsCaptcha(verificationCodeFormDTO.getMobile()); |
|
|
|
Map<String,Object> map = (Map<String, Object>) result.getData(); |
|
|
|
if (null == map || null == map.get("code")) { |
|
|
@ -217,7 +218,7 @@ public class UserResiInfoServiceImpl extends BaseServiceImpl<UserResiInfoDao, Us |
|
|
|
//4:删除缓存中可能存在的旧验证码
|
|
|
|
userResiInfoRedis.deleteOldUserMobileCode(verificationCodeFormDTO.getUserId(), verificationCodeFormDTO.getMobile()); |
|
|
|
//5:将验证码存入redis
|
|
|
|
userResiInfoRedis.setUserResiMobileCode(verificationCodeFormDTO.getUserId(),verificationCodeFormDTO.getMobile(),map.get("code").toString()); |
|
|
|
userResiInfoRedis.setUserResiMobileCode(verificationCodeFormDTO.getUserId(),verificationCodeFormDTO.getMobile(),map.get("code").toString());*/ |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|