123456789101112131415161718192021 |
- <?php
- namespace app\common\command;
- use app\service\EsMobileService;
- use think\console\Command;
- use think\console\Input;
- use think\console\Output;
- class TestCommand extends Command{
- protected function configure()
- {
- $this->setName('test')->setDescription('test');
- }
- protected function execute(Input $input, Output $output)
- {
- es()->search([
- 'index'=>EsMobileService::index(),
- ]);
- }
- }
|