diff --git a/router/handler.go b/router/handler.go index e842e48..2d16792 100644 --- a/router/handler.go +++ b/router/handler.go @@ -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 }