event.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. // 事件定义文件
  12. return [
  13. 'bind' => [
  14. ],
  15. 'listen' => [
  16. 'AppInit' => [],
  17. 'HttpRun' => [],
  18. 'HttpEnd' => [],
  19. 'LogLevel' => [],
  20. 'LogWrite' => [],
  21. 'swoole.task' => [\crmeb\listens\SwooleTaskListen::class],
  22. 'swoole.init' => [
  23. \crmeb\listens\InitSwooleLockListen::class,
  24. \crmeb\listens\CreateTimerListen::class,
  25. ],
  26. 'swoole.workerStart' => [\app\webscoket\SwooleWorkerStart::class],
  27. 'swoole.workerExit' => [\crmeb\listens\SwooleWorkerExitListen::class],
  28. 'swoole.workerError' => [\crmeb\listens\SwooleWorkerExitListen::class],
  29. 'swoole.workerStop' => [\crmeb\listens\SwooleWorkerExitListen::class],
  30. 'create_timer' => env('INSTALLED', false) ? [
  31. \crmeb\listens\AuthTakeOrderListen::class,
  32. \crmeb\listens\AutoCancelGroupOrderListen::class,
  33. \crmeb\listens\AuthCancelPresellOrderListen::class,
  34. \crmeb\listens\AutoUnLockBrokerageListen::class,
  35. \crmeb\listens\AutoSendPayOrderSmsListen::class,
  36. \crmeb\listens\SyncSmsResultCodeListen::class,
  37. \crmeb\listens\SyncBroadcastStatusListen::class,
  38. \crmeb\listens\ExcelFileDelListen::class,
  39. \crmeb\listens\RefundOrderAgreeListen::class,
  40. \crmeb\listens\SeckillTImeCheckListen::class,
  41. \crmeb\listens\AutoOrderReplyListen::class,
  42. \crmeb\listens\ProductPresellStatusListen::class,
  43. \crmeb\listens\ProductGroupStatusCheckListen::class,
  44. \crmeb\listens\SyncSpreadStatusListen::class,
  45. ] : [],
  46. 'pay_success_user_recharge' => [\crmeb\listens\pay\UserRechargeSuccessListen::class],
  47. 'pay_success_order' => [\crmeb\listens\pay\OrderPaySuccessListen::class],
  48. 'pay_success_presell' => [\crmeb\listens\pay\PresellPaySuccessListen::class]
  49. ],
  50. 'subscribe' => [
  51. ],
  52. ];