From 65ac09b6a4b8912e562073c33ac5fdb0253cbe03 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期六, 26 十月 2019 11:35:53 +0800 Subject: [PATCH] fix --- middlewares/auth/auth.go | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/middlewares/auth/auth.go b/middlewares/auth/auth.go index 479d931..def56c1 100644 --- a/middlewares/auth/auth.go +++ b/middlewares/auth/auth.go @@ -35,7 +35,7 @@ outUserM[userId] = userId } -func removeOutUser(userId string) { +func RemoveOutUser(userId string) { lock.Lock() defer lock.Unlock() if _,ok := outUserM[userId];ok{ @@ -53,10 +53,6 @@ util.ResponseFormat(c,code.TokenNotFound,"灏氭湭鐧诲綍锛岃鐧诲綍") c.Abort() } - user := (*jwtDriver).User(c) - loginM := user.(map[string]interface{}) - userId := loginM["id"].(string) - removeOutUser(userId) c.Next() } else { c.Next() -- Gitblit v1.8.0