[ // 菜单配置 'menu' => [ 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单 'icon' => 'fa fa-puzzle-piece', ], // 子模块配置 'modules' => [ ], ], // ----------------------- 快捷入口 ----------------------- // 'cover' => [ ], // ----------------------- 菜单配置 ----------------------- // 'menu' => [ [ 'title' => '基础配置', 'route' => 'default/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], [ 'title' => '记账本', 'route' => 'account/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], [ 'title' => '交易列表', 'route' => 'order/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], [ 'title' => '手续费列表', 'route' => 'fee/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ], [ 'title' => '实名认证列表', 'route' => 'auth/index', 'icon' => '', 'params' => [ ], 'child' => [ ], ] ], // ----------------------- 权限配置 ----------------------- // 'authItem' =>[ [ 'title' => '支付宝合规', 'name' => '', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', 'child'=>[ [ 'title' => '基础设置', 'name' => 'default/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', 'child'=>[ ], ], [ 'title' => '记账本', 'name' => 'account/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', 'child'=>[ [ 'title' => '新增', 'name' => 'account/sign', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', ], [ 'title' => '查询签约', 'name' => 'account/query', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', ], [ 'title' => '查询账户', 'name' => 'account/query-book', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', ], [ 'title' => '默认', 'name' => 'account/set-default', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', ] ], ], [ 'title' => '交易列表', 'name' => 'order/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', 'child'=>[ [ 'title' => '汇款', 'name' => 'order/trans', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', ] ], ], [ 'title' => '手续费列表', 'name' => 'fee/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'AvoidTax', 'child'=>[ ], ], ] ] ], // ----------------------- APP链接 ----------------------- // 'links' => [ [ 'title' => '签约列表', 'route' => '/plugins3/AvoidTax/signList', 'icon' => '', 'params' => [] ] ], // ----------------------- 事件处理 ----------------------- // 'events' => [ [ 'event_name' => EventNameEnum::GET_TAX, 'listeners' => [ \addons\AvoidTax\common\listeners\GetTaxListener::class ] ], [ 'event_name' => 'USER_WITHDRAW_APPLY', 'listeners' => [ 'addons\AvoidTax\common\listeners\UserWithdrawListener', ] ], ], // ----------------------- 公共调用 ----------------------- // 'invoker' => [ // 提现流程 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_WITHDRAW_AVOIDTAX_PAY, 'class' => \addons\AvoidTax\common\service\OrderService::class, 'method' => 'batchWithdraw', ], // 后台获取提现渠道 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_WITHDRAW_WITHDRAWAL_CHANNEL, 'class' => \addons\AvoidTax\common\service\OrderService::class, 'method' => 'withdrawChannel' ], // 前端获取提现方式 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_GET_WITHDRAW_EXTENSION_WAY, 'class' => \addons\AvoidTax\common\service\OrderService::class, 'method' => 'getWithdrawWay' ], ], ];