ppt制作用户基础信息日志
This commit is contained in:
parent
cb051e55a1
commit
f12afffab7
1
main.go
1
main.go
|
|
@ -107,6 +107,7 @@ func JWTAuthMiddleware() gin.HandlerFunc {
|
||||||
//如果请求为login或register,则不需要验证token
|
//如果请求为login或register,则不需要验证token
|
||||||
for k, _ := range proto.Url_map {
|
for k, _ := range proto.Url_map {
|
||||||
if strings.Contains(c.Request.URL.Path, k) {
|
if strings.Contains(c.Request.URL.Path, k) {
|
||||||
|
log.Println("need not check token:", c.Request.URL.Path)
|
||||||
c.Next()
|
c.Next()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue