feat: 修复代理接口异常处理失败的BUG
This commit is contained in:
@@ -153,7 +153,7 @@ func (s *server) RequestHandler(uriCfg UriConfig) gin.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defer s.hook(ctx, uriCfg) // 执行 Logic 之后的相关逻辑
|
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})
|
response.SuccessWithExtension(ctx, handleResult, &define.ResponseOption{ContentType: consts.MimeTypeJson})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user