InformWMSReceivedEvent.php 836 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Events;
  3. use App\Listeners\InformWMSReceivedListener;
  4. use Illuminate\Broadcasting\Channel;
  5. use Illuminate\Queue\SerializesModels;
  6. use Illuminate\Broadcasting\PrivateChannel;
  7. use Illuminate\Broadcasting\PresenceChannel;
  8. use Illuminate\Foundation\Events\Dispatchable;
  9. use Illuminate\Broadcasting\InteractsWithSockets;
  10. use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  11. class InformWMSReceivedEvent
  12. {
  13. use Dispatchable, InteractsWithSockets, SerializesModels;
  14. public $rejectedBill;
  15. public function __construct($rejectedBill)
  16. {
  17. $this->rejectedBill=$rejectedBill;
  18. }
  19. public function directRun()
  20. {
  21. return (new InformWMSReceivedListener())->handle($this);
  22. }
  23. }
  24. //撞车了
  25. //下雨了
  26. //通知WMS接收
  27. //onclick 点击事件发生
  28. //onmouseover 鼠标滑入发生