feat: 修复代理接口异常处理失败的BUG

This commit is contained in:
2026-01-03 22:13:34 +08:00
parent 193ed9f42f
commit 158cf2b33b

View File

@@ -153,7 +153,7 @@ func (s *server) RequestHandler(uriCfg UriConfig) gin.HandlerFunc {
}
defer s.hook(ctx, uriCfg) // 执行 Logic 之后的相关逻辑
if handleResult, e = s.callFunc(ctx, uriCfg, inputValue); nil != e {
if handleResult, e = s.callFunc(ctx, uriCfg, inputValue); nil == e {
response.SuccessWithExtension(ctx, handleResult, &define.ResponseOption{ContentType: consts.MimeTypeJson})
return
}