Update Client.php
This commit is contained in:
parent
9cbfd4850e
commit
ac3f7bb737
|
@ -92,13 +92,14 @@ class Client extends JsonRpc
|
||||||
*/
|
*/
|
||||||
protected function post($payload, $options = [])
|
protected function post($payload, $options = [])
|
||||||
{
|
{
|
||||||
|
$uri = 'rpc/json-rpc-v2.json?app='.$this->config['app'];
|
||||||
try {
|
try {
|
||||||
$headers = [
|
$headers = [
|
||||||
'X-Client-App' => $this->config['app'],
|
'X-Client-App' => $this->config['app'],
|
||||||
'X-Request-Id' => app('request')->header('X-Request-Id')
|
'X-Request-Id' => app('request')->header('X-Request-Id')
|
||||||
];
|
];
|
||||||
app('rpc.logger')->info("client_request", array_merge($this->server_config, $payload));
|
app('rpc.logger')->info("client_request", array_merge($this->server_config, $payload));
|
||||||
$resp = $this->http->request('POST', 'rpc/json-rpc-v2.json', array_merge([
|
$resp = $this->http->request('POST', $uri, array_merge([
|
||||||
'headers' => $headers,
|
'headers' => $headers,
|
||||||
'json' => $payload,
|
'json' => $payload,
|
||||||
], $options));
|
], $options));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user