From ff751db14ca495e8449b88ccb217cb690e62a484 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 6 Apr 2023 23:01:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connection.php b/Connection.php index 7e484d2..e234e42 100644 --- a/Connection.php +++ b/Connection.php @@ -183,7 +183,7 @@ class Connection extends Component */ public function getConnection(): PDO { - $client = $this->connections->get($this->cds); + return $this->connections->get($this->cds); if ($client === false) { throw new Exception('waite db client timeout.'); }