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实例