This commit is contained in:
hoteas
2018-11-14 16:10:41 +00:00
parent 4057279471
commit a5895af113
2 changed files with 24 additions and 12 deletions
+6 -2
View File
@@ -266,6 +266,11 @@ func (this *Application) handler(w http.ResponseWriter, req *http.Request) {
//header默认设置
header := w.Header()
header.Set("Content-Type", "text/html; charset=utf-8")
//url去掉参数并序列化
context.HandlerStr, context.RouterString = this.urlSer(context.HandlerStr)
//访问拦截true继续false暂停
connectListenerLen := len(this.connectListener)
if connectListenerLen != 0 {
@@ -278,8 +283,7 @@ func (this *Application) handler(w http.ResponseWriter, req *http.Request) {
}
}
}
o, s = this.urlSer(context.HandlerStr)
context.RouterString = s
//接口服务
//if len(s) == 3 {
// //如果满足规则则路由到对应控制器去