[ [ 'title' => '电子券管理', 'route' => '/plugins2/ElectronCoupon/index', 'icon' => '', 'params' => [] ], [ 'title' => '领券中心', 'route' => '/plugins2/ElectronCoupon/center', 'icon' => '', 'params' => [] ], ], // ----------------------- 事件处理 ----------------------- // 'events' => [ [ 'event_name' => 'order_pay', 'listeners' => [ 'addons\ElectronCoupon\common\listeners\OrderPaidListener', ] ], [ 'event_name' => 'order_finish',//订单完成 'listeners' => [ 'addons\ElectronCoupon\common\listeners\OrderFinishListener', ] ], [ 'event_name' => EventNameEnum::GET_ADDONS_CONFIG, 'listeners' => [ \addons\ElectronCoupon\common\listeners\GetAdsCfgListener::class, ] ], ], // ----------------------- 公共调用 ----------------------- // 'invoker'=>[ ['invoker_id'=>\common\enums\GlobalFuncEnum::ORDER_DETAIL,'class'=>'addons\ElectronCoupon\common\models\ElectronCoupon','method'=>'isInstall'], ['invoker_id'=>\common\enums\GlobalFuncEnum::GOODS_DETAIL_EDIT,'class'=>'addons\ElectronCoupon\common\models\ElectronCoupon','method'=>'getGoodSetting'], ['invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_CLERK, 'class' => 'addons\ElectronCoupon\common\global_func\Clerk', 'method' => 'clerk'], ], ];