1.用能代码提交
2.系统并发bug修改
This commit is contained in:
@@ -77,7 +77,7 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
|
||||
String jti = jsonObject.getStr(SecurityConstants.JWT_JTI);
|
||||
String exp = jsonObject.getStr(SecurityConstants.JWT_EXP);
|
||||
LocalDateTime expTime = LocalDateTimeUtil.of(Long.parseLong(exp + "000"));
|
||||
if(expTime.isAfter(LocalDateTimeUtil.now())){
|
||||
if(expTime.isBefore(LocalDateTimeUtil.now())){
|
||||
return ResponseUtils.writeErrorInfo(response, GateWayEnum.ACCESS_TOKEN_EXPIRE_JWT);
|
||||
}
|
||||
String blackUserKey = SecurityConstants.TOKEN_BLACKLIST_PREFIX + userIndex;
|
||||
|
||||
Reference in New Issue
Block a user