This commit is contained in:
2021-07-12 17:46:21 +08:00
parent 4736478ddf
commit 6a4d1ec3da
+2 -2
View File
@@ -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');
}