[ // 菜单配置 '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'], ], ];