From c582fd566aa2a1a18cafd4eb17e6246be4a9e8f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 16:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rpc/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rpc/Client.php b/Rpc/Client.php index 5c99033b..f3b8efef 100644 --- a/Rpc/Client.php +++ b/Rpc/Client.php @@ -43,7 +43,7 @@ class Client extends Component $this->client = $this->getClient(); } if (!$this->client->isConnected()) { - if (!$this->client->connect($service['host'], $service['port'], $service['timeout'])) { + if (!$this->client->connect($service['host'], $service['port'], $service['timeout'] ?? 1)) { return $this->client->errCode . ':' . $this->client->errMsg; } }