From 1830f0a571e76a00f9dbf349f1092cbcbe2aaf81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 3 Jan 2026 23:04:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8DrequestHandler?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/handler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/router/handler.go b/router/handler.go index 2d16792..6aeec13 100644 --- a/router/handler.go +++ b/router/handler.go @@ -138,13 +138,12 @@ func (s *server) formatError(ctx *gin.Context, err any) exception.IException { func (s *server) RequestHandler(uriCfg UriConfig) gin.HandlerFunc { return func(ctx *gin.Context) { var ( - err error e exception.IException handleResult any inputValue reflect.Value ) - if _, inputValue, e = s.initRequest(ctx, uriCfg); nil != err { + if _, inputValue, e = s.initRequest(ctx, uriCfg); nil != e { response.SendWithException(ctx, e, &define.ResponseOption{ ContentType: consts.MimeTypeJson, })