修复传参错误
This commit is contained in:
parent
2d69d673ec
commit
ce8f34cc81
2
rpc.go
2
rpc.go
@ -252,7 +252,7 @@ func (r *request) Send(ctx *gin.Context, serviceFlag string, apiFlag string, par
|
|||||||
if !r.codeIsSuccess(code, apiConfig.SuccessCodeList) {
|
if !r.codeIsSuccess(code, apiConfig.SuccessCodeList) {
|
||||||
return fmt.Errorf("业务状态码异常 : %v -> %v", code, message)
|
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实例
|
// GetHttpClient 获取client实例
|
||||||
|
Loading…
Reference in New Issue
Block a user