Browse Source

wip:请求地址匹配修改

wangkaiyue 2 năm trước cách đây
mục cha
commit
8fd55da3cb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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