rules_html.php 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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. [
  90. 'pattern' => '/doc/<id:\w+>/',
  91. 'route' => 'doc/default/detail',
  92. 'suffix' => '.html',
  93. ],
  94. [
  95. 'pattern' => '/docs/<sch:[\w-]+>/p/<page:\d+>',
  96. 'route' => 'doc/default/list',
  97. 'suffix' => '.html',
  98. ],
  99. [
  100. 'pattern' => '/docs/<sch:[\w-]+>/',
  101. 'route' => 'doc/default/list',
  102. 'suffix' => '.html',
  103. ],
  104. [
  105. 'pattern' => '/docs/p/<page:\d+>',
  106. 'route' => 'doc/default/list',
  107. 'suffix' => '.html',
  108. ],
  109. [
  110. 'pattern' => '/docs/',
  111. 'route' => 'doc/default/list',
  112. 'suffix' => '.html',
  113. ],
  114. //合辑列表
  115. [
  116. 'pattern' => '/col/<id:\d+>/<sch:[\w-]+>/p/<page:\d+>',
  117. 'route' => 'doc/default/coldetail',
  118. 'suffix' => '.html',
  119. ],
  120. [
  121. 'pattern' => '/col/<id:\d+>/<sch:[\w-]+>/',
  122. 'route' => 'doc/default/coldetail',
  123. 'suffix' => '.html',
  124. ],
  125. [
  126. 'pattern' => '/col/<id:\d+>/p/<page:\d+>',
  127. 'route' => 'doc/default/coldetail',
  128. 'suffix' => '.html',
  129. ],
  130. [
  131. 'pattern' => '/col/<id:\d+>/',
  132. 'route' => 'doc/default/coldetail',
  133. 'suffix' => '.html',
  134. ],
  135. [
  136. 'pattern' => '/cols/<sch:[\w-]+>/p/<page:\d+>',
  137. 'route' => 'doc/default/collist',
  138. 'suffix' => '.html',
  139. ],
  140. [
  141. 'pattern' => '/cols/<sch:[\w-]+>/',
  142. 'route' => 'doc/default/collist',
  143. 'suffix' => '.html',
  144. ],
  145. [
  146. 'pattern' => '/cols/p/<page:\d+>',
  147. 'route' => 'doc/default/collist',
  148. 'suffix' => '.html',
  149. ],
  150. [
  151. 'pattern' => '/cols/',
  152. 'route' => 'doc/default/collist',
  153. 'suffix' => '.html',
  154. ],
  155. //搜索
  156. '/so/<model_id:\d+>-<kw:([^\/]+)>/<sch:[\w-]+>/p/<page:\d+>' => 'web/default/search',
  157. '/so/<model_id:\d+>-<kw:([^\/]+)>/<sch:[\w-]+>/' => 'web/default/search',
  158. '/so/<model_id:\d+>-<kw:([^\/]+)>/p/<page:\d+>' => 'web/default/search',
  159. '/so/<model_id:\d+>-<kw:([^\/]+)>/' => 'web/default/search',
  160. //标签
  161. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/<sch:[\w-]+>/p/<page:\d+>' => 'web/default/tag',
  162. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/<sch:[\w-]+>/' => 'web/default/tag',
  163. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/p/<page:\d+>' => 'web/default/tag',
  164. '/tag/<model_id:\d+>-<pinyin:([^\/]+)>/' => 'web/default/tag',
  165. '/tag/<pinyin:([^\/]+)>/<sch:[\w-]+>/p/<page:\d+>' => 'web/default/tag',
  166. '/tag/<pinyin:([^\/]+)>/<sch:[\w-]+>/' => 'web/default/tag',
  167. '/tag/<pinyin:([^\/]+)>/p/<page:\d+>' => 'web/default/tag',
  168. '/tag/<pinyin:([^\/]+)>/' => 'web/default/tag',
  169. //资讯
  170. [
  171. 'pattern' => '/news/<id:\w+>/',
  172. 'route' => 'cms/news/detail',
  173. 'suffix' => '.html',
  174. ],
  175. [
  176. 'pattern' => '/newslist/<sch:[\w-]+>/p/<page:\d+>',
  177. 'route' => 'cms/news/list',
  178. 'suffix' => '.html',
  179. ],
  180. [
  181. 'pattern' => '/newslist/<sch:[\w-]+>/',
  182. 'route' => 'cms/news/list',
  183. 'suffix' => '.html',
  184. ],
  185. [
  186. 'pattern' => '/newslist/p/<page:\d+>',
  187. 'route' => 'cms/news/list',
  188. 'suffix' => '.html',
  189. ],
  190. [
  191. 'pattern' => '/newslist/',
  192. 'route' => 'cms/news/list',
  193. 'suffix' => '.html',
  194. ],
  195. [
  196. 'pattern' => '/newshome/',
  197. 'route' => 'cms/news/home',
  198. 'suffix' => '.html',
  199. ],
  200. //单页
  201. '/page/c<cat_id:\d+>' => 'web/default/page',
  202. '/page/' => 'web/default/page',
  203. '/announce/<id:\d+>' => 'web/default/announce',
  204. '/announce/' => 'web/default/announce',
  205. //个人主页
  206. '/uhome/<user_id:\d+>/<sch:[\w-]+>/p/<page:\d+>' =>'web/default/uhome',
  207. '/uhome/<user_id:\d+>/<sch:[\w-]+>/' =>'web/default/uhome',
  208. '/uhome/<user_id:\d+>/p/<page:\d+>' => 'web/default/uhome',
  209. '/uhome/<user_id:\d+>/' => 'web/default/uhome',
  210. //下载落地页
  211. '/linkdown/' => 'web/default/linkdown',
  212. //下面是系统不可缺少的
  213. 'avt/<width:\d+>/<height:\d+>/<hash:\w+>.jpg' => 'site/makethumb',
  214. 'p/<width:\d+>/<height:\d+>/<hash:\w+>.jpg' => 'site/makethumb',
  215. //百度推送地址
  216. '/baidu/' => 'web/sitemap/baidu',
  217. //网站地图
  218. [
  219. 'pattern' => 'web/sitemap',
  220. 'route' => 'web/sitemap/sitemap',
  221. 'suffix' => '.xml',
  222. ],
  223. [
  224. 'pattern' => 'web/sitemap1',
  225. 'route' => 'web/sitemap/sitemap1',
  226. 'suffix' => '.xml',
  227. ],
  228. ];