完善访问日志
This commit is contained in:
@@ -18,6 +18,7 @@ type Context struct {
|
||||
RespData Map
|
||||
CacheIns
|
||||
SessionIns
|
||||
DataSize int
|
||||
HandlerStr string //复写请求url
|
||||
}
|
||||
|
||||
@@ -56,6 +57,7 @@ func (that *Context) Display(statu int, data interface{}) {
|
||||
}
|
||||
|
||||
func (that *Context) View() {
|
||||
|
||||
if that.RespData == nil {
|
||||
return
|
||||
}
|
||||
@@ -63,6 +65,8 @@ func (that *Context) View() {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
that.DataSize = len(d)
|
||||
that.RespData = nil
|
||||
that.Resp.Write(d)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user