mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-10-14 22:13:43 +08:00
优化服务退出流程,增加中间件文档
This commit is contained in:
@@ -20,9 +20,9 @@ func (s *sHook) accessLog(r *ghttp.Request) {
|
||||
if r.IsFileRequest() {
|
||||
return
|
||||
}
|
||||
|
||||
var ctx = contexts.Detach(r.Context())
|
||||
modelCtx := contexts.Get(ctx)
|
||||
if modelCtx == nil {
|
||||
if contexts.Get(ctx) == nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user