|
|
|
@ -46,13 +46,13 @@ public class UserResiInfoRedis { |
|
|
|
} |
|
|
|
|
|
|
|
public void setUserResiMobileCode(String userId, String mobile, String verificationCode){ |
|
|
|
String key = RedisKeys.getUserMobileCodeKey(userId, mobile, verificationCode); |
|
|
|
//手机验证码放入缓存中 有效时间10分钟
|
|
|
|
redisUtils.set(key, verificationCode,RedisUtils.MINUTE_TEN_EXPIRE); |
|
|
|
String key = RedisKeys.getResiRegisterMobileCodeKey(userId, mobile, verificationCode); |
|
|
|
//手机验证码放入缓存中 有效时间30分钟
|
|
|
|
redisUtils.set(key, verificationCode,RedisUtils.MINUTE_THIRTY_EXPIRE); |
|
|
|
} |
|
|
|
|
|
|
|
public String getUserResiMobileCode(String userId, String mobile, String verificationCode){ |
|
|
|
String key = RedisKeys.getUserMobileCodeKey(userId, mobile, verificationCode); |
|
|
|
String key = RedisKeys.getResiRegisterMobileCodeKey(userId, mobile, verificationCode); |
|
|
|
return (String) redisUtils.get(key); |
|
|
|
} |
|
|
|
|
|
|
|
|