框架基本完成
This commit is contained in:
+2
-2
@@ -12,7 +12,7 @@ type Context struct {
|
||||
tag int64
|
||||
Resp http.ResponseWriter
|
||||
Req *http.Request
|
||||
App *App
|
||||
Application *Application
|
||||
RouterString []string
|
||||
Config Map
|
||||
Db *HoTimeDB
|
||||
@@ -32,7 +32,7 @@ func (this *Context) GetTag() int64 {
|
||||
|
||||
//唯一标志
|
||||
func (this *Context) Mtd(router [3]string) Map {
|
||||
this.App.Router[router[0]][router[1]][router[2]](this)
|
||||
this.Application.Router[router[0]][router[1]][router[2]](this)
|
||||
d := this.resp
|
||||
this.resp = nil
|
||||
return d
|
||||
|
||||
Reference in New Issue
Block a user