ForceSubscribeDelayMsg.php 975 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: z-yang
  5. * Date: 2020/3/30
  6. * Time: 10:18
  7. */
  8. namespace App\Console\Commands\SmartPush;
  9. use App\Modules\OfficialAccount\Services\ForceSubscribeDelayMsgService;
  10. use Illuminate\Console\Command;
  11. class ForceSubscribeDelayMsg extends Command
  12. {
  13. /**
  14. * The name and signature of the console command.
  15. *
  16. * @var string
  17. */
  18. protected $signature = 'SmartPush:ForceSubscribeDelayMsg';
  19. /**
  20. * The console command description.
  21. *
  22. * @var string
  23. */
  24. protected $description = '关注延迟';
  25. /**
  26. * Create a new command instance.
  27. *
  28. * @return void
  29. */
  30. public function __construct()
  31. {
  32. parent::__construct();
  33. }
  34. /**
  35. * Execute the console command.
  36. *
  37. * @return mixed
  38. */
  39. public function handle()
  40. {
  41. $this->send();
  42. }
  43. private function send()
  44. {
  45. ForceSubscribeDelayMsgService::getSendList(120);
  46. }
  47. }