GroupChatFetch.php 552 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace app\common\command;
  3. use app\common\service\DemandGroupChatService;
  4. use app\common\service\WorkWeChatService;
  5. use think\console\Command;
  6. use think\console\Input;
  7. use think\console\Output;
  8. class GroupChatFetch extends Command
  9. {
  10. protected function configure()
  11. {
  12. $this->setName('groupChat:fetch')->setDescription('groupChat fetch command!');
  13. }
  14. protected function execute(Input $input, Output $output)
  15. {
  16. $output->writeln("groupChat fetch...");
  17. DemandGroupChatService::updateQrCode(8);
  18. }
  19. }