测试shell接口
This commit is contained in:
parent
2042c11b40
commit
b75d6a62ef
5
main.go
5
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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue