From ac3f7bb7378f7692da43f8b54821848605281a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Tue, 23 Apr 2019 15:17:14 +0800 Subject: [PATCH] Update Client.php --- src/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 7b139df..304b9a1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -92,13 +92,14 @@ class Client extends JsonRpc */ protected function post($payload, $options = []) { + $uri = 'rpc/json-rpc-v2.json?app='.$this->config['app']; try { $headers = [ 'X-Client-App' => $this->config['app'], 'X-Request-Id' => app('request')->header('X-Request-Id') ]; 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, 'json' => $payload, ], $options));