1.用能代码提交

2.系统并发bug修改
This commit is contained in:
2024-07-29 13:56:28 +08:00
parent da387cc39d
commit 59b56a39dc
6 changed files with 20 additions and 15 deletions

View File

@@ -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;