<?php
 use ModStart\Module\ModuleManager; return [ 'menu' => [ [ 'title' => '用户中心', 'icon' => 'user', 'sort' => 4, 'children' => [ [ 'title' => '用户管理', 'rule' => '\Module\Member\Admin\Controller\MemberController@index', ], ModuleManager::getModuleConfigBoolean('Member', 'vipEnable') ? [ 'title' => '会员VIP订单', 'rule' => '\Module\Member\Admin\Controller\MemberVipOrderController@index', ] : null ] ], [ 'title' => '功能设置', 'icon' => 'tools', 'sort' => 7, 'children' => [ [ 'title' => '用户设置', 'children' => [ [ 'title' => '功能设置', 'rule' => '\Module\Member\Admin\Controller\ConfigController@setting', ], [ 'title' => '微信手机授权登录', 'rule' => '\Module\Member\Admin\Controller\ConfigController@oauthWechatMobile', ], [ 'title' => '微信PC扫码登录', 'rule' => '\Module\Member\Admin\Controller\ConfigController@oauthWechat', ], ModuleManager::getModuleConfigBoolean('Member', 'oauthWechatMiniProgram') ? [ 'title' => '微信小程序登录', 'rule' => '\Module\Member\Admin\Controller\ConfigController@oauthWechatMiniProgram', ] : null, [ 'title' => '微博授权登录', 'rule' => '\Module\Member\Admin\Controller\ConfigController@oauthWeibo', ], [ 'title' => 'QQ授权登录', 'rule' => '\Module\Member\Admin\Controller\ConfigController@oauthQq', ], ] ], ModuleManager::getModuleConfigBoolean('Member', 'vipEnable') ? [ 'title' => 'VIP设置', 'children' => [ [ 'title' => '功能设置', 'rule' => '\Module\Member\Admin\Controller\ConfigController@vip', ], [ 'title' => '会员等级', 'rule' => '\Module\Member\Admin\Controller\MemberVipSetController@index', ], ], ] : null, ] ], ] ];