From 9666d85b1b30c97ec08d6c6f630b746cd7549d9c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 23 Oct 2017 14:08:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Command.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Command.php b/src/Command.php index 55c5a3c..d22d6ca 100644 --- a/src/Command.php +++ b/src/Command.php @@ -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 = [