|
@@ -54,7 +54,7 @@ public class LoginController extends BaseController{
|
|
|
if(!redisUtil.hasKey(String.format(RedisKeyUtil.loginAuthCode,id))){
|
|
|
throw new BusinessException(ResultCode.LOGIN_AUTH_NOT_EXIST);
|
|
|
}
|
|
|
- if(!redisUtil.get(id).equals(param.getCode())){
|
|
|
+ if(!redisUtil.get(String.format(RedisKeyUtil.loginAuthCode,id)).equals(param.getCode())){
|
|
|
throw new BusinessException(ResultCode.LOGIN_AUTH_NOT_EXIST);
|
|
|
}
|
|
|
redisUtil.del(String.format(RedisKeyUtil.loginAuthCode,param.getCode()));
|