Merge branch 'refs/heads/feat-cmd' into release
This commit is contained in:
commit
88ab3a6614
18
main.go
18
main.go
|
|
@ -137,15 +137,15 @@ func JWTAuthMiddleware() gin.HandlerFunc {
|
|||
//查看token是否在超级token中
|
||||
if worker.IsContainSet("super_permission_tokens", tokenString) {
|
||||
sId := c.Request.Header.Get("super_id")
|
||||
if sId == "" {
|
||||
c.AbortWithStatus(200)
|
||||
c.JSON(200, gin.H{
|
||||
"message": "NOT_LOGIN",
|
||||
"error": "super_id is empty",
|
||||
"code": proto.TokenIsNull,
|
||||
})
|
||||
return
|
||||
}
|
||||
//if sId == "" {
|
||||
// c.AbortWithStatus(200)
|
||||
// c.JSON(200, gin.H{
|
||||
// "message": "NOT_LOGIN",
|
||||
// "error": "super_id is empty",
|
||||
// "code": proto.TokenIsNull,
|
||||
// })
|
||||
// return
|
||||
//}
|
||||
if sId == "" {
|
||||
sId = c.Query("super_id")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue