From d4bf53dd19a45ef09a367babcf7a2ac04ae1d08f Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 17 十月 2023 14:31:31 +0800 Subject: [PATCH] bug修改 --- middleware/jwt.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/middleware/jwt.go b/middleware/jwt.go index ec143b0..240bf09 100644 --- a/middleware/jwt.go +++ b/middleware/jwt.go @@ -113,7 +113,7 @@ claims.CrmUserId = userInfo.UserId claims.NickName = userInfo.NickName c.Set("claims", claims) - if CheckAuth(c.Request.RequestURI, token) { + if CheckAuth(c.Request.URL.Path, token) { c.Next() } else { ctx.Fail(ecode.JWTDisabled) -- Gitblit v1.8.0