完善访问日志

This commit is contained in:
hoteas
2021-11-08 06:49:34 +08:00
parent fdab298f52
commit 1f2a247398
2 changed files with 24 additions and 4 deletions
+4
View File
@@ -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
}