From 473367da9f21442a3cd182f8a4a828f5f8a8a30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 30 Jun 2022 21:32:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=A7=A3=E6=9E=90=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc.go b/rpc.go index 5ea307c..745147e 100644 --- a/rpc.go +++ b/rpc.go @@ -252,7 +252,7 @@ func (r *request) Send(ctx *gin.Context, serviceFlag string, apiFlag string, par if !r.codeIsSuccess(code, apiConfig.SuccessCodeList) { return fmt.Errorf("业务状态码异常 : %v -> %v", code, message) } - return nil + return parseResponseBody([]byte(data), response.Header.Get("Content-type")) } // GetHttpClient 获取client实例