gf2版本同步升级到v2.0.4,修复验证器兼容问题

This commit is contained in:
孟帅
2022-03-22 09:49:17 +08:00
parent 4dc278f9cb
commit c9383334b4
45 changed files with 410 additions and 303 deletions

View File

@@ -39,6 +39,13 @@ func (s *sHook) GlobalLog(r *ghttp.Request) {
ctx = r.Context()
)
// 没有上下文的请求不记录doc、favicon.ico等非服务类业务
modelCtx := com.Context.Get(ctx)
if modelCtx == nil {
return
}
// 计算运行耗时
com.Context.SetTakeUpTime(ctx, gtime.TimestampMilli()-r.EnterTime)
go sysService.Log.AutoLog(ctx)