[ // 菜单配置 'menu' => [ 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单 'icon' => 'fa fa-puzzle-piece', ], // 子模块配置 'modules' => [ ], ], // ----------------------- 快捷入口 ----------------------- // 'cover' => [ ], // ----------------------- 菜单配置 ----------------------- // 'menu' => [ /* [ 'title' => '代付申请', 'route' => 'default/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], */ [ 'title' => '代付配置', 'route' => 'setting/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], [ 'title' => '代付订单', 'route' => 'order/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], ], // ----------------------- 权限配置 ----------------------- // 'authItem' =>[ [ 'title' => '支付宝代付', 'name' => '', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'Avoidpay', 'child'=>[ /* [ 'title' => '代付申请', 'name' => 'default/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'Avoidpay', 'child'=>[ ], ], */ [ 'title' => '代付设置', 'name' => 'setting/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'Avoidpay', 'child'=>[ ], ], [ 'title' => '代付订单', 'name' => 'order/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'Avoidpay', 'child'=>[ [ 'title' => '打款', 'name' => 'order/to-pay', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'Avoidpay', ], [ 'title' => '查询', 'name' => 'order/query', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'Avoidpay', ] ], ], ] ] ], // ----------------------- APP链接 ----------------------- // 'links' => [ //[ //'title' => '', //'route' => '', //'icon' => '', //'params' => [], //], ], // ----------------------- 事件处理 ----------------------- // 'events' => [ [ 'event_name' => 'USER_WITHDRAW_APPLY', 'listeners' => [ 'addons\Alitopay\common\listeners\UserWithdrawListener', ] ], ], // ----------------------- 全局调用 ----------------------- // 'invoker' => [ [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_WITHDRAW_ALITOPAY_PAY, // 'class' => 'addons\Alitopay\common\services\OrderService', // 旧的 'class' => 'addons\Alitopay\common\services\AliOrderService', // 'method' => 'withdrawToPay', // 旧的 'method' => 'globalWithdrawToPay' ], [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_WITHDRAW_WITHDRAWAL_CHANNEL, // 'class' => 'addons\Alitopay\common\services\OrderService', // 旧的 'class' => 'addons\Alitopay\common\services\AliOrderService', 'method' => 'withdrawChannel' ], // 前端获取提现方式 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_GET_WITHDRAW_EXTENSION_WAY, // 'class' => 'addons\Alitopay\common\services\OrderService', // 旧的 'class' => 'addons\Alitopay\common\services\AliOrderService', 'method' => 'getWithdrawWay' ], ], ];