84 lines
4.5 KiB
PHP
Executable File
84 lines
4.5 KiB
PHP
Executable File
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +----------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +----------------------------------------------------------------------
|
||
|
||
// 事件定义文件
|
||
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\ExcelFileDelListen::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\AutoCheckCreditBuyListen::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_order_settle' => [\crmeb\listens\pay\OrderSettlePaySuccessListen::class],
|
||
'pay_success_micro_pay' => [\crmeb\listens\pay\OrderMicroPaySuccessListen::class],
|
||
'pay_success_presell' => [\crmeb\listens\pay\PresellPaySuccessListen::class],
|
||
'pay_success_meal' => [\crmeb\listens\pay\MealSuccessListen::class],
|
||
// 'community_address'=>[\app\listener\CommunityAddress::class],
|
||
'order.paySuccessOrder'=>[\app\listener\paySuccessOrder::class],
|
||
'order.paySuccessOrderOther'=>[\app\listener\paySuccessOrderOther::class],
|
||
'order.paySuccess'=>[\app\listener\paySuccess::class],
|
||
'pay_success_margin'=>[\app\listener\paySuccessMargin::class],
|
||
'order.sendGoodsCode'=>[\app\listener\SendGoodsCode::class],
|
||
'product.create'=>[\app\listener\ProductCreate::class],
|
||
'product.delivery'=>[\app\listener\DeliveryGoods::class],
|
||
'product.sell'=>[\app\listener\CloudProduct::class], //商品上下架
|
||
'refund.after'=>[\app\listener\AfterRefund::class],
|
||
'refund.deliver'=>[\app\listener\DeliverRefund::class],
|
||
'order.create'=>[\app\listener\OrderCreate::class],
|
||
'order.take'=>[\app\listener\OrderTake::class],
|
||
],
|
||
|
||
'subscribe' => [],
|
||
];
|