This commit is contained in:
2021-03-23 16:48:33 +08:00
parent f5d3cec794
commit c582fd566a
+1 -1
View File
@@ -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;
}
}