From ce8f34cc8142140ad5c474e780416c220ffe215a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 1 Jul 2022 11:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BC=A0=E5=8F=82=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= 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 745147e..a5ca01e 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 parseResponseBody([]byte(data), response.Header.Get("Content-type")) + return parseResponseBody(response.Header.Get("Content-type"), []byte(data), receiver) } // GetHttpClient 获取client实例