feat: 修复hook逻辑判断的BUG

This commit is contained in:
2026-01-04 23:02:40 +08:00
parent 19056208c8
commit 65802c5e86

View File

@@ -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,