修复路由表打印特性时引起的控制器注册方式BindControllerMethod失效问题

This commit is contained in:
john
2018-10-22 09:31:59 +08:00
parent da98b9f7c1
commit 5b7ebaf12e

View File

@ -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,
}