|
@@ -53,6 +53,7 @@ public class LoginController extends BaseController{
|
|
|
if(!redisUtil.hasKey(String.format(RedisKeyUtil.loginAuthCode,request.getCode()))){
|
|
|
throw new BusinessException(ResultCode.LOGIN_AUTH_NOT_EXIST);
|
|
|
}
|
|
|
+ redisUtil.del(String.format(RedisKeyUtil.loginAuthCode,request.getCode()));
|
|
|
TmUser tmUser = tmUserService.getByUserName(request.getPhoneNum());
|
|
|
if(tmUser == null){
|
|
|
throw new BusinessException(ResultCode.PASSWORD_ERROR);
|