rules.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. return [
  3. '/'=>'web/default/index',
  4. '/catlist/'=>'web/default/catlist',
  5. [
  6. 'pattern' => 'dingcallback',
  7. 'route' => 'openauth/dingcallback',
  8. 'suffix' => '',
  9. ],
  10. [
  11. 'pattern' => 'wxcallback',
  12. 'route' => 'openauth/wxcallback',
  13. 'suffix' => '',
  14. ],
  15. [
  16. 'pattern' => 'wbcallback',
  17. 'route' => 'openauth/wbcallback',
  18. 'suffix' => '',
  19. ],
  20. [
  21. 'pattern' => 'qqcallback',
  22. 'route' => 'openauth/qqcallback',
  23. 'suffix' => '',
  24. ],
  25. '/mplogin/'=>'openauth/mplogin',
  26. '/mpmsg/'=>'openauth/mpmsg',
  27. '/mpsub/'=>'openauth/mpsub',
  28. '/fetchopenauth/' =>'openauth/fetchopenauth',
  29. '/fetchmpmsg/' =>'openauth/fetchmpmsg',
  30. '/accesstokenlogin/' => 'openauth/accesstokenlogin',
  31. '/weixin/'=>'weixin/openauth',
  32. '/mp/'=>'weixin/mp',
  33. '/freedowncode/'=>'openauth/freedowncode',
  34. //用户中心
  35. '/loginhome/'=>'ucenter/default/loginhome',
  36. '/login/'=>'ucenter/default/login',
  37. '/register/'=>'ucenter/default/register',
  38. '/forgetpwd/'=>'ucenter/default/forgetpwd',
  39. '/logout/'=>'ucenter/default/logout',
  40. '/ucenter/'=>'ucenter/default/index',
  41. '/myaccount/<tab:\d+>/'=>'ucenter/default/account',
  42. '/myaccount/'=>'ucenter/default/account',
  43. '/certindex/'=>'ucenter/default/certindex',
  44. '/certuser/'=>'ucenter/default/certuser',
  45. '/certorg/'=>'ucenter/default/certorg',
  46. '/coincharge/'=>'ucenter/default/coincharge',
  47. '/coinlog/<type:\d+>/'=>'ucenter/default/coinlog',
  48. '/pointlog/'=>'ucenter/default/pointlog',
  49. '/moneylog/'=>'ucenter/default/moneylog',
  50. '/docpaylog/'=>'ucenter/default/docpaylog',
  51. '/myfavorite/'=>'ucenter/default/myfavorite',
  52. '/myfocus/'=>'ucenter/default/myfocus',
  53. '/myhistory/'=>'ucenter/default/myhistory',
  54. '/myinvite/' =>'ucenter/default/myinvite',
  55. '/mymsg/<type:\d+>/' =>'ucenter/default/mymsg',
  56. '/setbank/<type:\d+>/' =>'ucenter/default/setbank',
  57. '/withdraw/'=>'ucenter/default/withdraw',
  58. '/myorder/'=>'ucenter/default/myorder',
  59. '/myaddress/'=>'ucenter/default/myaddress',
  60. '/contact/'=>'ucenter/default/contact',
  61. '/wallet/'=>'ucenter/default/wallet',
  62. '/upsingle/'=>'ucenter/uploader/single',
  63. '/upcollect/'=>'ucenter/uploader/collect',
  64. '/upmulti/'=>'ucenter/uploader/multi',
  65. '/upsource/'=>'ucenter/uploader/source',
  66. '/writerindex/'=>'ucenter/writer/index',
  67. '/myupload/'=>'ucenter/writer/myupload',
  68. '/mydoc/'=>'ucenter/writer/mydoc',
  69. '/mysales/'=>'ucenter/writer/mysales',
  70. '/vip/'=>'web/default/vip',
  71. '/mycoms/'=>'ucenter/commission/index',
  72. '/comsteam/'=>'ucenter/commission/team',
  73. '/comsorders/'=>'ucenter/commission/orders',
  74. '/comslogs/'=>'ucenter/commission/logs',
  75. //用户中心(手机端)
  76. '/myinfo/'=>'ucenter/default/myinfo',
  77. '/changepwd/'=>'ucenter/default/changepwd',
  78. '/bindaccount/'=>'ucenter/default/bindaccount',
  79. '/tobindmp/'=>'ucenter/default/tobindmp',
  80. '/bindmpmsg/'=>'ucenter/default/bindmpmsg',
  81. '/bindmob/'=>'ucenter/default/bindmob',
  82. '/bindemail/'=>'ucenter/default/bindemail',
  83. '/income/'=>'ucenter/default/income',
  84. '/point2coin/'=>'ucenter/default/point2coin',
  85. '/coin2money/'=>'ucenter/default/coin2money',
  86. '/help/'=>'ucenter/default/help',
  87. '/report/'=>'ucenter/default/report',
  88. //文档列表
  89. '/doc/<id:\w+>/'=>'doc/default/detail',
  90. '/docs/<sch:[\w-]+>/p/<page:\d+>' =>'doc/default/list',
  91. '/docs/<sch:[\w-]+>/' =>'doc/default/list',
  92. '/docs/p/<page:\d+>' =>'doc/default/list',
  93. '/docs/'=>'doc/default/list',
  94. //合辑列表
  95. '/col/<id:\d+>/<sch:[\w-]+>/p/<page:\d+>' =>'doc/default/coldetail',
  96. '/col/<id:\d+>/<sch:[\w-]+>/' =>'doc/default/coldetail',
  97. '/col/<id:\d+>/p/<page:\d+>'=>'doc/default/coldetail',
  98. '/col/<id:\d+>/'=>'doc/default/coldetail',
  99. '/cols/<sch:[\w-]+>/p/<page:\d+>' =>'doc/default/collist',
  100. '/cols/<sch:[\w-]+>/' =>'doc/default/collist',
  101. '/cols/p/<page:\d+>' =>'doc/default/collist',
  102. '/cols/'=>'doc/default/collist',
  103. //搜索
  104. '/so/<model_id:\d+>-<kw:([^\/]+)>/<sch:[\w-]+>/p/<page:\d+>' => 'web/default/search',
  105. '/so/<model_id:\d+>-<kw:([^\/]+)>/<sch:[\w-]+>/' => 'web/default/search',
  106. '/so/<model_id:\d+>-<kw:([^\/]+)>/p/<page:\d+>' => 'web/default/search',
  107. '/so/<model_id:\d+>-<kw:([^\/]+)>/' => 'web/default/search',
  108. //标签
  109. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/<sch:[\w-]+>/p/<page:\d+>' => 'web/default/tag',
  110. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/<sch:[\w-]+>/' => 'web/default/tag',
  111. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/p/<page:\d+>' => 'web/default/tag',
  112. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/' => 'web/default/tag',
  113. '/tag/<pinyin:([^\/]+)>/<sch:[\w-]+>/p/<page:\d+>' => 'web/default/tag',
  114. '/tag/<pinyin:([^\/]+)>/<sch:[\w-]+>/' => 'web/default/tag',
  115. '/tag/<pinyin:([^\/]+)>/p/<page:\d+>' => 'web/default/tag',
  116. '/tag/<pinyin:([^\/]+)>/' => 'web/default/tag',
  117. //资讯
  118. '/news/<id:\w+>/'=>'cms/news/detail',
  119. '/newslist/<sch:[\w-]+>/p/<page:\d+>' =>'cms/news/list',
  120. '/newslist/<sch:[\w-]+>/' =>'cms/news/list',
  121. '/newslist/p/<page:\d+>' =>'cms/news/list',
  122. '/newslist/'=>'cms/news/list',
  123. '/newshome/'=>'cms/news/home',
  124. //单页
  125. '/page/c<cat_id:\d+>' => 'web/default/page',
  126. '/page/' => 'web/default/page',
  127. '/announce/<id:\d+>' => 'web/default/announce',
  128. '/announce/' => 'web/default/announce',
  129. //个人主页
  130. '/uhome/<user_id:\d+>/<sch:[\w-]+>/p/<page:\d+>' =>'web/default/uhome',
  131. '/uhome/<user_id:\d+>/<sch:[\w-]+>/' =>'web/default/uhome',
  132. '/uhome/<user_id:\d+>/p/<page:\d+>' => 'web/default/uhome',
  133. '/uhome/<user_id:\d+>/' => 'web/default/uhome',
  134. //下载落地页
  135. '/linkdown/' => 'web/default/linkdown',
  136. //下面是系统不可缺少的
  137. 'avt/<width:\d+>/<height:\d+>/<hash:\w+>.jpg' => 'site/makethumb',
  138. 'p/<width:\d+>/<height:\d+>/<hash:\w+>.jpg' => 'site/makethumb',
  139. //百度推送地址
  140. '/baidu/' => 'web/sitemap/baidu',
  141. //网站地图
  142. [
  143. 'pattern' => 'web/sitemap',
  144. 'route' => 'web/sitemap/sitemap',
  145. 'suffix' => '.xml',
  146. ],
  147. [
  148. 'pattern' => 'web/sitemap1',
  149. 'route' => 'web/sitemap/sitemap1',
  150. 'suffix' => '.xml',
  151. ],
  152. ];