92 lines
3.9 KiB
PHP
92 lines
3.9 KiB
PHP
<?php
|
|
|
|
|
|
// 事件定义文件
|
|
return [
|
|
'bind' => [],
|
|
|
|
'listen' => [
|
|
'AppInit' => [],
|
|
'HttpRun' => [],
|
|
'HttpEnd' => [],
|
|
'LogLevel' => [],
|
|
'LogWrite' => [],
|
|
'swoole.task' => [\crmeb\listens\SwooleTaskListen::class],
|
|
'swoole.init' => [
|
|
\crmeb\listens\InitSwooleLockListen::class,
|
|
\crmeb\listens\CreateTimerListen::class,
|
|
// \crmeb\listens\QueueListen::class,
|
|
],
|
|
'swoole.workerStart' => [\app\webscoket\SwooleWorkerStart::class],
|
|
'swoole.workerExit' => [\crmeb\listens\SwooleWorkerExitListen::class],
|
|
'swoole.workerError' => [\crmeb\listens\SwooleWorkerExitListen::class],
|
|
'swoole.workerStop' => [\crmeb\listens\SwooleWorkerExitListen::class],
|
|
'create_timer' => env('INSTALLED', false) ? [
|
|
\crmeb\listens\AutoOrderProfitsharingListen::class,
|
|
\crmeb\listens\AuthTakeOrderListen::class,
|
|
\crmeb\listens\AutoCancelGroupOrderListen::class,
|
|
\crmeb\listens\AuthCancelPresellOrderListen::class,
|
|
\crmeb\listens\AutoUnLockBrokerageListen::class,
|
|
\crmeb\listens\AutoSendPayOrderSmsListen::class,
|
|
\crmeb\listens\SyncSmsResultCodeListen::class,
|
|
\crmeb\listens\SyncBroadcastStatusListen::class,
|
|
\crmeb\listens\RefundOrderAgreeListen::class,
|
|
\crmeb\listens\SeckillTImeCheckListen::class,
|
|
\crmeb\listens\AutoOrderReplyListen::class,
|
|
\crmeb\listens\ProductPresellStatusListen::class,
|
|
\crmeb\listens\ProductGroupStatusCheckListen::class,
|
|
\crmeb\listens\SyncSpreadStatusListen::class,
|
|
\crmeb\listens\GuaranteeCountListen::class,
|
|
\crmeb\listens\AutoUnLockIntegralListen::class,
|
|
\crmeb\listens\AutoClearIntegralListen::class,
|
|
\crmeb\listens\MerchantApplyMentsCheckListen::class,
|
|
\crmeb\listens\AutoUnlockMerchantMoneyListen::class,
|
|
\crmeb\listens\SumCountListen::class,
|
|
\crmeb\listens\SyncHotRankingListen::class,
|
|
\crmeb\listens\AuthCancelActivityListen::class,
|
|
\crmeb\listens\CloseUserSvipListen::class,
|
|
\crmeb\listens\SendSvipCouponListen::class,
|
|
\crmeb\listens\SyncMerchantMarginStatusListen::class,
|
|
\app\listener\shareholder\ShareholderListen::class,
|
|
] : [],
|
|
'pay_success_user_recharge' => [\crmeb\listens\pay\UserRechargeSuccessListen::class],
|
|
'pay_success_user_order' => [\crmeb\listens\pay\UserOrderSuccessListen::class],
|
|
'pay_success_order' => [\crmeb\listens\pay\OrderPaySuccessListen::class],
|
|
'pay_success_presell' => [\crmeb\listens\pay\PresellPaySuccessListen::class],
|
|
'pay_success_meal' => [\crmeb\listens\pay\MealSuccessListen::class],
|
|
// 订单创建成功
|
|
'order.create' => [
|
|
'app\listener\exchangeQuota\OrderCreateEvent'
|
|
],
|
|
// 订单支付成功事件触发
|
|
'order.paySuccess' => [
|
|
// 赠送酒卡额度
|
|
'app\listener\exchangeQuota\OrderPaySuccessEvent'
|
|
],
|
|
// 订单完成事件触发(进入待评价)
|
|
'order.take' => [
|
|
// 酒卡额度解冻
|
|
'app\listener\exchangeQuota\OrderTakeEvent'
|
|
],
|
|
// 订单核销成功事件触发
|
|
'order.verify' => [
|
|
// 酒卡额度解冻
|
|
'app\listener\exchangeQuota\OrderVerifyEvent'
|
|
],
|
|
// 订单退款事件
|
|
'refund.agree' => [
|
|
// 酒卡额度相关处理
|
|
'app\listener\exchangeQuota\OrderAgreeRefundEvent'
|
|
],
|
|
// 会员卡开通 支付成功
|
|
'user.vipPay' => [
|
|
// 酒卡额度相关处理
|
|
'app\listener\exchangeQuota\OrderVipPayEvent',
|
|
//开卡成功送优惠券
|
|
'app\listener\giveCoupon\CardOpeningEvent',
|
|
],
|
|
],
|
|
|
|
'subscribe' => [],
|
|
];
|