From 65802c5e86d6651f5ff374d9f5a8e864fcccbcfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 4 Jan 2026 23:02:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8Dhook=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=88=A4=E6=96=AD=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/hook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/hook.go b/router/hook.go index c5ce629..f85a625 100644 --- a/router/hook.go +++ b/router/hook.go @@ -25,7 +25,7 @@ func (s *server) hook(ctx *gin.Context, uriCfg define.UriConfig) { ) innerContext := util.GinCtxToContext(ctx) - if responseAfter, exists = ctx.Get(consts.GinLogicAfterResponseKey); !exists || nil != responseAfter { + if responseAfter, exists = ctx.Get(consts.GinLogicAfterResponseKey); !exists || nil == responseAfter { // 未配置 logger.Instance.Debug("未配置 Logic 执行后的 hook 逻辑", pkgLogger.NewLogData(innerContext, logger.RecordType, logger.CodeLogicHook, map[string]any{ "uri": uriCfg.Path,