diff --git a/.beagle.yml b/.beagle.yml index cd35cbd6b5421da4c94e30711e4681591b8fdeaf..83a70f24dc6b6c04390de5eb3ade502dd0389f06 100644 --- a/.beagle.yml +++ b/.beagle.yml @@ -22,7 +22,7 @@ pipeline: - /var/run/docker.sock:/var/run/docker.sock base: registry.cn-qingdao.aliyuncs.com/wod/alpine-glibc:3.8 repo: apaas/apaas-meshproxy - version: 3.0.3 + version: 3.0.4 channel: alpha registry: hub.wodcloud.com secrets: diff --git a/src/handler/proxyhandler.go b/src/handler/proxyhandler.go index d1af467d82c1506d6f9a0093f2052b6fe7aaaf10..008062f0113572b20817b5344a32f3d5d2d4071d 100644 --- a/src/handler/proxyhandler.go +++ b/src/handler/proxyhandler.go @@ -17,7 +17,7 @@ import ( var Resp *http.Response func Proxy(c *gin.Context) { - applyId := c.Query("applyId") + applyId := c.Param("applyId") if applyId == "" { res := model.WebRes{} res.Data = "applyId不能为空" diff --git a/src/router/router.go b/src/router/router.go index 4c45433421ded5e13063389b7cb74ebd17202fa2..44e1dfe306909828dff26c34f9c657cc207e694e 100644 --- a/src/router/router.go +++ b/src/router/router.go @@ -31,7 +31,7 @@ func Load(middleware ...gin.HandlerFunc) http.Handler { e.Use(middleware...) root := e.Group(config.Prefix) { - root.Any("/proxy", handler.Proxy) + root.Any("/:svcId/:applyId", handler.Proxy) } e.GET("/health", handler.Health) return e