RegisterMessenger.php 773 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare (strict_types=1);
  3. namespace app\command;
  4. use think\console\Command;
  5. use think\console\Input;
  6. use think\console\input\Argument;
  7. use think\console\input\Option;
  8. use think\console\Output;
  9. use think\facade\Db;
  10. use think\facade\Log;
  11. /**
  12. * 注册短信提醒后台审核
  13. */
  14. class RegisterMessenger extends Command {
  15. protected function configure() {
  16. // 指令配置
  17. $this->setName('RegisterMessenger')
  18. ->setDescription('Auto send msg');
  19. }
  20. protected function execute(Input $input, Output $output) {
  21. //短信加入队列
  22. //查询注册未审核的企业
  23. $list = [];
  24. foreach ($list as $item) {
  25. queue("app\job\Messenger", ["type" => 1, "info" => $item]);
  26. }
  27. }
  28. }