backend.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?php
  2. return [
  3. // ----------------------- 参数配置 ----------------------- //
  4. 'config' => [
  5. // 菜单配置
  6. 'menu' => [
  7. 'location' => 'default', // default:系统顶部菜单;addons:应用中心菜单
  8. 'icon' => 'fas fa-wind',
  9. 'sort' => 2000, // 自定义排序
  10. 'pattern' => ['b2c', 'b2b2c'], // 可见开发模式 b2c、b2b2c、saas 不填默认全部可见, 可设置为 blank 为全部不可见
  11. ],
  12. // 子模块配置
  13. 'modules' => [
  14. // 微信
  15. 'wechat' => [
  16. 'class' => 'common\components\BaseAddonModule',
  17. 'name' => 'Wechat',
  18. 'app_id' => 'merchant',
  19. ],
  20. // 微信小程序
  21. 'wechat-mini' => [
  22. 'class' => 'common\components\BaseAddonModule',
  23. 'name' => 'WechatMini',
  24. 'app_id' => 'merchant',
  25. ],
  26. ],
  27. ],
  28. // ----------------------- 菜单配置 ----------------------- //
  29. 'menu' => [
  30. [
  31. 'title' => '微信公众号',
  32. 'name' => 'wechat',
  33. 'icon' => 'fa fa-comments',
  34. 'child' => [
  35. [
  36. 'title' => '增强功能',
  37. 'name' => 'function',
  38. 'child' => [
  39. [
  40. 'title' => '自动回复',
  41. 'name' => 'wechat/rule/index',
  42. ],
  43. [
  44. 'title' => '自定义菜单',
  45. 'name' => 'wechat/menu/index',
  46. ],
  47. [
  48. 'title' => '二维码',
  49. 'name' => 'wechat/qrcode/index',
  50. ],
  51. ],
  52. ],
  53. [
  54. 'title' => '粉丝管理',
  55. 'name' => 'wechat/fans',
  56. 'child' => [
  57. [
  58. 'title' => '粉丝列表',
  59. 'name' => 'wechat/fans/index',
  60. ],
  61. [
  62. 'title' => '粉丝标签',
  63. 'name' => 'wechat/fans-tags/index',
  64. ],
  65. ],
  66. ],
  67. [
  68. 'title' => '素材库',
  69. 'name' => 'wechat/attachment/index',
  70. ],
  71. [
  72. 'title' => '历史消息',
  73. 'name' => 'wechat/message-history/index',
  74. ],
  75. [
  76. 'title' => '定时群发',
  77. 'name' => 'wechat/mass-record/index',
  78. ],
  79. [
  80. 'title' => '数据统计',
  81. 'name' => 'wechat/stat',
  82. 'child' => [
  83. [
  84. 'title' => '粉丝关注统计',
  85. 'name' => 'wechat/stat/fans-follow',
  86. ],
  87. [
  88. 'title' => '回复规则使用量',
  89. 'name' => 'wechat/stat/rule',
  90. ],
  91. [
  92. 'title' => '关键字命中规则',
  93. 'name' => 'wechat/stat/rule-keyword',
  94. ],
  95. ],
  96. ],
  97. [
  98. 'title' => '微信配置',
  99. 'name' => 'wechat/config/index',
  100. 'icon' => 'fa fa-cog',
  101. 'pattern' => ['b2c', 'b2b2c'], // 可见模式
  102. ],
  103. ]
  104. ],
  105. [
  106. 'title' => '微信小程序',
  107. 'name' => 'wechat-mini',
  108. 'icon' => 'fas fa-podcast',
  109. 'child' => [
  110. [
  111. 'title' => '直播间',
  112. 'name' => 'wechat-mini/live/live/index',
  113. ],
  114. [
  115. 'title' => '小程序配置',
  116. 'name' => 'wechat-mini/config/index',
  117. ],
  118. ]
  119. ],
  120. ],
  121. // ----------------------- 权限配置 ----------------------- //
  122. 'authItem' => [
  123. [
  124. 'title' => '所有权限',
  125. 'name' => '*',
  126. ],
  127. [
  128. 'title' => '微信公众号',
  129. 'name' => 'wechat/*',
  130. ],
  131. [
  132. 'title' => '微信小程序',
  133. 'name' => 'wechat-mini/*',
  134. ],
  135. ],
  136. ];
粤ICP备19079148号