Refine the checkUser api.

This commit is contained in:
zicla
2019-05-04 01:23:31 +08:00
parent a02eada324
commit 1f64d92dd2
11 changed files with 53 additions and 46 deletions

View File

@ -134,7 +134,7 @@ func (this *TankRouter) GlobalPanicHandler(writer http.ResponseWriter, request *
//错误情况记录。
go core.RunWithRecovery(func() {
this.footprintService.Trace(writer, request, time.Now().Sub(startTime), false)
this.footprintService.Trace(request, time.Now().Sub(startTime), false)
})
}
}
@ -182,7 +182,7 @@ func (this *TankRouter) ServeHTTP(writer http.ResponseWriter, request *http.Requ
//正常的访问记录会落到这里。
go core.RunWithRecovery(func() {
this.footprintService.Trace(writer, request, time.Now().Sub(startTime), true)
this.footprintService.Trace(request, time.Now().Sub(startTime), true)
})
} else {