改进Query类的connect方法

This commit is contained in:
thinkphp
2017-09-04 11:29:19 +08:00
parent 3f813b293f
commit ad48ec693f

View File

@@ -115,6 +115,7 @@ class Query
{
$this->connection = Db::connect($config);
$this->setBuilder();
$this->prefix = $this->connection->getConfig('prefix');
return $this;
}