| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?php
- use addons\OperationCenter\common\listeners\order\OrderDeliveryListener;
- use addons\OperationCenter\common\listeners\order\OrderRefundFinishListener;
- use addons\OperationCenter\common\listeners\order\OrderPayRewardListener;
- use addons\OperationCenter\common\listeners\order\OrderFinishRewardListener;
- return [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- 'menu' => [
- 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
- 'icon' => 'fa fa-puzzle-piece',
- ],
- // 子模块配置
- 'modules' => [],
- ],
- // ----------------------- 快捷入口 ----------------------- //
- 'cover' => [],
- // ----------------------- 菜单配置 ----------------------- //
- 'menu' => [
- [
- 'title' => '运营中心管理',
- 'route' => 'center/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '审核列表',
- 'route' => 'review/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '等级列表',
- 'route' => 'level/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '分佣明细',
- 'route' => 'commission/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- [
- 'title' => '基础设置',
- 'route' => 'setting/index',
- 'icon' => '',
- 'params' => [],
- 'child' => [],
- ],
- ],
- // ----------------------- 权限配置 ----------------------- //
- 'authItem' => [
- [
- 'title' => '所有权限',
- 'name' => '',
- ],
- ],
- // ----------------------- APP链接 ----------------------- //
- 'links' => [
- [
- 'title' => '运营中心',
- 'route' => '/plugins3/OperationCenter/index',
- 'icon' => '',
- 'params' => []
- ],
- [
- 'title' => '运营中心申请',
- 'route' => '/plugins3/OperationCenter/apply',
- 'icon' => '',
- 'params' => []
- ],
- ],
- // ----------------------- 事件处理 ----------------------- //
- // ----------------------- 事件处理 ----------------------- //
- 'events' => [
- [
- // 订单发货
- 'event_name' => 'order_delivery',
- 'listeners' => [
- OrderDeliveryListener::class
- ]
- ],
- [
- // 订单支付
- 'event_name' => 'order_pay',
- 'listeners' => [
- OrderPayRewardListener::class
- ]
- ],
- [
- // 订单售后完成
- 'event_name' => 'order_refund_finish',
- 'listeners' => [
- OrderRefundFinishListener::class
- ]
- ],
- [
- // 订单完成
- 'event_name' => 'order_finish',
- 'listeners' => [
- OrderFinishRewardListener::class
- ]
- ]
- ],
- // ----------------------- 公共调用 ----------------------- //
- 'invoker'=>[
- ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_MODEL,'class'=>'addons\OperationCenter\common\models\CommissionItemSetting','method'=>'lists'],
- ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_MODEL_LEVEL,'class'=>'addons\OperationCenter\common\models\Level','method'=>'lists'],
- ['invoker_id'=>\common\enums\GlobalFuncEnum::PROMOTION,'class'=>'addons\OperationCenter\common\models\UserCenter','method'=>'getIncomeInfo'],
- ],
- ];
|