测试shell接口

This commit is contained in:
junleea 2025-03-05 19:54:31 +08:00
parent 2042c11b40
commit b75d6a62ef
1 changed files with 5 additions and 0 deletions

View File

@ -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")