优化command
This commit is contained in:
parent
93f22ab338
commit
00a37a05f2
@ -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;
|
||||||
|
@ -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');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user