frames.inc.php 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. defined('IN_IA') or exit('Access Denied');
  7. global $_W;
  8. $we7_system_menu = array();
  9. $we7_system_menu['welcome'] = array(
  10. 'title' => '首页',
  11. 'icon' => 'wi wi-home',
  12. 'url' => url('home/welcome/system', array('page' => 'home')),
  13. 'section' => array(),
  14. );
  15. $we7_system_menu['platform'] = array(
  16. 'title' => '平台入口',
  17. 'icon' => 'wi wi-platform',
  18. 'dimension' => 2,
  19. 'url' => url('account/display/platform'),
  20. 'section' => array(),
  21. );
  22. $we7_system_menu['module'] = array(
  23. 'title' => '应用入口',
  24. 'icon' => 'wi wi-apply',
  25. 'dimension' => 2,
  26. 'url' => url('module/display/switch_last_module'),
  27. 'section' => array(),
  28. );
  29. $we7_system_menu['account_manage'] = array(
  30. 'title' => '平台管理',
  31. 'icon' => 'wi wi-platform-manage',
  32. 'dimension' => 2,
  33. 'url' => url('account/manage'),
  34. 'section' => array(
  35. 'account_manage' => array(
  36. 'title' => '平台管理',
  37. 'menu' => array(
  38. 'account_manage_display' => array(
  39. 'title' => '平台列表',
  40. 'url' => url('account/manage'),
  41. 'permission_name' => 'account_manage_display',
  42. 'sub_permission' => array(
  43. array(
  44. 'title' => '帐号停用',
  45. 'permission_name' => 'account_manage_stop',
  46. ),
  47. ),
  48. ),
  49. 'account_manage_recycle' => array(
  50. 'title' => '回收站',
  51. 'url' => url('account/recycle'),
  52. 'permission_name' => 'account_manage_recycle',
  53. 'sub_permission' => array(
  54. array(
  55. 'title' => '帐号删除',
  56. 'permission_name' => 'account_manage_delete',
  57. ),
  58. array(
  59. 'title' => '帐号恢复',
  60. 'permission_name' => 'account_manage_recover',
  61. ),
  62. ),
  63. ),
  64. 'account_manage_system_platform' => array(
  65. 'title' => ' 微信开放平台',
  66. 'url' => url('system/platform'),
  67. 'permission_name' => 'account_manage_system_platform',
  68. ),
  69. 'account_manage_expired_message' => array(
  70. 'title' => ' 自定义到期提示',
  71. 'url' => url('account/expired-message'),
  72. 'permission_name' => 'account_manage_expired_message',
  73. ),
  74. ),
  75. ),
  76. ),
  77. );
  78. $we7_system_menu['module_manage'] = array(
  79. 'title' => '应用管理',
  80. 'icon' => 'wi wi-module-manage',
  81. 'dimension' => 2,
  82. 'url' => url('module/manage-system/installed'),
  83. 'section' => array(
  84. 'module_manage' => array(
  85. 'title' => '应用管理',
  86. 'menu' => array(
  87. 'module_manage_installed' => array(
  88. 'title' => '已安装列表',
  89. 'url' => url('module/manage-system/installed'),
  90. 'permission_name' => 'module_manage_installed',
  91. 'sub_permission' => array(),
  92. ),
  93. 'module_manage_stoped' => array(
  94. 'title' => '已停用列表',
  95. 'url' => url('module/manage-system/recycle', array('type' => MODULE_RECYCLE_INSTALL_DISABLED)),
  96. 'permission_name' => 'module_manage_stoped',
  97. 'sub_permission' => array(),
  98. ),
  99. 'module_manage_not_installed' => array(
  100. 'title' => '未安装列表',
  101. 'url' => url('module/manage-system/not_installed'),
  102. 'permission_name' => 'module_manage_not_installed',
  103. 'sub_permission' => array(),
  104. ),
  105. 'module_manage_recycle' => array(
  106. 'title' => '回收站',
  107. 'url' => url('module/manage-system/recycle', array('type' => MODULE_RECYCLE_UNINSTALL_IGNORE)),
  108. 'permission_name' => 'module_manage_recycle',
  109. 'sub_permission' => array(),
  110. ),
  111. 'module_manage_subscribe' => array(
  112. 'title' => '订阅管理',
  113. 'url' => url('module/manage-system/subscribe'),
  114. 'permission_name' => 'module_manage_subscribe',
  115. 'sub_permission' => array(),
  116. ),
  117. ),
  118. ),
  119. ),
  120. );
  121. $we7_system_menu['user_manage'] = array(
  122. 'title' => '用户管理',
  123. 'icon' => 'wi wi-user-group',
  124. 'dimension' => 2,
  125. 'url' => url('user/display'),
  126. 'section' => array(
  127. 'user_manage' => array(
  128. 'title' => '用户管理',
  129. 'menu' => array(
  130. 'user_manage_display' => array(
  131. 'title' => '普通用户',
  132. 'url' => url('user/display'),
  133. 'permission_name' => 'user_manage_display',
  134. 'sub_permission' => array(),
  135. ),
  136. 'user_manage_founder' => array(
  137. 'title' => '副站长',
  138. 'url' => url('founder/display'),
  139. 'permission_name' => 'user_manage_founder',
  140. 'sub_permission' => array(),
  141. 'founder' => true,
  142. ),
  143. 'user_manage_clerk' => array(
  144. 'title' => '店员管理',
  145. 'url' => url('user/display', array('type' => 'clerk')),
  146. 'permission_name' => 'user_manage_clerk',
  147. 'sub_permission' => array(),
  148. ),
  149. 'user_manage_check' => array(
  150. 'title' => '审核用户',
  151. 'url' => url('user/display', array('type' => 'check')),
  152. 'permission_name' => 'user_manage_check',
  153. 'sub_permission' => array(),
  154. ),
  155. 'user_manage_recycle' => array(
  156. 'title' => '回收站',
  157. 'url' => url('user/display', array('type' => 'recycle')),
  158. 'permission_name' => 'user_manage_recycle',
  159. 'sub_permission' => array(),
  160. ),
  161. 'user_manage_fields' => array(
  162. 'title' => '用户属性设置',
  163. 'url' => url('user/fields/display'),
  164. 'permission_name' => 'user_manage_fields',
  165. 'sub_permission' => array(),
  166. 'founder' => true,
  167. ),
  168. 'user_manage_expire' => array(
  169. 'title' => '用户过期设置',
  170. 'url' => url('user/expire'),
  171. 'permission_name' => 'user_manage_expire',
  172. 'sub_permission' => array(),
  173. 'founder' => true,
  174. ),
  175. ),
  176. ),
  177. ),
  178. );
  179. $we7_system_menu['permission'] = array(
  180. 'title' => '权限组',
  181. 'icon' => 'wi wi-userjurisdiction',
  182. 'dimension' => 2,
  183. 'url' => url('module/group'),
  184. 'section' => array(
  185. 'permission' => array(
  186. 'title' => '权限组',
  187. 'menu' => array(
  188. 'permission_module_group' => array(
  189. 'title' => '应用权限组',
  190. 'url' => url('module/group'),
  191. 'permission_name' => 'permission_module_group',
  192. 'sub_permission' => array(),
  193. ),
  194. 'permission_create_account_group' => array(
  195. 'title' => '账号权限组',
  196. 'url' => url('user/create-group'),
  197. 'permission_name' => 'permission_create_account_group',
  198. 'sub_permission' => array(),
  199. ),
  200. 'permission_user_group' => array(
  201. 'title' => '用户权限组合',
  202. 'url' => url('user/group'),
  203. 'permission_name' => 'permission_user_group',
  204. 'sub_permission' => array(),
  205. ),
  206. 'permission_founder_group' => array(
  207. 'title' => '副站长权限组合',
  208. 'url' => url('founder/group'),
  209. 'permission_name' => 'permission_founder_group',
  210. 'sub_permission' => array(),
  211. 'founder' => true,
  212. ),
  213. ),
  214. ),
  215. ),
  216. );
  217. $we7_system_menu['system'] = array(
  218. 'title' => '系统功能',
  219. 'icon' => 'wi wi-setting',
  220. 'dimension' => 3,
  221. 'url' => user_is_founder($_W['uid'], true) ? url('article/notice') : url('system/updatecache'),
  222. 'section' => array(
  223. 'article' => array(
  224. 'title' => '站内公告',
  225. 'menu' => array(
  226. 'system_article' => array(
  227. 'title' => '站内公告',
  228. 'url' => url('article/notice'),
  229. 'icon' => 'wi wi-article',
  230. 'permission_name' => 'system_article',
  231. 'sub_permission' => array(
  232. array(
  233. 'title' => '公告列表',
  234. 'permission_name' => 'system_article_notice_list',
  235. ),
  236. array(
  237. 'title' => '公告分类',
  238. 'permission_name' => 'system_article_notice_category',
  239. ),
  240. ),
  241. ),
  242. ),
  243. 'founder' => true
  244. ),
  245. 'system_template' => array(
  246. 'title' => '模板',
  247. 'menu' => array(
  248. 'system_template' => array(
  249. 'title' => '微官网模板',
  250. 'url' => url('system/template'),
  251. 'icon' => 'wi wi-wx-template',
  252. 'permission_name' => 'system_template',
  253. ),
  254. ),
  255. 'founder' => true
  256. ),
  257. /* 'sms' => array(
  258. 'title' => '短信',
  259. 'menu' => array(
  260. 'system_cloud_sms' => array(
  261. 'title' => '短信管理',
  262. 'url' => url('cloud/sms'),
  263. 'icon' => 'wi wi-sms',
  264. 'permission_name' => 'system_cloud_sms',
  265. ),
  266. 'system_cloud_sms_sign' => array(
  267. 'title' => '短信签名',
  268. 'url' => url('cloud/sms-sign'),
  269. 'icon' => 'wi wi-sms-sign',
  270. 'permission_name' => 'system_cloud_sms_sign',
  271. 'is_display' => false,
  272. ),
  273. 'system_sms_mass' => array(
  274. 'title' => '短信群发',
  275. 'url' => url('cloud/sms-mass'),
  276. 'icon' => 'wi wi-sms-sign',
  277. 'permission_name' => 'system_cloud_sms_mass',
  278. 'is_display' => false,
  279. )
  280. ),
  281. 'founder' => true
  282. ), */
  283. 'system_welcome' => array(
  284. 'title' => '系统首页',
  285. 'menu' => array(
  286. 'system_welcome' => array(
  287. 'title' => '系统首页应用',
  288. 'url' => url('module/manage-system', array('support' => MODULE_SUPPORT_SYSTEMWELCOME_NAME)),
  289. 'icon' => 'wi wi-system-welcome',
  290. 'permission_name' => 'system_welcome',
  291. ),
  292. 'system_news' => array(
  293. 'title' => '系统新闻',
  294. 'url' => url('article/news'),
  295. 'icon' => 'wi wi-article',
  296. 'permission_name' => 'system_news',
  297. 'sub_permission' => array(
  298. array(
  299. 'title' => '新闻列表 ',
  300. 'permission_name' => 'system_article_news_list',
  301. ),
  302. array(
  303. 'title' => '新闻分类 ',
  304. 'permission_name' => 'system_article_news_category',
  305. ),
  306. ),
  307. ),
  308. ),
  309. 'founder' => true
  310. ),
  311. 'system_statistics' => array(
  312. 'title' => '统计',
  313. 'menu' => array(
  314. 'system_account_analysis' => array(
  315. 'title' => '访问统计',
  316. 'url' => url('statistics/account'),
  317. 'icon' => 'wi wi-statistical',
  318. 'permission_name' => 'system_account_analysis',
  319. ),
  320. ),
  321. 'founder' => true
  322. ),
  323. 'cache' => array(
  324. 'title' => '缓存',
  325. 'menu' => array(
  326. 'system_setting_updatecache' => array(
  327. 'title' => '更新缓存',
  328. 'url' => url('system/updatecache'),
  329. 'icon' => 'wi wi-update',
  330. 'permission_name' => 'system_setting_updatecache',
  331. ),
  332. ),
  333. ),
  334. ),
  335. );
  336. $we7_system_menu['site'] = array(
  337. 'title' => '站点设置',
  338. 'icon' => 'wi wi-system-site',
  339. 'dimension' => 3,
  340. 'url' => url('system/site'),
  341. 'section' => array(
  342. /*'cloud' => array(
  343. 'title' => '云服务',
  344. 'menu' => array(
  345. 'system_profile' => array(
  346. 'title' => '系统升级',
  347. 'url' => url('cloud/upgrade'),
  348. 'icon' => 'wi wi-cache',
  349. 'permission_name' => 'system_cloud_upgrade',
  350. ),
  351. 'system_cloud_register' => array(
  352. 'title' => '注册站点',
  353. 'url' => url('cloud/profile'),
  354. 'icon' => 'wi wi-registersite',
  355. 'permission_name' => 'system_cloud_register',
  356. ),
  357. 'system_cloud_diagnose' => array(
  358. 'title' => '云服务诊断',
  359. 'url' => url('cloud/diagnose'),
  360. 'icon' => 'wi wi-diagnose',
  361. 'permission_name' => 'system_cloud_diagnose',
  362. ),
  363. )
  364. ),*/
  365. 'setting' => array(
  366. 'title' => '设置',
  367. 'menu' => array(
  368. 'system_setting_site' => array(
  369. 'title' => '站点设置',
  370. 'url' => url('system/site'),
  371. 'icon' => 'wi wi-site-setting',
  372. 'permission_name' => 'system_setting_site',
  373. ),
  374. 'system_setting_menu' => array(
  375. 'title' => '菜单设置',
  376. 'url' => url('system/menu'),
  377. 'icon' => 'wi wi-menu-setting',
  378. 'permission_name' => 'system_setting_menu',
  379. ),
  380. 'system_setting_attachment' => array(
  381. 'title' => '附件设置',
  382. 'url' => url('system/attachment'),
  383. 'icon' => 'wi wi-attachment',
  384. 'permission_name' => 'system_setting_attachment',
  385. ),
  386. 'system_setting_systeminfo' => array(
  387. 'title' => '系统信息',
  388. 'url' => url('system/systeminfo'),
  389. 'icon' => 'wi wi-system-info',
  390. 'permission_name' => 'system_setting_systeminfo',
  391. ),
  392. 'system_setting_logs' => array(
  393. 'title' => '查看日志',
  394. 'url' => url('system/logs'),
  395. 'icon' => 'wi wi-log',
  396. 'permission_name' => 'system_setting_logs',
  397. ),
  398. 'system_setting_ipwhitelist' => array(
  399. 'title' => 'IP白名单',
  400. 'url' => url('system/ipwhitelist'),
  401. 'icon' => 'wi wi-ip',
  402. 'permission_name' => 'system_setting_ipwhitelist',
  403. ),
  404. 'system_setting_sensitiveword' => array(
  405. 'title' => '过滤敏感词',
  406. 'url' => url('system/sensitiveword'),
  407. 'icon' => 'wi wi-sensitive',
  408. 'permission_name' => 'system_setting_sensitiveword',
  409. ),
  410. 'system_setting_thirdlogin' => array(
  411. 'title' => '用户登录/注册设置',
  412. 'url' => url('user/registerset'),
  413. 'icon' => 'wi wi-user',
  414. 'permission_name' => 'system_setting_thirdlogin',
  415. ),
  416. 'system_setting_oauth' => array(
  417. 'title' => '全局借用权限',
  418. 'url' => url('system/oauth'),
  419. 'icon' => 'wi wi-oauth',
  420. 'permission_name' => 'system_setting_oauth',
  421. ),
  422. )
  423. ),
  424. 'utility' => array(
  425. 'title' => '常用工具',
  426. 'menu' => array(
  427. 'system_utility_filecheck' => array(
  428. 'title' => '系统文件校验',
  429. 'url' => url('system/filecheck'),
  430. 'icon' => 'wi wi-file',
  431. 'permission_name' => 'system_utility_filecheck',
  432. ),
  433. 'system_utility_optimize' => array(
  434. 'title' => '性能优化',
  435. 'url' => url('system/optimize'),
  436. 'icon' => 'wi wi-optimize',
  437. 'permission_name' => 'system_utility_optimize',
  438. ),
  439. 'system_utility_database' => array(
  440. 'title' => '数据库',
  441. 'url' => url('system/database'),
  442. 'icon' => 'wi wi-sql',
  443. 'permission_name' => 'system_utility_database',
  444. ),
  445. 'system_utility_scan' => array(
  446. 'title' => '木马查杀',
  447. 'url' => url('system/scan'),
  448. 'icon' => 'wi wi-safety',
  449. 'permission_name' => 'system_utility_scan',
  450. ),
  451. 'system_utility_bom' => array(
  452. 'title' => '检测文件BOM',
  453. 'url' => url('system/bom'),
  454. 'icon' => 'wi wi-bom',
  455. 'permission_name' => 'system_utility_bom',
  456. ),
  457. 'system_utility_check' => array(
  458. 'title' => '系统常规检测',
  459. 'url' => url('system/check'),
  460. 'icon' => 'wi wi-bom',
  461. 'permission_name' => 'system_utility_check',
  462. ),
  463. )
  464. ),
  465. 'backjob'=> array(
  466. 'title' => '后台任务',
  467. 'menu'=> array(
  468. 'system_job'=> array(
  469. 'title' => '后台任务',
  470. 'url' => url('system/job/display'),
  471. 'icon' => 'wi wi-job',
  472. 'permission_name' => 'system_job',
  473. )
  474. )
  475. )
  476. ),
  477. 'founder' => true,
  478. );
  479. $we7_system_menu['myself'] = array(
  480. 'title' => '我的账户',
  481. 'icon' => 'wi wi-bell',
  482. 'dimension' => 2,
  483. 'url' => url('user/profile'),
  484. 'section' => array(),
  485. );
  486. $we7_system_menu['message'] = array(
  487. 'title' => '消息管理',
  488. 'icon' => 'wi wi-bell',
  489. 'dimension' => 2,
  490. 'url' => url('message/notice'),
  491. 'section' => array(
  492. 'message' => array(
  493. 'title' => '消息管理',
  494. 'menu' => array(
  495. 'message_notice' => array(
  496. 'title' => '消息提醒',
  497. 'url' => url('message/notice'),
  498. 'permission_name' => 'message_notice',
  499. ),
  500. 'message_setting' => array(
  501. 'title' => '消息设置',
  502. 'url' => url('message/notice/setting'),
  503. 'permission_name' => 'message_setting',
  504. ),
  505. 'message_wechat_setting' => array(
  506. 'title' => '微信提醒设置',
  507. 'url' => url('message/notice/wechat_setting'),
  508. 'permission_name' => 'message_wechat_setting',
  509. 'founder' => true,
  510. ),
  511. ),
  512. ),
  513. ),
  514. );
  515. $we7_system_menu['account'] = array(
  516. 'title' => '公众号',
  517. 'icon' => 'wi wi-white-collar',
  518. 'dimension' => 3,
  519. 'url' => url('home/welcome/platform'),
  520. 'section' => array(
  521. 'platform' => array(
  522. 'title' => '增强功能',
  523. 'menu' => array(
  524. 'platform_reply' => array(
  525. 'title' => '自动回复',
  526. 'url' => url('platform/reply'),
  527. 'icon' => 'wi wi-reply',
  528. 'permission_name' => 'platform_reply',
  529. 'is_display' => array(
  530. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  531. ACCOUNT_TYPE_OFFCIAL_AUTH,
  532. ACCOUNT_TYPE_XZAPP_NORMAL,
  533. ACCOUNT_TYPE_XZAPP_AUTH,
  534. ),
  535. 'sub_permission' => array(
  536. 'platform_reply_keyword' => array(
  537. 'title' => '关键字自动回复',
  538. 'url' => url('platform/reply', array('m' => 'keyword')),
  539. 'permission_name' => 'platform_reply_keyword',
  540. 'active' => 'keyword',
  541. ),
  542. 'platform_reply_special' => array(
  543. 'title' => '非关键字自动回复',
  544. 'url' => url('platform/reply', array('m' => 'special')),
  545. 'permission_name' => 'platform_reply_special',
  546. 'active' => 'special',
  547. ),
  548. 'platform_reply_welcome' => array(
  549. 'title' => '首次访问自动回复',
  550. 'url' => url('platform/reply', array('m' => 'welcome')),
  551. 'permission_name' => 'platform_reply_welcome',
  552. 'active' => 'welcome',
  553. ),
  554. 'platform_reply_default' => array(
  555. 'title' => '默认回复',
  556. 'url' => url('platform/reply', array('m' => 'default')),
  557. 'permission_name' => 'platform_reply_default',
  558. 'active' => 'default',
  559. ),
  560. 'platform_reply_service' => array(
  561. 'title' => '常用服务',
  562. 'url' => url('platform/reply', array('m' => 'service')),
  563. 'permission_name' => 'platform_reply_service',
  564. 'active' => 'service',
  565. ),
  566. 'platform_reply_userapi' => array(
  567. 'title' => '自定义接口回复',
  568. 'url' => url('platform/reply', array('m' => 'userapi')),
  569. 'permission_name' => 'platform_reply_userapi',
  570. 'active' => 'userapi',
  571. 'is_display' => array(
  572. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  573. ACCOUNT_TYPE_OFFCIAL_AUTH,
  574. ),
  575. ),
  576. 'platform_reply_setting' => array(
  577. 'title' => '回复设置',
  578. 'url' => url('profile/reply-setting'),
  579. 'permission_name' => 'platform_reply_setting',
  580. 'is_display' => array(
  581. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  582. ACCOUNT_TYPE_OFFCIAL_AUTH,
  583. ),
  584. ),
  585. ),
  586. ),
  587. 'platform_menu' => array(
  588. 'title' => '自定义菜单',
  589. 'url' => url('platform/menu/post'),
  590. 'icon' => 'wi wi-custommenu',
  591. 'permission_name' => 'platform_menu',
  592. 'is_display' => array(
  593. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  594. ACCOUNT_TYPE_OFFCIAL_AUTH,
  595. ACCOUNT_TYPE_XZAPP_NORMAL,
  596. ACCOUNT_TYPE_XZAPP_AUTH,
  597. ),
  598. 'sub_permission' => array(
  599. 'platform_menu_default' => array(
  600. 'title' => '默认菜单',
  601. 'url' => url('platform/menu/post'),
  602. 'permission_name' => 'platform_menu_default',
  603. 'active' => 'post',
  604. ),
  605. 'platform_menu_conditional' => array(
  606. 'title' => '个性化菜单',
  607. 'url' => url('platform/menu/display', array('type' => MENU_CONDITIONAL)),
  608. 'permission_name' => 'platform_menu_conditional',
  609. 'active' => 'display',
  610. 'is_display' => array(
  611. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  612. ACCOUNT_TYPE_OFFCIAL_AUTH,
  613. ),
  614. ),
  615. ),
  616. ),
  617. 'platform_qr' => array(
  618. 'title' => '二维码/转化链接',
  619. 'url' => url('platform/qr'),
  620. 'icon' => 'wi wi-qrcode',
  621. 'permission_name' => 'platform_qr',
  622. 'is_display' => array(
  623. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  624. ACCOUNT_TYPE_OFFCIAL_AUTH,
  625. ),
  626. 'sub_permission' => array(
  627. 'platform_qr_qr' => array(
  628. 'title' => '二维码',
  629. 'url' => url('platform/qr/list'),
  630. 'permission_name' => 'platform_qr_qr',
  631. 'active' => 'list',
  632. ),
  633. 'platform_qr_statistics' => array(
  634. 'title' => '二维码扫描统计',
  635. 'url' => url('platform/qr/display'),
  636. 'permission_name' => 'platform_qr_statistics',
  637. 'active' => 'display',
  638. ),
  639. ),
  640. ),
  641. 'platform_masstask' => array(
  642. 'title' => '定时群发',
  643. 'url' => url('platform/mass'),
  644. 'icon' => 'wi wi-crontab',
  645. 'permission_name' => 'platform_masstask',
  646. 'is_display' => array(
  647. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  648. ACCOUNT_TYPE_OFFCIAL_AUTH,
  649. ACCOUNT_TYPE_XZAPP_NORMAL,
  650. ACCOUNT_TYPE_XZAPP_AUTH,
  651. ),
  652. 'sub_permission' => array(
  653. 'platform_masstask_post' => array(
  654. 'title' => '定时群发',
  655. 'url' => url('platform/mass/post'),
  656. 'permission_name' => 'platform_masstask_post',
  657. 'active' => 'post',
  658. ),
  659. 'platform_masstask_send' => array(
  660. 'title' => '群发记录',
  661. 'url' => url('platform/mass/send'),
  662. 'permission_name' => 'platform_masstask_send',
  663. 'active' => 'send',
  664. ),
  665. ),
  666. ),
  667. 'platform_material' => array(
  668. 'title' => '素材/编辑器',
  669. 'url' => url('platform/material'),
  670. 'icon' => 'wi wi-redact',
  671. 'permission_name' => 'platform_material',
  672. 'is_display' => array(
  673. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  674. ACCOUNT_TYPE_OFFCIAL_AUTH,
  675. ACCOUNT_TYPE_XZAPP_NORMAL,
  676. ACCOUNT_TYPE_XZAPP_AUTH,
  677. ),
  678. 'sub_permission' => array(
  679. 'platform_material_news' => array(
  680. 'title' => '图文',
  681. 'url' => url('platform/material', array('type' => 'news')),
  682. 'permission_name' => 'platform_material_news',
  683. 'active' => 'news',
  684. ),
  685. 'platform_material_image' => array(
  686. 'title' => '图片',
  687. 'url' => url('platform/material', array('type' => 'image')),
  688. 'permission_name' => 'platform_material_image',
  689. 'active' => 'image',
  690. ),
  691. 'platform_material_voice' => array(
  692. 'title' => '语音',
  693. 'url' => url('platform/material', array('type' => 'voice')),
  694. 'permission_name' => 'platform_material_voice',
  695. 'active' => 'voice',
  696. ),
  697. 'platform_material_video' => array(
  698. 'title' => '视频',
  699. 'url' => url('platform/material', array('type' => 'video')),
  700. 'permission_name' => 'platform_material_video',
  701. 'active' => 'video',
  702. 'is_display' => array(
  703. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  704. ACCOUNT_TYPE_OFFCIAL_AUTH,
  705. ),
  706. ),
  707. 'platform_material_delete' => array(
  708. 'title' => '删除',
  709. 'permission_name' => 'platform_material_delete',
  710. 'is_display' => false,
  711. ),
  712. ),
  713. ),
  714. 'platform_site' => array(
  715. 'title' => '微官网-文章',
  716. 'url' => url('site/multi'),
  717. 'icon' => 'wi wi-home',
  718. 'permission_name' => 'platform_site',
  719. 'is_display' => array(
  720. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  721. ACCOUNT_TYPE_OFFCIAL_AUTH,
  722. ),
  723. 'sub_permission' => array(
  724. 'platform_site_multi' => array(
  725. 'title' => '微官网',
  726. 'url' => url('site/multi/display'),
  727. 'permission_name' => 'platform_site_multi',
  728. 'active' => 'multi',
  729. ),
  730. 'platform_site_style' => array(
  731. 'title' => '微官网模板',
  732. 'url' => url('site/style/template'),
  733. 'permission_name' => 'platform_site_style',
  734. 'active' => 'style',
  735. ),
  736. 'platform_site_article' => array(
  737. 'title' => '文章管理',
  738. 'url' => url('site/article/display'),
  739. 'permission_name' => 'platform_site_article',
  740. 'active' => 'article',
  741. ),
  742. 'platform_site_category' => array(
  743. 'title' => '文章分类管理',
  744. 'url' => url('site/category/display'),
  745. 'permission_name' => 'platform_site_category',
  746. 'active' => 'category',
  747. ),
  748. ),
  749. ),
  750. ),
  751. 'permission_display' => array(
  752. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  753. ACCOUNT_TYPE_OFFCIAL_AUTH,
  754. ACCOUNT_TYPE_XZAPP_NORMAL,
  755. ACCOUNT_TYPE_XZAPP_AUTH,
  756. ),
  757. ),
  758. 'platform_module' => array(
  759. 'title' => '应用模块',
  760. 'menu' => array(),
  761. 'is_display' => true,
  762. ),
  763. 'mc' => array(
  764. 'title' => '粉丝',
  765. 'menu' => array(
  766. 'mc_fans' => array(
  767. 'title' => '粉丝管理',
  768. 'url' => url('mc/fans'),
  769. 'icon' => 'wi wi-fansmanage',
  770. 'permission_name' => 'mc_fans',
  771. 'is_display' => array(
  772. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  773. ACCOUNT_TYPE_OFFCIAL_AUTH,
  774. ACCOUNT_TYPE_XZAPP_NORMAL,
  775. ACCOUNT_TYPE_XZAPP_AUTH,
  776. ),
  777. 'sub_permission' => array(
  778. 'mc_fans_display' => array(
  779. 'title' => '全部粉丝',
  780. 'url' => url('mc/fans/display'),
  781. 'permission_name' => 'mc_fans_display',
  782. 'active' => 'display',
  783. ),
  784. 'mc_fans_fans_sync_set' => array(
  785. 'title' => '粉丝同步设置',
  786. 'url' => url('mc/fans/fans_sync_set'),
  787. 'permission_name' => 'mc_fans_fans_sync_set',
  788. 'active' => 'fans_sync_set',
  789. ),
  790. ),
  791. ),
  792. 'mc_member' => array(
  793. 'title' => '会员管理',
  794. 'url' => url('mc/member', array('version_id' => $_GPC['version_id'])),
  795. 'icon' => 'wi wi-fans',
  796. 'permission_name' => 'mc_member',
  797. 'is_display' => array(
  798. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  799. ACCOUNT_TYPE_OFFCIAL_AUTH,
  800. ACCOUNT_TYPE_XZAPP_NORMAL,
  801. ACCOUNT_TYPE_XZAPP_AUTH,
  802. ACCOUNT_TYPE_WEBAPP_NORMAL,
  803. ),
  804. 'sub_permission' => array(
  805. 'mc_member_diaplsy' => array(
  806. 'title' => '会员管理',
  807. 'url' => url('mc/member/display'),
  808. 'permission_name' => 'mc_member_diaplsy',
  809. 'active' => 'display',
  810. ),
  811. 'mc_member_group' => array(
  812. 'title' => '会员组',
  813. 'url' => url('mc/group/display'),
  814. 'permission_name' => 'mc_member_group',
  815. 'active' => 'display',
  816. ),
  817. 'mc_member_uc' => array(
  818. 'title' => '会员中心',
  819. 'url' => url('site/editor/uc'),
  820. 'permission_name' => 'mc_member_uc',
  821. 'active' => 'uc',
  822. 'is_display' => array(
  823. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  824. ACCOUNT_TYPE_OFFCIAL_AUTH,
  825. ),
  826. ),
  827. 'mc_member_quickmenu' => array(
  828. 'title' => '快捷菜单',
  829. 'url' => url('site/editor/quickmenu'),
  830. 'permission_name' => 'mc_member_quickmenu',
  831. 'active' => 'quickmenu',
  832. 'is_display' => array(
  833. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  834. ACCOUNT_TYPE_OFFCIAL_AUTH,
  835. ),
  836. ),
  837. 'mc_member_register_seting' => array(
  838. 'title' => '注册设置',
  839. 'url' => url('mc/member/register_setting'),
  840. 'permission_name' => 'mc_member_register_seting',
  841. 'active' => 'register_setting',
  842. 'is_display' => array(
  843. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  844. ACCOUNT_TYPE_OFFCIAL_AUTH,
  845. ),
  846. ),
  847. 'mc_member_credit_setting' => array(
  848. 'title' => '积分设置',
  849. 'url' => url('mc/member/credit_setting'),
  850. 'permission_name' => 'mc_member_credit_setting',
  851. 'active' => 'credit_setting',
  852. ),
  853. 'mc_member_fields' => array(
  854. 'title' => '会员字段管理',
  855. 'url' => url('mc/fields/list'),
  856. 'permission_name' => 'mc_member_fields',
  857. 'active' => 'list',
  858. ),
  859. ),
  860. ),
  861. 'mc_message' => array(
  862. 'title' => '留言管理',
  863. 'url' => url('mc/message'),
  864. 'icon' => 'wi wi-message',
  865. 'permission_name' => 'mc_message',
  866. 'is_display' => array(
  867. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  868. ACCOUNT_TYPE_OFFCIAL_AUTH,
  869. ACCOUNT_TYPE_XZAPP_NORMAL,
  870. ACCOUNT_TYPE_XZAPP_AUTH,
  871. ),
  872. )
  873. ),
  874. 'permission_display' => array(
  875. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  876. ACCOUNT_TYPE_OFFCIAL_AUTH,
  877. ACCOUNT_TYPE_XZAPP_NORMAL,
  878. ACCOUNT_TYPE_XZAPP_AUTH,
  879. ACCOUNT_TYPE_WEBAPP_NORMAL,
  880. ),
  881. ),
  882. 'profile' => array(
  883. 'title' => '配置',
  884. 'menu' => array(
  885. 'profile_setting' => array(
  886. 'title' => '参数配置',
  887. 'url' => url('profile/remote'),
  888. 'icon' => 'wi wi-parameter-setting',
  889. 'permission_name' => 'profile_setting',
  890. 'is_display' => array(
  891. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  892. ACCOUNT_TYPE_OFFCIAL_AUTH,
  893. ACCOUNT_TYPE_XZAPP_NORMAL,
  894. ACCOUNT_TYPE_XZAPP_AUTH,
  895. ACCOUNT_TYPE_WEBAPP_NORMAL,
  896. ),
  897. 'sub_permission' => array(
  898. 'profile_setting_remote' => array(
  899. 'title' => '远程附件',
  900. 'url' => url('profile/remote/display'),
  901. 'permission_name' => 'profile_setting_remote',
  902. 'active' => 'display',
  903. ),
  904. 'profile_setting_passport' => array(
  905. 'title' => '借用权限',
  906. 'url' => url('profile/passport/oauth'),
  907. 'permission_name' => 'profile_setting_passport',
  908. 'active' => 'oauth',
  909. 'is_display' => array(
  910. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  911. ACCOUNT_TYPE_OFFCIAL_AUTH,
  912. ),
  913. ),
  914. 'profile_setting_tplnotice' => array(
  915. 'title' => '微信通知设置',
  916. 'url' => url('profile/tplnotice/list'),
  917. 'permission_name' => 'profile_setting_tplnotice',
  918. 'active' => 'list',
  919. 'is_display' => array(
  920. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  921. ACCOUNT_TYPE_OFFCIAL_AUTH,
  922. ),
  923. ),
  924. 'profile_setting_notify' => array(
  925. 'title' => '邮件通知参数',
  926. 'url' => url('profile/notify/mail'),
  927. 'permission_name' => 'profile_setting_notify',
  928. 'active' => 'mail',
  929. 'is_display' => array(
  930. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  931. ACCOUNT_TYPE_OFFCIAL_AUTH,
  932. ),
  933. ),
  934. 'profile_setting_uc_setting' => array(
  935. 'title' => 'UC站点整合',
  936. 'url' => url('profile/common/uc_setting'),
  937. 'permission_name' => 'profile_setting_uc_setting',
  938. 'active' => 'uc_setting',
  939. 'is_display' => array(
  940. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  941. ACCOUNT_TYPE_OFFCIAL_AUTH,
  942. ),
  943. ),
  944. 'profile_setting_upload_file' => array(
  945. 'title' => '上传JS接口文件',
  946. 'url' => url('profile/common/upload_file'),
  947. 'permission_name' => 'profile_setting_upload_file',
  948. 'active' => 'upload_file',
  949. 'is_display' => array(
  950. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  951. ACCOUNT_TYPE_OFFCIAL_AUTH,
  952. ),
  953. ),
  954. ),
  955. ),
  956. 'profile_payment' => array(
  957. 'title' => '支付参数',
  958. 'url' => url('profile/payment'),
  959. 'icon' => 'wi wi-pay-setting',
  960. 'permission_name' => 'profile_payment',
  961. 'is_display' => array(
  962. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  963. ACCOUNT_TYPE_OFFCIAL_AUTH,
  964. ),
  965. 'sub_permission' => array(
  966. 'profile_payment_pay' => array(
  967. 'title' => '支付配置',
  968. 'url' => url('profile/payment'),
  969. 'permission_name' => 'profile_payment_pay',
  970. 'active' => 'payment',
  971. ),
  972. 'profile_payment_refund' => array(
  973. 'title' => '退款配置',
  974. 'url' => url('profile/refund/display'),
  975. 'permission_name' => 'profile_payment_refund',
  976. 'active' => 'refund',
  977. ),
  978. ),
  979. ),
  980. 'profile_app_module_link' => array(
  981. 'title' => "数据同步",
  982. 'url' => url('profile/module-link-uniacid'),
  983. 'is_display' => 1,
  984. 'icon' => 'wi wi-data-synchro',
  985. 'permission_name' => 'profile_app_module_link_uniacid',
  986. 'is_display' => array(
  987. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  988. ACCOUNT_TYPE_OFFCIAL_AUTH,
  989. ACCOUNT_TYPE_XZAPP_NORMAL,
  990. ACCOUNT_TYPE_XZAPP_AUTH,
  991. ),
  992. ),
  993. 'profile_bind_domain' => array(
  994. 'title' => '域名绑定',
  995. 'url' => url('profile/bind-domain'),
  996. 'icon' => 'wi wi-bind-domain',
  997. 'permission_name' => 'profile_bind_domain',
  998. 'is_display' => array(
  999. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  1000. ACCOUNT_TYPE_OFFCIAL_AUTH,
  1001. ACCOUNT_TYPE_XZAPP_NORMAL,
  1002. ACCOUNT_TYPE_XZAPP_AUTH,
  1003. ),
  1004. ),
  1005. 'webapp_module_link' => array(
  1006. 'title' => "数据同步",
  1007. 'url' => url('profile/module-link-uniacid'),
  1008. 'is_display' => 1,
  1009. 'icon' => 'wi wi-data-synchro',
  1010. 'permission_name' => 'webapp_module_link',
  1011. 'is_display' => array(
  1012. ACCOUNT_TYPE_WEBAPP_NORMAL,
  1013. ),
  1014. ),
  1015. 'webapp_rewrite' => array(
  1016. 'title' => '伪静态',
  1017. 'url' => url('webapp/rewrite'),
  1018. 'icon' => 'wi wi-rewrite',
  1019. 'permission_name' => 'webapp_rewrite',
  1020. 'is_display' => array(
  1021. ACCOUNT_TYPE_WEBAPP_NORMAL,
  1022. ),
  1023. ),
  1024. 'webapp_bind_domain' => array(
  1025. 'title' => '域名访问设置',
  1026. 'url' => url('webapp/bind-domain'),
  1027. 'icon' => 'wi wi-bind-domain',
  1028. 'permission_name' => 'webapp_bind_domain',
  1029. 'is_display' => array(
  1030. ACCOUNT_TYPE_WEBAPP_NORMAL,
  1031. ),
  1032. ),
  1033. ),
  1034. 'permission_display' => array(
  1035. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  1036. ACCOUNT_TYPE_OFFCIAL_AUTH,
  1037. ACCOUNT_TYPE_XZAPP_NORMAL,
  1038. ACCOUNT_TYPE_XZAPP_AUTH,
  1039. ACCOUNT_TYPE_WEBAPP_NORMAL,
  1040. ),
  1041. ),
  1042. 'statistics' => array(
  1043. 'title' => '统计',
  1044. 'menu' => array(
  1045. 'statistics_visit' => array(
  1046. 'title' => '访问统计',
  1047. 'url' => url('statistics/app'),
  1048. 'icon' => 'wi wi-statistical',
  1049. 'permission_name' => 'statistics_visit',
  1050. 'is_display' => array(
  1051. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  1052. ACCOUNT_TYPE_OFFCIAL_AUTH,
  1053. ACCOUNT_TYPE_XZAPP_NORMAL,
  1054. ACCOUNT_TYPE_XZAPP_AUTH,
  1055. ACCOUNT_TYPE_WEBAPP_NORMAL,
  1056. ),
  1057. 'sub_permission' => array(
  1058. 'statistics_visit_app' => array(
  1059. 'title' => 'app端访问统计信息',
  1060. 'url' => url('statistics/app/display'),
  1061. 'permission_name' => 'statistics_visit_app',
  1062. 'active' => 'app',
  1063. ),
  1064. 'statistics_visit_site' => array(
  1065. 'title' => '所有用户访问统计',
  1066. 'url' => url('statistics/site/current_account'),
  1067. 'permission_name' => 'statistics_visit_site',
  1068. 'active' => 'site',
  1069. ),
  1070. 'statistics_visit_setting' => array(
  1071. 'title' => '访问统计设置',
  1072. 'url' => url('statistics/setting/display'),
  1073. 'permission_name' => 'statistics_visit_setting',
  1074. 'active' => 'setting',
  1075. ),
  1076. ),
  1077. ),
  1078. 'statistics_fans' => array(
  1079. 'title' => '用户统计',
  1080. 'url' => url('statistics/fans'),
  1081. 'icon' => 'wi wi-statistical',
  1082. 'permission_name' => 'statistics_fans',
  1083. 'is_display' => array(
  1084. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  1085. ACCOUNT_TYPE_OFFCIAL_AUTH,
  1086. ACCOUNT_TYPE_XZAPP_NORMAL,
  1087. ACCOUNT_TYPE_XZAPP_AUTH,
  1088. ),
  1089. ),
  1090. ),
  1091. 'permission_display' => array(
  1092. ACCOUNT_TYPE_OFFCIAL_NORMAL,
  1093. ACCOUNT_TYPE_OFFCIAL_AUTH,
  1094. ACCOUNT_TYPE_XZAPP_NORMAL,
  1095. ACCOUNT_TYPE_XZAPP_AUTH,
  1096. ACCOUNT_TYPE_WEBAPP_NORMAL,
  1097. ),
  1098. ),
  1099. ),
  1100. );
  1101. $we7_system_menu['wxapp'] = array(
  1102. 'title' => '微信小程序',
  1103. 'icon' => 'wi wi-small-routine',
  1104. 'dimension' => 3,
  1105. 'url' => url('wxapp/display/home'),
  1106. 'section' => array(
  1107. 'wxapp_entrance' => array(
  1108. 'title' => '小程序入口',
  1109. 'menu' => array(
  1110. 'module_entrance_link' => array(
  1111. 'title' => "入口页面",
  1112. 'url' => url('wxapp/entrance-link'),
  1113. 'is_display' => array(
  1114. ACCOUNT_TYPE_APP_NORMAL,
  1115. ACCOUNT_TYPE_APP_AUTH,
  1116. ACCOUNT_TYPE_WXAPP_WORK,
  1117. ),
  1118. 'icon' => 'wi wi-data-synchro',
  1119. 'permission_name' => 'wxapp_entrance_link',
  1120. ),
  1121. ),
  1122. 'permission_display' => array(
  1123. ACCOUNT_TYPE_APP_NORMAL,
  1124. ACCOUNT_TYPE_APP_AUTH,
  1125. ACCOUNT_TYPE_WXAPP_WORK,
  1126. )
  1127. ),
  1128. 'platform_module' => array(
  1129. 'title' => '应用',
  1130. 'menu' => array(),
  1131. 'is_display' => true,
  1132. ),
  1133. 'mc' => array(
  1134. 'title' => '粉丝',
  1135. 'menu' => array(
  1136. 'mc_member' => array(
  1137. 'title' => '会员',
  1138. 'url' => url('mc/member'),
  1139. 'is_display' => array(
  1140. ACCOUNT_TYPE_APP_NORMAL,
  1141. ACCOUNT_TYPE_APP_AUTH,
  1142. ACCOUNT_TYPE_WXAPP_WORK,
  1143. ),
  1144. 'icon' => 'wi wi-fans',
  1145. 'permission_name' => 'mc_wxapp_member',
  1146. 'sub_permission' => array(
  1147. 'mc_member_diaplsy' => array(
  1148. 'title' => '会员管理',
  1149. 'url' => url('mc/member/display'),
  1150. 'permission_name' => 'mc_member_diaplsy',
  1151. 'active' => 'display',
  1152. ),
  1153. 'mc_member_group' => array(
  1154. 'title' => '会员组',
  1155. 'url' => url('mc/group/display'),
  1156. 'permission_name' => 'mc_member_group',
  1157. 'active' => 'display',
  1158. ),
  1159. 'mc_member_credit_setting' => array(
  1160. 'title' => '积分设置',
  1161. 'url' => url('mc/member/credit_setting'),
  1162. 'permission_name' => 'mc_member_credit_setting',
  1163. 'active' => 'credit_setting',
  1164. ),
  1165. 'mc_member_fields' => array(
  1166. 'title' => '会员字段管理',
  1167. 'url' => url('mc/fields/list'),
  1168. 'permission_name' => 'mc_member_fields',
  1169. 'active' => 'list',
  1170. ),
  1171. ),
  1172. )
  1173. ),
  1174. 'permission_display' => array(
  1175. ACCOUNT_TYPE_APP_NORMAL,
  1176. ACCOUNT_TYPE_APP_AUTH,
  1177. ACCOUNT_TYPE_WXAPP_WORK,
  1178. )
  1179. ),
  1180. 'wxapp_profile' => array(
  1181. 'title' => '配置',
  1182. 'menu' => array(
  1183. 'wxapp_profile_module_link_uniacid' => array(
  1184. 'title' => "数据同步",
  1185. 'url' => url('wxapp/module-link-uniacid'),
  1186. 'is_display' => array(
  1187. ACCOUNT_TYPE_APP_NORMAL,
  1188. ACCOUNT_TYPE_APP_AUTH,
  1189. ACCOUNT_TYPE_WXAPP_WORK,
  1190. ACCOUNT_TYPE_PHONEAPP_NORMAL,
  1191. ACCOUNT_TYPE_ALIAPP_NORMAL,
  1192. ACCOUNT_TYPE_BAIDUAPP_NORMAL,
  1193. ACCOUNT_TYPE_TOUTIAOAPP_NORMAL,
  1194. ),
  1195. 'icon' => 'wi wi-data-synchro',
  1196. 'permission_name' => 'wxapp_profile_module_link_uniacid',
  1197. ),
  1198. 'wxapp_profile_payment' => array(
  1199. 'title' => '支付参数',
  1200. 'url' => url('wxapp/payment'),
  1201. 'is_display' => array(
  1202. ACCOUNT_TYPE_APP_NORMAL,
  1203. ACCOUNT_TYPE_APP_AUTH,
  1204. ACCOUNT_TYPE_WXAPP_WORK,
  1205. ),
  1206. 'icon' => 'wi wi-appsetting',
  1207. 'permission_name' => 'wxapp_profile_payment',
  1208. 'sub_permission' => array(
  1209. 'wxapp_payment_pay' => array(
  1210. 'title' => '支付参数',
  1211. 'url' => url('wxapp/payment/display'),
  1212. 'permission_name' => 'wxapp_payment_pay',
  1213. 'active' => 'payment',
  1214. ),
  1215. 'wxapp_payment_refund' => array(
  1216. 'title' => '退款配置',
  1217. 'url' => url('wxapp/refund/display'),
  1218. 'permission_name' => 'wxapp_payment_refund',
  1219. 'active' => 'refund',
  1220. ),
  1221. ),
  1222. ),
  1223. 'wxapp_profile_front_download' => array(
  1224. 'title' => $_W['account']['type_sign'] == 'wxapp' ? '上传微信审核' : '下载程序包',
  1225. 'url' => $_W['account']['type_sign'] == 'phoneapp' ? url('phoneapp/front-download') : url('wxapp/front-download'),
  1226. 'is_display' => 1,
  1227. 'icon' => 'wi wi-examine',
  1228. 'permission_name' => 'wxapp_profile_front_download',
  1229. ),
  1230. 'wxapp_profile_domainset' => array(
  1231. 'title' => '域名设置',
  1232. 'url' => url('wxapp/domainset', array('version_id' => $_GPC['version_id'])),
  1233. 'is_display' => array(
  1234. ACCOUNT_TYPE_APP_NORMAL,
  1235. ACCOUNT_TYPE_APP_AUTH,
  1236. ACCOUNT_TYPE_WXAPP_WORK,
  1237. ),
  1238. 'icon' => 'wi wi-examine',
  1239. 'permission_name' => 'wxapp_profile_domainset',
  1240. ),
  1241. 'profile_setting_remote' => array(
  1242. 'title' => '参数配置',
  1243. 'url' => url('profile/remote'),
  1244. 'is_display' => array(
  1245. ACCOUNT_TYPE_APP_NORMAL,
  1246. ACCOUNT_TYPE_APP_AUTH,
  1247. ACCOUNT_TYPE_WXAPP_WORK,
  1248. ACCOUNT_TYPE_PHONEAPP_NORMAL,
  1249. ACCOUNT_TYPE_ALIAPP_NORMAL,
  1250. ACCOUNT_TYPE_BAIDUAPP_NORMAL,
  1251. ACCOUNT_TYPE_TOUTIAOAPP_NORMAL,
  1252. ),
  1253. 'icon' => 'wi wi-parameter-setting',
  1254. 'permission_name' => 'profile_setting_remote',
  1255. ),
  1256. 'wxapp_profile_platform_material' => array(
  1257. 'title' => '素材管理',
  1258. 'is_display' => 0,
  1259. 'permission_name' => 'wxapp_profile_platform_material',
  1260. 'sub_permission' => array(
  1261. array(
  1262. 'title' => '删除',
  1263. 'permission_name' => 'wxapp_profile_platform_material_delete',
  1264. ),
  1265. ),
  1266. ),
  1267. ),
  1268. 'permission_display' => array(
  1269. ACCOUNT_TYPE_APP_NORMAL,
  1270. ACCOUNT_TYPE_APP_AUTH,
  1271. ACCOUNT_TYPE_WXAPP_WORK,
  1272. ACCOUNT_TYPE_PHONEAPP_NORMAL,
  1273. ACCOUNT_TYPE_ALIAPP_NORMAL,
  1274. ACCOUNT_TYPE_BAIDUAPP_NORMAL,
  1275. ACCOUNT_TYPE_TOUTIAOAPP_NORMAL,
  1276. )
  1277. ),
  1278. 'statistics' => array(
  1279. 'title' => '统计',
  1280. 'menu' => array(
  1281. 'statistics_visit' => array(
  1282. 'title' => '访问统计',
  1283. 'url' => $_W['account']['type_sign'] == 'wxapp' ? url('wxapp/statistics') : url('statistics/app'),
  1284. 'icon' => 'wi wi-statistical',
  1285. 'permission_name' => 'statistics_visit_wxapp',
  1286. 'is_display' => array(
  1287. ACCOUNT_TYPE_APP_NORMAL,
  1288. ACCOUNT_TYPE_APP_AUTH,
  1289. ACCOUNT_TYPE_WXAPP_WORK,
  1290. ACCOUNT_TYPE_PHONEAPP_NORMAL,
  1291. ACCOUNT_TYPE_ALIAPP_NORMAL,
  1292. ACCOUNT_TYPE_BAIDUAPP_NORMAL,
  1293. ACCOUNT_TYPE_TOUTIAOAPP_NORMAL,
  1294. ),
  1295. 'sub_permission' => array(
  1296. 'statistics_visit_app' => array(
  1297. 'title' => 'app端访问统计信息',
  1298. 'url' => url('statistics/app/display'),
  1299. 'permission_name' => 'statistics_visit_app',
  1300. 'active' => 'app',
  1301. ),
  1302. 'statistics_visit_site' => array(
  1303. 'title' => '所有用户访问统计',
  1304. 'url' => url('statistics/site/current_account'),
  1305. 'permission_name' => 'statistics_visit_site',
  1306. 'active' => 'site',
  1307. ),
  1308. 'statistics_visit_setting' => array(
  1309. 'title' => '访问统计设置',
  1310. 'url' => url('statistics/setting/display'),
  1311. 'permission_name' => 'statistics_visit_setting',
  1312. 'active' => 'setting',
  1313. ),
  1314. ),
  1315. ),
  1316. ),
  1317. 'permission_display' => array(
  1318. ACCOUNT_TYPE_APP_NORMAL,
  1319. ACCOUNT_TYPE_APP_AUTH,
  1320. ACCOUNT_TYPE_WXAPP_WORK,
  1321. ACCOUNT_TYPE_PHONEAPP_NORMAL,
  1322. ACCOUNT_TYPE_ALIAPP_NORMAL,
  1323. ACCOUNT_TYPE_BAIDUAPP_NORMAL,
  1324. ACCOUNT_TYPE_TOUTIAOAPP_NORMAL,
  1325. )
  1326. ),
  1327. ),
  1328. );
  1329. $we7_system_menu['webapp'] = array(
  1330. 'title' => 'PC',
  1331. 'icon' => 'wi wi-pc',
  1332. 'url' => url('webapp/home/display'),
  1333. 'section' => array(),
  1334. );
  1335. $we7_system_menu['phoneapp'] = array(
  1336. 'title' => 'APP',
  1337. 'icon' => 'wi wi-white-collar',
  1338. 'url' => url('phoneapp/display/home'),
  1339. 'section' => array(
  1340. 'platform_module' => array(
  1341. 'title' => '应用',
  1342. 'menu' => array(),
  1343. 'is_display' => true,
  1344. ),
  1345. 'phoneapp_profile' => array(
  1346. 'title' => '配置',
  1347. 'menu' => array(
  1348. 'profile_phoneapp_module_link' => array(
  1349. 'title' => "数据同步",
  1350. 'url' => url('wxapp/module-link-uniacid'),
  1351. 'is_display' => array(
  1352. ACCOUNT_TYPE_PHONEAPP_NORMAL,
  1353. ),
  1354. 'icon' => 'wi wi-data-synchro',
  1355. 'permission_name' => 'profile_phoneapp_module_link',
  1356. ),
  1357. 'front_download' => array(
  1358. 'title' => '下载APP',
  1359. 'url' => url('phoneapp/front-download'),
  1360. 'is_display' => true,
  1361. 'icon' => 'wi wi-examine',
  1362. 'permission_name' => 'phoneapp_front_download',
  1363. )
  1364. ),
  1365. 'is_display' => true,
  1366. 'permission_display' => array(
  1367. ACCOUNT_TYPE_PHONEAPP_NORMAL,
  1368. )
  1369. )
  1370. ),
  1371. );
  1372. $we7_system_menu['xzapp'] = array(
  1373. 'title' => '熊掌号',
  1374. 'icon' => 'wi wi-xzapp',
  1375. 'url' => url('xzapp/home/display'),
  1376. 'section' => array(
  1377. 'platform_module' => array(
  1378. 'title' => '应用模块',
  1379. 'menu' => array(),
  1380. 'is_display' => true,
  1381. ),
  1382. ),
  1383. );
  1384. $we7_system_menu['aliapp'] = array(
  1385. 'title' => '支付宝小程序',
  1386. 'icon' => 'wi wi-aliapp',
  1387. 'url' => url('miniapp/display/home'),
  1388. 'section' => array(
  1389. 'platform_module' => array(
  1390. 'title' => '应用',
  1391. 'menu' => array(),
  1392. 'is_display' => true,
  1393. ),
  1394. ),
  1395. );
  1396. $we7_system_menu['baiduapp'] = array(
  1397. 'title' => '百度小程序',
  1398. 'icon' => 'wi wi-baiduapp',
  1399. 'url' => url('miniapp/display/home'),
  1400. 'section' => array(
  1401. 'platform_module' => array(
  1402. 'title' => '应用',
  1403. 'menu' => array(),
  1404. 'is_display' => true,
  1405. ),
  1406. ),
  1407. );
  1408. $we7_system_menu['toutiaoapp'] = array(
  1409. 'title' => '头条小程序',
  1410. 'icon' => 'wi wi-toutiaoapp',
  1411. 'url' => url('miniapp/display/home'),
  1412. 'section' => array(
  1413. 'platform_module' => array(
  1414. 'title' => '应用',
  1415. 'menu' => array(),
  1416. 'is_display' => true,
  1417. ),
  1418. ),
  1419. );
  1420. /*$we7_system_menu['appmarket'] = array(
  1421. 'title' => '市场',
  1422. 'icon' => 'wi wi-market',
  1423. 'url' => 'https://bbs.5g-yun.com',
  1424. 'section' => array(),
  1425. 'blank' => true,
  1426. 'founder' => true,
  1427. );
  1428. */
  1429. $we7_system_menu['store'] = array(
  1430. 'title' => '商城',
  1431. 'icon' => 'wi wi-store',
  1432. 'url' => url('home/welcome/ext', array('m' => 'store')),
  1433. 'section' => array(
  1434. 'store_goods' => array(
  1435. 'title' => '商品分类',
  1436. 'menu' => array(
  1437. 'store_goods_module' =>array(
  1438. 'title' => '应用模块',
  1439. 'url' => url('site/entry/goodsbuyer', array('m' => 'store', 'direct' => 1, 'type' => STORE_TYPE_MODULE)),
  1440. 'icon' => 'wi wi-apply',
  1441. 'type' => STORE_TYPE_MODULE,
  1442. ),
  1443. 'store_goods_account' => array(
  1444. 'title' => '平台个数',
  1445. 'url' => url('site/entry/goodsbuyer', array('m' => 'store', 'direct' => 1, 'type' => STORE_TYPE_ACCOUNT)),
  1446. 'icon' => 'wi wi-account',
  1447. 'type' => STORE_TYPE_ACCOUNT,
  1448. ),
  1449. 'store_goods_account_renew' => array(
  1450. 'title' => '平台续费',
  1451. 'url' => url('site/entry/goodsbuyer', array('m' => 'store', 'direct' => 1, 'type' => STORE_TYPE_ACCOUNT_RENEW)),
  1452. 'icon' => 'wi wi-appjurisdiction',
  1453. 'type' => STORE_TYPE_ACCOUNT_RENEW,
  1454. ),
  1455. 'store_goods_package' => array(
  1456. 'title' => '应用权限组',
  1457. 'url' => url('site/entry/goodsbuyer', array('m' => 'store', 'direct' => 1, 'type' => STORE_TYPE_PACKAGE)),
  1458. 'icon' => 'wi wi-appjurisdiction',
  1459. 'type' => STORE_TYPE_PACKAGE,
  1460. ),
  1461. 'store_goods_users_package' => array(
  1462. 'title' => '用户权限组',
  1463. 'url' => url('site/entry/goodsbuyer', array('m' => 'store', 'direct' => 1, 'type' => STORE_TYPE_USER_PACKAGE)),
  1464. 'icon' => 'wi wi-userjurisdiction',
  1465. 'type' => STORE_TYPE_USER_PACKAGE,
  1466. ),
  1467. 'store_goods_api' => array(
  1468. 'title' => '应用访问流量(API)',
  1469. 'url' => url('site/entry/goodsbuyer', array('m' => 'store', 'direct' => 1, 'type' => STORE_TYPE_API)),
  1470. 'icon' => 'wi wi-api',
  1471. 'type' => STORE_TYPE_API,
  1472. ),
  1473. ),
  1474. ),
  1475. 'store_manage' => array(
  1476. 'title' => '商城管理',
  1477. 'founder' => true,
  1478. 'menu' => array(
  1479. 'store_manage_goods' => array(
  1480. 'title' => '添加商品',
  1481. 'url' => url('site/entry/goodsSeller', array('m' => 'store', 'direct' => 1)),
  1482. 'icon' => 'wi wi-goods-add',
  1483. 'type' => 'goodsSeller',
  1484. ),
  1485. 'store_manage_setting' => array(
  1486. 'title' => '商城设置',
  1487. 'url' => url('site/entry/setting', array('m' => 'store', 'direct' => 1)),
  1488. 'icon' => 'wi wi-store',
  1489. 'type' => 'setting',
  1490. ),
  1491. 'store_manage_payset' => array(
  1492. 'title' => '支付设置',
  1493. 'url' => url('site/entry/paySetting', array('m' => 'store', 'direct' => 1)),
  1494. 'icon' => 'wi wi-money',
  1495. 'type' => 'paySetting',
  1496. ),
  1497. 'store_manage_permission' => array(
  1498. 'title' => '商城访问权限',
  1499. 'url' => url('site/entry/permission', array('m' => 'store', 'direct' => 1)),
  1500. 'icon' => 'wi wi-blacklist',
  1501. 'type' => 'blacklist',
  1502. ),
  1503. )
  1504. ),
  1505. 'store_orders' => array(
  1506. 'title' => '订单管理',
  1507. 'menu' => array(
  1508. 'store_orders_my' => array(
  1509. 'title' => '我的订单',
  1510. 'url' => url('site/entry/orders', array('m' => 'store', 'direct' => 1)),
  1511. 'icon' => 'wi wi-sale-record',
  1512. 'type' => 'orders',
  1513. ),
  1514. 'store_cash_orders' => array(
  1515. 'title' => '分销订单',
  1516. 'url' => url('site/entry/cash', array('m' => 'store', 'operate' => 'cash_orders', 'direct' => 1)),
  1517. 'icon' => 'wi wi-order',
  1518. 'type' => 'cash_orders',
  1519. ),
  1520. ),
  1521. ),
  1522. 'store_payments' => array(
  1523. 'title' => '收入明细',
  1524. 'menu' => array(
  1525. 'payments' => array (
  1526. 'title' => '收入明细',
  1527. 'url' => url('site/entry/payments', array('m' => 'store', 'direct' => 1)),
  1528. 'icon' => 'wi wi-sale-record',
  1529. 'type' => 'payments',
  1530. ),
  1531. )
  1532. ),
  1533. 'store_cash_manage' => array(
  1534. 'title' => '分销管理',
  1535. 'menu' => array(
  1536. 'store_manage_cash_setting' => array(
  1537. 'title' => '分销设置',
  1538. 'url' => url('site/entry/cashsetting', array('m' => 'store', 'direct' => 1)),
  1539. 'icon' => 'wi wi-site-setting',
  1540. 'type' => 'cashsetting',
  1541. ),
  1542. 'store_check_cash' => array(
  1543. 'title' => '提现审核',
  1544. 'url' => url('site/entry/cash', array('m' => 'store', 'operate' => 'consume_order', 'direct' => 1)),
  1545. 'icon' => 'wi wi-check-select',
  1546. 'type' => 'consume_order',
  1547. ),
  1548. )
  1549. ),
  1550. 'store_cash' => array(
  1551. 'title' => '佣金管理',
  1552. 'menu' => array(
  1553. 'payments' => array (
  1554. 'title' => '我的佣金',
  1555. 'url' => url('site/entry/cash', array('m' => 'store', 'operate' => 'mycash', 'direct' => 1)),
  1556. 'icon' => 'wi wi-list',
  1557. 'type' => 'mycash',
  1558. ),
  1559. )
  1560. ),
  1561. ),
  1562. );
  1563. /*$we7_system_menu['workorder'] = array(
  1564. 'title' => '工单',
  1565. 'icon' => 'wi wi-bell',
  1566. 'dimension' => 2,
  1567. 'url' => url('system/workorder/display'),
  1568. 'section' => array(
  1569. 'workorder'=> array(
  1570. 'title' => '工单系统',
  1571. 'menu'=> array(
  1572. 'system_workorder'=> array(
  1573. 'title' => '工单系统',
  1574. 'url' => url('system/workorder/display'),
  1575. 'icon' => 'wi wi-system-work',
  1576. 'permission_name' => 'system_workorder',
  1577. ),
  1578. ),
  1579. ),
  1580. ),
  1581. 'founder' => true,
  1582. );*/
  1583. $we7_system_menu['help'] = array(
  1584. 'title' => '帮助',
  1585. 'icon' => 'wi wi-market',
  1586. 'url' => url('help/display'),
  1587. 'section' => array(),
  1588. );
  1589. $we7_system_menu['custom_help'] = array(
  1590. 'title' => '本站帮助',
  1591. 'icon' => 'wi wi-market',
  1592. 'url' => url('help/display/custom'),
  1593. 'section' => array(),
  1594. );
  1595. return $we7_system_menu;