| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- declare (strict_types=1);
- namespace app\command;
- use app\controller\api\store\product\Jd;
- use think\console\Command;
- use think\console\Input;
- use think\console\Output;
- /**
- * Class PensionTasks
- * @package app\command
- * @author: php迷途小书童
- * @created: 2021/3/19 9:14
- */
- class MakeGoodsTask extends Command
- {
- protected function configure()
- {
- // 指令配置
- $this->setName('makeGoods')
- ->setDescription('the makeGoods command');
- }
- protected function execute(Input $input, Output $output)
- {
- // 指令输出
- $output->writeln('makeGoods');
- // (new Access())->test1111();
- app()->make(Jd::class)->get_jd_goods_list();
- }
- }
|