Commit 5c302b62 authored by shajiaiming's avatar shajiaiming

fix

parent 93c31394
...@@ -13,6 +13,13 @@ func AUTH(handlerTableName map[string]string) gin.HandlerFunc { ...@@ -13,6 +13,13 @@ func AUTH(handlerTableName map[string]string) gin.HandlerFunc {
token := ctx.Request.Header.Get("Token") token := ctx.Request.Header.Get("Token")
user, _ := util.ParseToken(token) user, _ := util.ParseToken(token)
if 81 == user.UserInfo.Uid {
handler.SendResponse(ctx, errno.PermissionDenied, nil)
ctx.Abort()
return
}
if 81 != user.UserInfo.Uid { if 81 != user.UserInfo.Uid {
ctx.Next() ctx.Next()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment