修正Command
This commit is contained in:
parent
7cb78c3e74
commit
9666d85b1b
|
@ -17,8 +17,6 @@ use think\facade\Config;
|
||||||
|
|
||||||
abstract class Command extends \think\console\Command
|
abstract class Command extends \think\console\Command
|
||||||
{
|
{
|
||||||
protected $config = 'database';
|
|
||||||
|
|
||||||
public function getAdapter()
|
public function getAdapter()
|
||||||
{
|
{
|
||||||
if (isset($this->adapter)) {
|
if (isset($this->adapter)) {
|
||||||
|
@ -44,7 +42,7 @@ abstract class Command extends \think\console\Command
|
||||||
*/
|
*/
|
||||||
protected function getDbConfig()
|
protected function getDbConfig()
|
||||||
{
|
{
|
||||||
$config = Db::connect($this->config)->getConfig();
|
$config = Db::connect()->getConfig();
|
||||||
|
|
||||||
if (0 == $config['deploy']) {
|
if (0 == $config['deploy']) {
|
||||||
$dbConfig = [
|
$dbConfig = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user