| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?php
- $common = file_exists(__DIR__ . '/common.php') ? require __DIR__ . '/common.php' : [];
- $backend = [
- // ----------------------- 菜单配置 ----------------------- //
- 'config' => [
- // 菜单配置
- 'menu' => [
- 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
- 'icon' => 'fa fa-puzzle-piece',
- ],
- // 子模块配置
- 'modules' => [
- ],
- ],
- // ----------------------- 快捷入口 ----------------------- //
- 'cover' => [
- ],
- // ----------------------- 菜单配置 ----------------------- //
- 'menu' => [
- [
- 'title' => '卡密管理',
- 'route' => 'cate/index',
- 'icon' => '',
- 'params' => [
-
- ],
- 'child' => [
- ],
- ],
- [
- 'title' => '领卡记录',
- 'route' => 'card-secret-use/index',
- 'icon' => '',
- 'params' => [
-
- ],
- 'child' => [
- ],
- ],
- ],
- // ----------------------- 权限配置 ----------------------- //
- 'authItem' => [
- [
- 'title' => '卡密插件',
- 'name' => '',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'CardSecret',
- 'child'=>[
- [
- 'title' => '卡密管理',
- 'name' => 'cate/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'CardSecret',
- 'child'=>[
- [
- 'title' => '添加编辑分类',
- 'name' => 'cate/edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'CardSecret',
- ],
- [
- 'title' => '设置卡密',
- 'name' => 'card-secret/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'CardSecret',
- ],
- [
- 'title' => '删除',
- 'name' => 'cate/edit',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'CardSecret',
- ],
- ],
- ],
- [
- 'title' => '领卡记录',
- 'name' => 'card-secret-use/index',
- 'app_id' => 'backend',
- 'is_addon' => 1,
- 'addons_name' => 'CardSecret',
- 'child'=>[
- ],
- ],
- ]
- ]
- ],
- ];
- return array_merge($common,$backend);
|