BlackUser.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Events;
  3. use Illuminate\Broadcasting\Channel;
  4. use Illuminate\Queue\SerializesModels;
  5. use Illuminate\Broadcasting\PrivateChannel;
  6. use Illuminate\Broadcasting\PresenceChannel;
  7. use Illuminate\Foundation\Events\Dispatchable;
  8. use Illuminate\Broadcasting\InteractsWithSockets;
  9. use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  10. use Illuminate\Support\Facades\Config;
  11. /**
  12. * 用户加入黑名单
  13. * Class BlackUser
  14. * @package App\Events
  15. */
  16. class BlackUser
  17. {
  18. use Dispatchable;
  19. use InteractsWithSockets;
  20. use SerializesModels;
  21. public $uid;
  22. public $endtime;
  23. public $black_type;
  24. public $stackGlobalConfig;
  25. /**
  26. * Create a new event instance.
  27. *
  28. * @param int $uid
  29. * @param int $endtime
  30. * @param string $black_type
  31. */
  32. public function __construct(int $uid, int $endtime, string $black_type)
  33. {
  34. $this->uid = $uid;
  35. $this->endtime = $endtime;
  36. $this->black_type = $black_type;
  37. $this->stackGlobalConfig = Config::all();
  38. }
  39. }