修复传参错误

This commit is contained in:
白茶清欢 2022-07-01 11:17:57 +08:00
parent 2d69d673ec
commit ce8f34cc81

2
rpc.go
View File

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