优化command

This commit is contained in:
JaguarJack 2020-05-22 14:09:59 +08:00
parent 93f22ab338
commit 00a37a05f2
2 changed files with 3 additions and 4 deletions

View File

@ -4,7 +4,6 @@ declare (strict_types = 1);
namespace catcher\command\Tools; namespace catcher\command\Tools;
use catcher\library\Compress; use catcher\library\Compress;
use catcher\library\Http;
use think\console\Command; use think\console\Command;
use think\console\Input; use think\console\Input;
use think\console\input\Argument; use think\console\input\Argument;

View File

@ -3,7 +3,9 @@ declare (strict_types = 1);
namespace catcher\command\Tools; namespace catcher\command\Tools;
use catcher\facade\Http;
use catcher\Tree; use catcher\Tree;
use catcher\Utils;
use think\console\Command; use think\console\Command;
use think\console\Input; use think\console\Input;
use think\console\input\Argument; use think\console\input\Argument;
@ -26,9 +28,7 @@ class ExportDataCommand extends Command
protected function execute(Input $input, Output $output) protected function execute(Input $input, Output $output)
{ {
$table = Utils::tablePrefix() . $input->getArgument('table');
$table = \config('database.connections.mysql.prefix') . $input->getArgument('table');
$parent = $input->getOption('pid'); $parent = $input->getOption('pid');