From 5b7ebaf12ed37cb2e19a1314293403e718a1a6bf Mon Sep 17 00:00:00 2001 From: john Date: Mon, 22 Oct 2018 09:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E7=94=B1=E8=A1=A8?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E7=89=B9=E6=80=A7=E6=97=B6=E5=BC=95=E8=B5=B7?= =?UTF-8?q?=E7=9A=84=E6=8E=A7=E5=88=B6=E5=99=A8=E6=B3=A8=E5=86=8C=E6=96=B9?= =?UTF-8?q?=E5=BC=8FBindControllerMethod=E5=A4=B1=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/net/ghttp/ghttp_server_service_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g/net/ghttp/ghttp_server_service_controller.go b/g/net/ghttp/ghttp_server_service_controller.go index 5e104c145..4455f4697 100644 --- a/g/net/ghttp/ghttp_server_service_controller.go +++ b/g/net/ghttp/ghttp_server_service_controller.go @@ -95,7 +95,7 @@ func (s *Server)BindControllerMethod(pattern string, c Controller, method string m[key] = &handlerItem { name : fmt.Sprintf(`%s.%s.%s`, pkgPath, ctlName, mname), rtype : gROUTE_REGISTER_CONTROLLER, - ctype : t, + ctype : v.Elem().Type(), fname : mname, faddr : nil, }