Explorar o código

wip:请求地址匹配修改

wangkaiyue %!s(int64=2) %!d(string=hai) anos
pai
achega
8fd55da3cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/router/manager.go

+ 1 - 1
core/router/manager.go

@@ -96,7 +96,7 @@ func (m *Manager) InfusionContext(r *ghttp.Request) (err error) {
 		Sess:       &JySession{},
 		RouterRule: &Router{},
 	}
-	router, err = m.GetRouterRule(r.RequestURI)
+	router, err = m.GetRouterRule(r.URL.Path)
 	if err != nil {
 		r.SetCtxVar(GContextKey, GCtx)
 		return