event.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. /** 事件定义文件
  12. * 调用事件示例:
  13. * @param mixed $event 事件名(或者类名)
  14. * @param mixed $args 参数
  15. * event($event,$args);
  16. * event('OrderCreateAfterListener',$order);
  17. */
  18. return [
  19. 'bind' => [
  20. ],
  21. 'listen' => [
  22. 'AppInit' => [],
  23. 'HttpRun' => [],
  24. 'HttpEnd' => [\app\listener\http\HttpEndListener::class], //HTTP请求结束回调事件
  25. 'LogLevel' => [],
  26. 'LogWrite' => [],
  27. 'QueueStartListener' => [\app\listener\queue\QueueStartListener::class],
  28. 'UserLoginListener' => [\app\listener\user\LoginListener::class],
  29. 'AdminLoginListener' => [\app\listener\admin\AdminLoginListener::class],//管理员登录
  30. 'UserRegisterListener' => [\app\listener\user\RegisterListener::class], //用户注册后置事件
  31. 'WechatAuthListener' => [\app\listener\wechat\AuthListener::class], //用户授权后置事件
  32. 'OrderCreateAfterListener' => [\app\listener\order\OrderCreateAfterListener::class], //订单创建后置事件
  33. 'OrderPaySuccessListener' => [\app\listener\order\OrderPaySuccessListener::class], //订单支付成功后置事件
  34. 'OrderDeliveryListener' => [\app\listener\order\OrderDeliveryListener::class], //订单发货后置事件
  35. 'OrderTakeListener' => [\app\listener\order\OrderTakeListener::class], //订单收货后置事件
  36. 'OrderRefundCreateAfterListener' => [\app\listener\order\OrderRefundCreateAfterListener::class], //售后单生成后置事件
  37. 'OrderRefundCancelAfterListener' => [\app\listener\order\OrderRefundCancelAfterListener::class], //售后单取消后置事件
  38. 'OutPushListener' => [\app\listener\out\OutPushListener::class], //对外推送事件
  39. 'UserLevelListener' => [\app\listener\user\UserLevelListener::class], //用户升级事件
  40. 'UserVisitListener' => [\app\listener\user\UserVisitListener::class], //用户访问事件
  41. 'NoticeListener' => [\app\listener\notice\NoticeListener::class], //通知->消息事件
  42. 'NotifyListener' => [\app\listener\pay\NotifyListener::class],//支付异步回调
  43. 'CrontabListener' => [\app\listener\crontab\SystemCrontabListener::class],//定时任务事件
  44. 'OrderShipping' => [\app\listener\order\OrderShippingListener::class],//定时任务事件
  45. ],
  46. ];