修正Command

This commit is contained in:
thinkphp 2017-10-23 14:08:53 +08:00
parent 7cb78c3e74
commit 9666d85b1b

View File

@ -17,8 +17,6 @@ use think\facade\Config;
abstract class Command extends \think\console\Command
{
protected $config = 'database';
public function getAdapter()
{
if (isset($this->adapter)) {
@ -44,7 +42,7 @@ abstract class Command extends \think\console\Command
*/
protected function getDbConfig()
{
$config = Db::connect($this->config)->getConfig();
$config = Db::connect()->getConfig();
if (0 == $config['deploy']) {
$dbConfig = [