[ // 菜单配置 'menu' => [ 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单 'icon' => 'fa fa-puzzle-piece', ], // 子模块配置 'modules' => [ ], ], // ----------------------- 快捷入口 ----------------------- // 'cover' => [ ], // ----------------------- 菜单配置 ----------------------- // 'menu' => [ [ 'title' => '设置', 'route' => 'setting/index', 'icon' => '', 'params' => [], 'child' => [], ], [ 'title' => '支付记录', 'route' => 'order/index', 'icon' => '', 'params' => [], 'child' => [], ], [ 'title' => '代付记录', 'route' => 'agent/index', 'icon' => '', 'params' => [], 'child' => [], ], [ 'title' => '退款记录', 'route' => 'refund/index', 'icon' => '', 'params' => [], 'child' => [], ], ], // ----------------------- 权限配置 ----------------------- // 'authItem' => [ [ 'title' => '银典支付', 'name' => '', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'YunfastPay', 'child' => [ [ 'title' => '设置', 'name' => 'setting/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'YunfastPay', 'child' => [ ], ], [ 'title' => '支付列表', 'name' => 'order/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'YunfastPay', 'child' => [ ], ], [ 'title' => '代付记录', 'name' => 'agent/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'YunfastPay', 'child' => [ ], ], [ 'title' => '退款记录', 'name' => 'refund/index', 'app_id' => 'backend', 'is_addon' => 1, 'addons_name' => 'YunfastPay', 'child' => [ ], ], ], ], ], // ----------------------- APP链接 ----------------------- // 'links' => [ // [ // 'title' => '', // 'route' => '', // 'icon' => '', // 'params' => [], // ], ], // ----------------------- 事件处理 ----------------------- // 'events' => [ [ // 门店订单完成事件 'event_name' => 'cashier_order_settled_Store', 'listeners' => [ \addons\YunfastPay\common\listeners\CashierOrderFinishListener::class ] ], ], // ----------------------- 全局调用 ----------------------- // 'invoker' => [ // 获取提现方式 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_GET_WITHDRAW_EXTENSION_WAY, 'class' => addons\YunfastPay\common\globals\YunfastPay::class, 'method' => 'getWithdrawWay' ], // 代付 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_WITHDRAW_YUNFAST_PAY, 'class' => addons\YunfastPay\common\globals\YunfastPay::class, 'method' => 'execAgent' ], // 获取支付方式 [ 'invoker_id' => \common\enums\GlobalFuncEnum::PAYMENT_LIST, 'class' => addons\YunfastPay\common\globals\YunfastPay::class, 'method' => 'getPayment' ], // 获取支付方式 [ 'invoker_id' => \common\enums\GlobalFuncEnum::PAYMENT_TYPE, 'class' => addons\YunfastPay\common\globals\YunfastPay::class, 'method' => 'getPaymentType' ], // 支付 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_PAYMENT, 'class' => addons\YunfastPay\common\globals\YunfastPay::class, 'method' => 'toPay' ], // 退款 [ 'invoker_id' => \common\enums\GlobalFuncEnum::INVOKE_ORDER_REFUND, 'class' => addons\YunfastPay\common\globals\YunfastPay::class, 'method' => 'refund' ], ], ];