event.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. // 事件定义文件
  3. return [
  4. 'bind' => [
  5. ],
  6. 'listen' => [
  7. 'AppInit' => [],
  8. 'HttpRun' => [],
  9. 'HttpEnd' => [],
  10. 'LogLevel' => [],
  11. 'LogWrite' => [],
  12. 'swoole.task' => [\ln\listens\SwooleTaskListen::class],
  13. 'swoole.init' => [
  14. \ln\listens\InitSwooleLockListen::class,
  15. \ln\listens\CreateTimerListen::class,
  16. ],
  17. 'swoole.workerStart' => [\app\webscoket\SwooleWorkerStart::class],
  18. 'swoole.workerExit' => [\ln\listens\SwooleWorkerExitListen::class],
  19. 'swoole.workerError' => [\ln\listens\SwooleWorkerExitListen::class],
  20. 'swoole.workerStop' => [\ln\listens\SwooleWorkerExitListen::class],
  21. 'create_timer' => env('INSTALLED', false) ? [
  22. \ln\listens\AutoOrderProfitsharingListen::class,
  23. \ln\listens\AuthTakeOrderListen::class,
  24. \ln\listens\AutoCancelGroupOrderListen::class,
  25. \ln\listens\AuthCancelPresellOrderListen::class,
  26. \ln\listens\AutoUnLockBrokerageListen::class,
  27. \ln\listens\AutoSendPayOrderSmsListen::class,
  28. \ln\listens\SyncSmsResultCodeListen::class,
  29. \ln\listens\SyncBroadcastStatusListen::class,
  30. \ln\listens\ExcelFileDelListen::class,
  31. \ln\listens\RefundOrderAgreeListen::class,
  32. \ln\listens\SeckillTImeCheckListen::class,
  33. \ln\listens\AutoOrderReplyListen::class,
  34. \ln\listens\ProductPresellStatusListen::class,
  35. \ln\listens\ProductGroupStatusCheckListen::class,
  36. \ln\listens\SyncSpreadStatusListen::class,
  37. \ln\listens\GuaranteeCountListen::class,
  38. \ln\listens\AutoUnLockIntegralListen::class,
  39. \ln\listens\AutoClearIntegralListen::class,
  40. \ln\listens\MerchantApplyMentsCheckListen::class,
  41. \ln\listens\AutoUnlockMerchantMoneyListen::class,
  42. ] : [],
  43. 'pay_success_user_recharge' => [\ln\listens\pay\UserRechargeSuccessListen::class],
  44. 'pay_success_order' => [\ln\listens\pay\OrderPaySuccessListen::class],
  45. 'pay_success_presell' => [\ln\listens\pay\PresellPaySuccessListen::class],
  46. 'pay_success_meal' => [\ln\listens\pay\MealSuccessListen::class],
  47. ],
  48. 'subscribe' => [
  49. ],
  50. ];