MakeGoodsTask.php 723 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. declare (strict_types=1);
  3. namespace app\command;
  4. use app\controller\api\store\product\Jd;
  5. use think\console\Command;
  6. use think\console\Input;
  7. use think\console\Output;
  8. /**
  9. * Class PensionTasks
  10. * @package app\command
  11. * @author: php迷途小书童
  12. * @created: 2021/3/19 9:14
  13. */
  14. class MakeGoodsTask extends Command
  15. {
  16. protected function configure()
  17. {
  18. // 指令配置
  19. $this->setName('makeGoods')
  20. ->setDescription('the makeGoods command');
  21. }
  22. protected function execute(Input $input, Output $output)
  23. {
  24. // 指令输出
  25. $output->writeln('makeGoods');
  26. // (new Access())->test1111();
  27. app()->make(Jd::class)->get_jd_goods_list();
  28. }
  29. }