From b75d6a62ef8829b61d580511ffa84a1b39d0c976 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Wed, 5 Mar 2025 19:54:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95shell=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index b99820f..d3640ed 100644 --- a/main.go +++ b/main.go @@ -134,6 +134,11 @@ func JWTAuthMiddleware() gin.HandlerFunc { return } } + //测试 + if strings.Contains(c.Request.URL.Path, "/shell/") { + log.Printf("req token:%s ,path:%s", tokenString, c.Request.URL.Path) + } + //查看token是否在超级token中 if worker.IsContainSet("super_permission_tokens", tokenString) { sId := c.Request.Header.Get("super_id")