zx/app/event.php

75 lines
3.9 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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\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,
\crmeb\listens\SyncQueueStatusListen::class,
\crmeb\listens\AutoUpDownShelvesListen::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],
//数据大屏
'data.screen.send' =>[\crmeb\listens\DataScreenListen::class],
//操作日志
'create_operate_log' => [\crmeb\listens\CreateOperateLogListen::class], // 操作日志事件
'mini_order_shipping' => [\crmeb\listens\MiniOrderShippingListen::class], // 小程序发货管理事件
],
'subscribe' => [],
];