123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687 |
- <?php
-
-
- use think\Route;
-
-
- $route_ext_pattern = [
- 'tid' => '[\d]+',
- 'dirname' => '[\-\w]+',
- 'aid' => '[\d]+',
- ];
-
- $route_ext = [];
-
-
-
- function get_tid_map() {
- $tid_map = [
- 'zczl' => '38',
- '38' => 'zczl',
- 'gonglve' => '117',
- '117' => 'gonglve',
-
- 'zclw' => '116',
- '116' => 'zclw',
- 'lwck' => '127',
- '127' => 'lwck',
-
- 'fpzn' => '131',
- '131' => 'fpzn',
- 'zcdb' => '132',
- '132' => 'zcdb',
- 'lnzt' => '133',
- '133' => 'lnzt',
- 'wthz' => '111',
- '111' => 'wthz',
- 'zlwd' => '125',
- '125' => 'zlwd',
- 'zcbt' => '306',
- '306' => 'zcbt',
-
- 'zcsb' => '118',
- '118' => 'zcsb',
- 'anli' => '120',
- '120' => 'anli',
- 'xgwt' => '122',
- '122' => 'xgwt',
-
- 'zx' => '1231',
- '1231' => 'zx',
- 'zc' => '1232',
- '1232' => 'zc',
- 'cl' => '1233',
- '1233' => 'cl',
- 'cp' => '1234',
- '1234' => 'cp',
- 'tg' => '1235',
- '1235' => 'tg',
- 'tglist' => '1236',
- '1236' => 'tglist',
-
-
- 'zhengce' => '115',
- '115' => 'zhengce',
- ];
-
- return $tid_map;
- }
-
-
- function get_tid_url($tid = 0, $aid = 0,$module = 'home', $controller = 'lists', $action = 'index') {
-
-
-
-
- if ($tid <= 0) {
- return false;
- }
-
- $tid_map = get_tid_map();
-
- $module = strtolower($module);
- $controller = strtolower($controller);
- $action = strtolower($action);
-
-
- if ($aid > 0) {
- if ($module == 'home' && $controller == 'view' && $action == 'index') {
- if (array_key_exists($tid, $tid_map)) {
- switch ($tid_map[$tid]) {
- case 'zczl':
- return "/" . $tid_map[$tid] . "/jzzc" . $aid;
- break;
- case 'gonglve':
- case 'zclw':
- case 'wthz':
- return "/" . $tid_map[$tid] . $aid;
- break;
- case 'fpzn':
- case 'zcdb':
- case 'lntz':
- case 'zhengce':
- return "/" . $tid_map[$tid] . "/cms" . $aid;
- }
-
- }
- }
- } else {
- if ($module == 'home' && $controller == 'lists' && $action == 'index') {
- if (array_key_exists($tid, $tid_map)) {
- return "/" . $tid_map[$tid];
- }
- }
- }
-
-
- return false;
- }
-
-
-
- function set_route_ext()
- {
- $tid_map = get_tid_map();
-
-
- $sub_doman = request()->subDomain();
- $home_site = get_home_site();
-
-
-
-
-
-
- Route::get('sitemap$','home/City/fileMapHandle',['ext'=>'|txt|xml']);
-
-
-
-
- if (empty($sub_doman) || $sub_doman == "www" || $sub_doman == "zc.dev") {
-
- Route::get([
-
-
- 'zx$' => 'home/Lists/index?tid=' . $tid_map['zx'],
- 'zx-<page>$' => ['home/Lists/index?tid='.$tid_map['zx'], [], ['page' => '[\d]+']],
- 'zx<aid>$' => ['home/View/index?tid=' . $tid_map['zx'], [], ['aid' => '[\d]+']],
-
- 'zc$' => 'home/Lists/index?tid=' . $tid_map['zc'],
- 'zc-<page>$' => ['home/Lists/index?tid='.$tid_map['zc'], [], ['page' => '[\d]+']],
- 'zc/<areaname>$' => ['home/Lists/index?tid=' . $tid_map['zc'],[],['areaname' => "[\w]+"]],
- 'zc/<areaname>-<page>$' => ['home/Lists/index?tid=' . $tid_map['zc'],[],['areaname' => "[\w]+",'page'=>'[\d]+']],
- 'zc/<areaname>/<aid>$' => ['home/View/index?tid=' . $tid_map['zc'], [], ['areaname' => "[\w]+",'aid' => '[\d]+']],
-
-
- 'cl$' => 'home/Lists/index?tid=' . $tid_map['cl'],
- 'cl-<page>$' => ['home/Lists/index?tid='.$tid_map['cl'], [], ['page' => '[\d]+']],
- 'cl/<aid>$' => ['home/View/index?tid=' . $tid_map['cl'], [], ['aid' => '[\d]+']],
-
-
- 'cp$' => 'home/Lists/index?tid=' . $tid_map['cp'],
- 'cp-<page>$' => ['home/Lists/index?tid='.$tid_map['cp'], [], ['page' => '[\d]+']],
- 'cp<aid>$' => ['home/View/index?tid=' . $tid_map['cp'], [], ['aid' => '[\d]+']],
-
-
- 'taglist$' => 'home/Lists/index?tid=' . $tid_map['tglist'],
- 'taglist-<page>$' => ['home/Lists/index?tid='.$tid_map['tglist'], [], ['page' => '[\d]+']],
- 'tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['tg'],[], ['tagid' => '[\d]+']],
- 'tag<tagid>-<page>$' => ['home/Lists/index?tid='.$tid_map['tg'], [], ['tagid' => '[\d]+','page' => '[\d]+']],
-
-
-
-
- 'zczl$' => 'home/Lists/index?tid=' . $tid_map['zczl'],
- 'zczl-<pa>$' => ['home/Lists/index?tid='.$tid_map['zczl'], [], ['pa' => '[\d]+']],
-
-
-
- 'zczl/jzzc<areaid>$' => ['home/Lists/index?tid=38', [], ['areaid' => '[\d]+']],
- 'zczl/jzzc<areaid>-<pa>$' => ['home/Lists/index?tid=38', [], ['areaid' => '[\d]+','pa' => '[\d]+']],
-
-
-
-
- 'id<catids>$' => ['home/Lists/index?tid=56', [], ['catids' => '[\d]+']],
- 'id<catids>h<pa>$' => ['home/Lists/index?tid=56', [], ['catids' => '[\d]+','pa' => '[\d]+']],
- 'id<cid>/sid<catids>$' => ['home/Lists/index?tid=56', [], ['cid' => '[\d]+','catids' => '[\d]+']],
- 'id<cid>/sid<catids>h<pa>$' => ['home/Lists/index?tid=56', [], ['cid' => '[\d]+','catids' => '[\d]+','pa' => '[\d]+']],
-
-
-
- 'gonglve$' => 'home/Lists/index?tid=' . $tid_map['gonglve'],
- 'gonglve/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'gonglve/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'gonglve1-<aid>$' => ['home/View/index?tid=' . $tid_map['gonglve'], [], ['aid' => '[\d]+']],
- 'gonglve-<page>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['page' => '[\d]+']],
-
-
- 'zclw$' => 'home/Lists/index?tid=' . $tid_map['zclw'],
- 'zclw/lunwen<aid>$' => ['home/View/index?tid=' . $tid_map['zclw'], [], ['aid' => '[\d]+']],
- 'zclw-<page>$' => ['home/Lists/index?tid=' . $tid_map['zclw'], [], ['page' => '[\d]+']],
-
-
- 'lwck$' => 'home/Lists/index?tid=' . $tid_map['lwck'],
- 'lwck/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['lwck'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'lwck/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['lwck'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'lwck/cankao<aid>$' => ['home/View/index?tid=' . $tid_map['lwck'], [], ['aid' => '[\d]+']],
- 'lwck-<page>$' => ['home/Lists/index?tid=' . $tid_map['lwck'], [], ['page' => '[\d]+']],
-
-
- 'fpzn$' => 'home/Lists/index?tid=' . $tid_map['fpzn'],
- 'fpzn/cms<aid>$' => ['home/View/index?tid=' . $tid_map['fpzn'], [], ['aid' => '[\d]+']],
- 'fpzn-<page>$' => ['home/Lists/index?tid=' . $tid_map['fpzn'], [], ['page' => '[\d]+']],
-
- 'zcdb$' => 'home/Lists/index?tid=' . $tid_map['zcdb'],
- 'zcdb/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zcdb'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'zcdb/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['zcdb'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'zcdb1-<aid>$' => ['home/View/index?tid=' . $tid_map['zcdb'], [], ['aid' => '[\d]+']],
- 'zcdb-<page>$' => ['home/Lists/index?tid=' . $tid_map['zcdb'], [], ['page' => '[\d]+']],
-
- 'lnzt$' => 'home/Lists/index?tid=' . $tid_map['lnzt'],
- 'lnzt/cms<aid>$' => ['home/View/index?tid=' . $tid_map['lnzt'], [], ['aid' => '[\d]+']],
- 'lnzt-<page>$' => ['home/Lists/index?tid=' . $tid_map['lnzt'], [], ['page' => '[\d]+']],
-
-
- 'wthz$' => 'home/Lists/index?tid=' . $tid_map['wthz'],
- 'wthz<aid>$' => ['home/View/index?tid=' . $tid_map['wthz'], [], ['aid' => '[\d]+']],
- 'wthz-<page>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['page' => '[\d]+']],
- 'wthz/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'wthz/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
-
-
- 'zcbt$' => 'home/Lists/index?tid=' . $tid_map['zcbt'],
- 'zcbt/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zcbt'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'zcbt/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['zcbt'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'zcbt<aid>$' => ['home/View/index?tid=' . $tid_map['zcbt'], [], ['aid' => '[\d]+']],
- 'zcbt-<page>$' => ['home/Lists/index?tid=' . $tid_map['zcbt'], [], ['page' => '[\d]+']],
-
-
- 'zcsb$' => 'home/Lists/index?tid=' . $tid_map['zcsb'],
- 'zcsb<aid>$' => ['home/View/index?tid=' . $tid_map['zcsb'], [], ['aid' => '[\d]+']],
- 'zcsb-<page>$' => ['home/Lists/index?tid=' . $tid_map['zcsb'], [], ['page' => '[\d]+']],
-
- 'anli$' => 'home/Lists/index?tid=' . $tid_map['anli'],
- 'anli/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['anli'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'anli/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['anli'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'anli<aid>$' => ['home/View/index?tid=' . $tid_map['anli'], [], ['aid' => '[\d]+']],
- 'anli-<page>$' => ['home/Lists/index?tid=' . $tid_map['anli'], [], ['page' => '[\d]+']],
-
- 'xgwt$' => 'home/Lists/index?tid=' . $tid_map['xgwt'],
- 'xgwt<aid>$' => ['home/View/index?tid=' . $tid_map['xgwt'], [], ['aid' => '[\d]+']],
- 'xgwt-<page>$' => ['home/Lists/index?tid=' . $tid_map['xgwt'], [], ['page' => '[\d]+']],
-
-
- 'zccl$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=5',
- 'zccl-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=5', [], ['pa' => '[\d]+']],
-
- 'zccl/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=5',[],['tagid'=>'[\d]+']],
- 'zccl/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=5', [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- '<areaname>_zccl$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=5',
- '<areaname>_zccl-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=5', [], ['areaname' => "[\w]+",'pa' => '[\d]+']],
-
- '<areaname>_zccl/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=5',[],['areaname' => "[\w]+",'tagid'=>'[\d]+']],
- '<areaname>_zccl/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=5', [], ['areaname' => "[\w]+",'tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
-
- 'zlwd$' => 'home/Lists/index?tid=' . $tid_map['zlwd'],
- 'zlwd-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'], [], ['pa' => '[\d]+']],
-
- 'zlwd/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'],[],['tagid'=>'[\d]+']],
- 'zlwd/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'], [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- '<areaname>_zlwd$' => 'home/Lists/index?tid=' . $tid_map['zlwd'],
- '<areaname>_zlwd-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'], [], ['areaname' => "[\w]+",'pa' => '[\d]+']],
-
- '<areaname>_zlwd/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'],[],['areaname' => "[\w]+",'tagid'=>'[\d]+']],
- '<areaname>_zlwd/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'], [], ['areaname' => "[\w]+",'tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- 'zcwj$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=2',
- 'zcwj-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=2', [], ['pa' => '[\d]+']],
-
- 'zcwj/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=2',[],['tagid'=>'[\d]+']],
- 'zcwj/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=2', [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- '<areaname>_zcwj$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=2',
- '<areaname>_zcwj-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=2', [], ['areaname' => "[\w]+",'pa' => '[\d]+']],
-
- '<areaname>_zcwj/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=2',[],['areaname' => "[\w]+",'tagid'=>'[\d]+']],
- '<areaname>_zcwj/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=2', [], ['areaname' => "[\w]+",'tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
-
- 'zlwd/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+']],
- 'zlwd/cms<aid>-<pa>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+','pa' => '[\d]+']],
-
- 'zcwj/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+']],
- 'zcwj/cms<aid>-<pa>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+','pa' => '[\d]+']],
-
- 'ckwj/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+']],
- 'ckwj/cms<aid>-<pa>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+','pa' => '[\d]+']],
-
-
- 'ckwj$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=3',
- 'ckwj-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=3', [], ['pa' => '[\d]+']],
- 'ckwj/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=3',[],['tagid'=>'[\d]+']],
- 'ckwj/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=3', [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- 'zlwd<aid>$' => ['home/View/index?tid='.$tid_map['zlwd'], [], ['aid' => '[\d]+']],
- 'zlwd-c<catid>-p<provid>-y<cityid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'], [], ['catid' => '[\d]+','provid' => '[\d]+','cityid' => '[\d]+']],
-
-
-
-
-
-
- 'zhengce$' => 'home/Lists/index?tid=' . $tid_map['zhengce'],
- 'zhengce-<page>$' => ['home/Lists/index?tid='.$tid_map['zhengce'], [], ['page' => '[\d]+']],
- 'zhengce/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zhengce'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'zhengce/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['zhengce'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'zhengce/cms<aid>$' => ['home/View/index?tid='.$tid_map['zhengce'], [], ['aid' => '[\d]+']],
-
-
- 'zczl/jzzc<tid>/<aid>$' => ['home/View/index?', [], ['tid' => '[\d]+','aid' => '[\d]+']],
-
-
- 'zhengcefabu/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'gongshichaxun/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshenshijian/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshentiaojian/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'shenbaozhidao/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'lunwenzhuanli/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'zhichengongzhong/gongchengshigongzhong/zhuligongchengshi/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'zhichengongzhong/gongchengshigongzhong/zhongjigongchengshi/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'zhichengongzhong/gongchengshigongzhong/gaojigongchengshi/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'changjianwenti/zhichenshenbaozhuyishixiang/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'lunwenzhuanli/zhichenpingshenlunwenfabiao/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'lunwenzhuanli/zhichenpingshenzhuanlishenqing/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'lunwenzhuanli/zhichenpingshenkejichengguo/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshentiaojian/chujizhichenpingshentiaojian/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshentiaojian/zhongjizhichenpingshentiaojian/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshentiaojian/gaojizhichenpingshentiaojian/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshentiaojian/zhenggaojizhichenpingshentiaojian/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshentiaojian/pingshenyiwenjieda/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshengonglue/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshengonglue/zhichenlunwen/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
- 'pingshengonglue/zhichenzhuanli/<aid>$' => ['home/City/tourl?', [], ['aid' => '[\d]+']],
-
-
- '<site>$' => ['home/City/tourl?', [], ['site' => "[\w]+"]],
- 'baidu_verify_codeva-<number>$' => ['home/City/fileHandle?', [], ['number' => '[\w]+']],
-
- ]);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- } else {
-
-
-
-
- if ($sub_doman == $home_site) {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Route::get([
-
- 'zhengce$' => 'home/Lists/index?tid=' . $tid_map['zhengce'],
- 'zhengce-<page>$' => ['home/Lists/index?tid='.$tid_map['zhengce'], [], ['page' => '[\d]+']],
- 'zhengce/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zhengce'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'zhengce/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['zhengce'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
-
- 'zhengce/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zhengce'], [], ['aid' => '[\d]+']],
-
-
-
- 'wthz$' => 'home/Lists/index?tid=' . $tid_map['wthz'],
- 'wthz<aid>$' => ['home/View/index?tid=' . $tid_map['wthz'], [], ['aid' => '[\d]+']],
- 'wthz-<page>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['page' => '[\d]+']],
- 'wthz/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'wthz/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
-
-
-
- 'zccl$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=5',
- 'zccl-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=5', [], ['pa' => '[\d]+']],
-
- 'zccl/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=5',[],['tagid'=>'[\d]+']],
- 'zccl/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=5', [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- 'zlwd$' => 'home/Lists/index?tid=' . $tid_map['zlwd'],
- 'zlwd-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'], [], ['pa' => '[\d]+']],
- 'zlwd/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'],[],['tagid'=>'[\d]+']],
- 'zlwd/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'], [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- 'zcwj$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=2',
- 'zcwj-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=2', [], ['pa' => '[\d]+']],
- 'zcwj/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=2',[],['tagid'=>'[\d]+']],
- 'zcwj/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=2', [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- 'ckwj$' => 'home/Lists/index?tid=' . $tid_map['zlwd'].'&type=3',
- 'ckwj-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=3', [], ['pa' => '[\d]+']],
- 'ckwj/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'].'&type=3',[],['tagid'=>'[\d]+']],
- 'ckwj/tag<tagid>-<pa>$' => ['home/Lists/index?tid='.$tid_map['zlwd'].'&type=3', [], ['tagid'=>'[\d]+','pa' => '[\d]+']],
-
-
- 'zlwd/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+']],
- 'zlwd/cms<aid>-<pa>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+','pa' => '[\d]+']],
-
- 'zcwj/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+']],
- 'zcwj/cms<aid>-<pa>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+','pa' => '[\d]+']],
-
- 'ckwj/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+']],
- 'ckwj/cms<aid>-<pa>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['aid' => '[\d]+','pa' => '[\d]+']],
-
-
- 'zlwd/zccp<catid>$' => ['home/Lists/index?tid='.$tid_map['zlwd'], [], ['catid' => '[\d]+']],
-
- 'zlwd/zccp<catid>/cms<aid>$' => ['home/View/index?tid='.$tid_map['zlwd'], [], ['catid' => '[\d]+','aid'=>'[\d]+']],
- 'zlwd/zccp<catid>/cms<aid>-<pa>$' => ['home/View/index?tid='.$tid_map['zlwd'], [], ['catid' => '[\d]+','aid'=>'[\d]+','pa'=>'[\d]+']],
-
-
- 'gonglve$' => 'home/Lists/index?tid=' . $tid_map['gonglve'],
- 'gonglve1-<aid>$' => ['home/View/index?tid=' . $tid_map['gonglve'], [], ['aid' => '[\d]+']],
- 'gonglve-<page>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['page' => '[\d]+']],
- 'gonglve/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
- 'gonglve/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['page' => '[\d]+','tagid' => '[\d]+']],
-
-
- 'gonglve/<site>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['site' => "[\w]+"]],
- 'gonglve1-<aid>/<site>$' => ['home/View/index?tid=' . $tid_map['gonglve'], [], ['site' => "[\w]+", 'aid' => '[\d]+']],
-
- 'id<catids>$' => ['home/Lists/index?tid=56', [], ['catids' => '[\d]+']],
- 'id<catids>h<pa>$' => ['home/Lists/index?tid=56', [], ['catids' => '[\d]+','pa' => '[\d]+']],
-
- 'id<cid>/sid<catids>$' => ['home/Lists/index?tid=56', [], ['cid' => '[\d]+','catids' => '[\d]+']],
- 'id<cid>/sid<catids>h<pa>$' => ['home/Lists/index?tid=56', [], ['cid' => '[\d]+','catids' => '[\d]+','pa' => '[\d]+']],
-
-
-
-
-
-
-
- ]);
- } else {
-
-
- if ($sub_doman == "zcdp") {
-
-
-
-
-
-
-
-
- Route::get([
- '/$' => 'home/Lists/index?tid=136',
- ]);
- } elseif ($sub_doman == "zczl") {
-
-
-
-
-
-
-
-
-
- Route::get([
-
- '/$' => 'home/Guestbook/lists?tid=134',
- ]);
- }else{
-
-
-
-
-
-
-
- Route::get([
-
-
- '<site>/zhengce$' => 'home/Lists/index?tid=' . $tid_map['zhengce'],
- '<site>/zhengce/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['zhengce'], [], ['site' => "[\w]+",'page' => '[\d]+','tagid' => '[\d]+']],
- '<site>/zhengce/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['zhengce'], [], ['site' => "[\w]+",'page' => '[\d]+','tagid' => '[\d]+']],
- '<site>/zhengce-<page>$' => ['home/Lists/index?tid='.$tid_map['zhengce'], [], ['site' => "[\w]+",'page' => '[\d]+']],
-
- '<site>/zhengce/cms<aid>$' => ['home/View/index?tid='.$tid_map['zhengce'], [], ['site' => "[\w]+",'aid' => '[\d]+']],
-
-
- '<site>/gonglve$' => 'home/Lists/index?tid=' . $tid_map['gonglve'],
- '<site>/gonglve1-<aid>$' => ['home/View/index?tid=' . $tid_map['gonglve'], [], ['site' => "[\w]+",'aid' => '[\d]+']],
- '<site>/gonglve-<page>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['site' => "[\w]+",'page' => '[\d]+']],
- '<site>/gonglve/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['site' => "[\w]+",'page' => '[\d]+','tagid' => '[\d]+']],
- '<site>/gonglve/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['gonglve'], [], ['site' => "[\w]+",'page' => '[\d]+','tagid' => '[\d]+']],
-
-
- '<site>/wthz$' => 'home/Lists/index?tid=' . $tid_map['wthz'],
- '<site>/wthz<aid>$' => ['home/View/index?tid=' . $tid_map['wthz'], [], ['site' => "[\w]+",'aid' => '[\d]+']],
- '<site>/wthz-<page>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['site' => "[\w]+",'page' => '[\d]+']],
- '<site>/wthz/tag<tagid>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['site' => "[\w]+",'page' => '[\d]+','tagid' => '[\d]+']],
- '<site>/wthz/tag<tagid>-<page>$' => ['home/Lists/index?tid=' . $tid_map['wthz'], [], ['site' => "[\w]+",'page' => '[\d]+','tagid' => '[\d]+']],
-
-
-
-
-
- '<site>$' => ['home/City/chenshi?tid=139', [], ['site' => "[\w]+"]],
-
-
- '<site>/zlwd/cms<aid>$' => ['home/View/index?tid='.$tid_map['zlwd'], [], ['site' => "[\w]+",'aid' => '[\d]+']],
- '<site>/zlwd/cms<aid>-<pa>$' => ['home/View/index?tid='.$tid_map['zlwd'], [], ['site' => "[\w]+",'aid' => '[\d]+','pa' => '[\d]+']],
-
-
-
- '<site>/zlwd$' => ['home/Lists/index?tid=' . $tid_map['zlwd'], [], ['site' => "[\w]+"]],
-
- '<site>/zlwd/zccp<catid>$' => ['home/Lists/index?tid=' . $tid_map['zlwd'], [], ['site' => "[\w]+",'catid' => '[\d]+']],
-
- '<site>/zlwd/zccp<catid>/cms<aid>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['site' => "[\w]+",'catid' => '[\d]+','aid' => '[\d]+']],
- '<site>/zlwd/zccp<catid>/cms<aid>-<pa>$' => ['home/View/index?tid=' . $tid_map['zlwd'], [], ['site' => "[\w]+",'catid' => '[\d]+','aid' => '[\d]+','pa' => '[\d]+']],
- ]);
- }
- }
- }
-
-
-
-
- }
-
- return $route_ext;
|