From 1a50f87495eed35f739290a3bab09879d2114609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AD=90=E6=81=92?= Date: Mon, 26 Oct 2020 20:15:30 +0800 Subject: [PATCH] Update jwt.go --- server/middleware/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middleware/jwt.go b/server/middleware/jwt.go index 6b72c53c..f7c57171 100644 --- a/server/middleware/jwt.go +++ b/server/middleware/jwt.go @@ -66,7 +66,7 @@ func JWTAuth() gin.HandlerFunc { if err!=nil { global.GVA_LOG.Error("get redis jwt failed", zap.Any("err", err)) }else{ - service.JsonInBlacklist(model.JwtBlacklist{Jwt: RedisJwtToken}) + _ = service.JsonInBlacklist(model.JwtBlacklist{Jwt: RedisJwtToken}) //当之前的取成功时才进行拉黑操作 } // 无论如何都要记录当前的活跃状态