From 6a4d1ec3da78686906ea105cb93579b1cd01a5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 12 Jul 2021 17:46:21 +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 --- System/Abstracts/BaseApplication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php index 808c435a..9c58f01f 100644 --- a/System/Abstracts/BaseApplication.php +++ b/System/Abstracts/BaseApplication.php @@ -319,7 +319,7 @@ abstract class BaseApplication extends Service */ public function getMysqlFromPool(): Connection { - return $this->get('pool')->getDb(); + return $this->get('connections'); } @@ -329,7 +329,7 @@ abstract class BaseApplication extends Service */ public function getRedisFromPool(): SRedis { - return $this->get('pool')->getRedis(); + return $this->get('redis_connections'); }