| | |
| | | loginUserInfo.setStatus(AdminStatusStatus.NORMAL.getCode()); |
| | | String key = String.format("%d_%d", loginUserInfo.getUserId(), loginUserInfo.getAdministratorType()); |
| | | String redisToken = String.valueOf(redisService.get(key)); |
| | | //TODO 上线记得改回来 |
| | | // if (redisToken == null || !token.equals(redisToken)) { |
| | | // throw new BusinessException("token无效"); |
| | | // } |
| | | if (redisToken == null || !token.equals(redisToken)) { |
| | | throw new BusinessException("token无效"); |
| | | } |
| | | return loginUserInfo; |
| | | } catch (io.jsonwebtoken.security.SecurityException | MalformedJwtException e) { |
| | | log.info("Invalid JWT signature."); |