张子恒
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
server/middleware/jwt.go
|
@ -66,7 +66,7 @@ func JWTAuth() gin.HandlerFunc { |
|
|
if err!=nil { |
|
|
if err!=nil { |
|
|
global.GVA_LOG.Error("get redis jwt failed", zap.Any("err", err)) |
|
|
global.GVA_LOG.Error("get redis jwt failed", zap.Any("err", err)) |
|
|
}else{ |
|
|
}else{ |
|
|
service.JsonInBlacklist(model.JwtBlacklist{Jwt: RedisJwtToken}) |
|
|
|
|
|
|
|
|
_ = service.JsonInBlacklist(model.JwtBlacklist{Jwt: RedisJwtToken}) |
|
|
//当之前的取成功时才进行拉黑操作
|
|
|
//当之前的取成功时才进行拉黑操作
|
|
|
} |
|
|
} |
|
|
// 无论如何都要记录当前的活跃状态
|
|
|
// 无论如何都要记录当前的活跃状态
|
|
|