liuxiaolong
2019-08-16 5dd6d9f4223af9a7c25bbfae774bae0204b794fd
middlewares/auth/auth.go
@@ -37,6 +37,7 @@
         c.Next()
      } else if strings.HasPrefix(urlPath,"/httpImage") {
         imgUrl := config.Server.ImageUrl
         urlPath = strings.Replace(urlPath, "/httpImage", "", -1)
         idx := strings.Index(urlPath, ":")
         tmpPath := urlPath
         if idx >-1 {//路径中包含有端口,取端口以后路径