框架优化

This commit is contained in:
hoteas
2022-03-16 09:58:24 +08:00
parent 02fc1d7843
commit 7da5f26098
6 changed files with 262 additions and 163 deletions
+7 -1
View File
@@ -70,7 +70,13 @@ func (that *Application) Run(router Router) {
that.Router = Router{}
}
for k, v := range router {
that.Router[k] = v
if that.Router[k] == nil {
that.Router[k] = v
}
for k1, v1 := range v {
that.Router[k][k1] = v1
}
}
//重新设置MethodRouter//直达路由
that.MethodRouter = MethodRouter{}