|
@@ -131,7 +131,9 @@ public class TokenService {
|
|
|
}
|
|
|
if((openId != null) && (StringUtils.isNotBlank(openId))){
|
|
|
String userKey = LOGIN_OPENID+openId;
|
|
|
- redisService.delete(userKey);
|
|
|
+ if(redisService.hasKey(userKey)){
|
|
|
+ redisService.delete(userKey);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|