| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <?php
- return [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- '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'
- ],
- ],
- ];
|