|
|
@ -16,7 +16,8 @@ public interface UserTokenFilter { |
|
|
|
//是否过期
|
|
|
|
Claims claims = jwtTokenUtils.getClaimByToken(token); |
|
|
|
if (claims == null || jwtTokenUtils.isTokenExpired(claims.getExpiration())) { |
|
|
|
throw new RenException(EpmetErrorCode.ERR401.getCode()); |
|
|
|
// throw new RenException(EpmetErrorCode.ERR401.getCode());
|
|
|
|
return null; |
|
|
|
} |
|
|
|
//获取用户ID
|
|
|
|
String app = (String) claims.get("app"); |
|
|
|