event.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. // 事件定义文件
  3. return [
  4. 'bind' => [
  5. ],
  6. 'listen' => [
  7. 'AppInit' => [],
  8. 'HttpRun' => [],
  9. 'HttpEnd' => [],
  10. 'LogLevel' => [],
  11. 'LogWrite' => [],
  12. 'swoole.task' => [\crmeb\listens\SwooleTaskListen::class],
  13. 'swoole.init' => [\crmeb\listens\InitSwooleLockListen::class],
  14. 'swoole.workerStart' => [\app\webscoket\SwooleWorkerStart::class],
  15. 'swoole.start' => env('INSTALLED', false) ? [
  16. \crmeb\listens\AuthTakeOrderListen::class,//自动收货
  17. \crmeb\listens\AutoCancelGroupOrderListen::class,//未支付订单 自动关闭订单(超过多少分钟)
  18. \crmeb\listens\AutoUnLockBrokerageListen::class,//自动解冻佣金
  19. \crmeb\listens\AutoSendPayOrderSmsListen::class,//查询10分钟内未支付的订单,发送短信提示用户
  20. \crmeb\listens\SyncSmsResultCodeListen::class,//查询短信发送记录后 api返回结果
  21. \crmeb\listens\SyncBroadcastStatusListen::class,
  22. \crmeb\listens\ExcelFileDelListen::class,
  23. // \crmeb\listens\RefundOrderAgreeListen::class,//商户自动处理退款订单期限(天)
  24. \crmeb\listens\SeckillTImeCheckListen::class,//自动检测秒杀结束失败
  25. \crmeb\listens\GongListen::class,//微唯宝发货 每分钟执行1次
  26. \crmeb\listens\GongAfterListen::class,//微唯宝退货退款
  27. \app\listens\StoreRefundOrderListen::class,//售后订单超过72小时自动取消
  28. \app\listens\WechatExtractListen::class,//微信提现的定时审核 3分钟执行1次
  29. ] : [],
  30. 'pay_success_user_recharge' => [\crmeb\listens\pay\UserRechargeSuccessListen::class],
  31. 'pay_success_order' => [\crmeb\listens\pay\OrderPaySuccessListen::class],
  32. 'pay_success_order_agent' => [\crmeb\listens\pay\AgentOrderPaySuccessListen::class],
  33. ],
  34. 'subscribe' => [
  35. ],
  36. ];