{eyou:assign name='page' value='article_list' /} {eyou:php} $route_param = request()->route(); //var_dump($route_param); $tid = $route_param['tid']?(int)$route_param['tid']:0; $tagid = $route_param['tagid']?(int)$route_param['tagid']:0; //处理域名获取当前域名名称 $route_domain = request()->domain(); $domain = explode('//',$route_domain); $domain = explode('.',$domain[1]); $site = $domain[0]; //var_dump($site); if(!empty($site) && $site != 'zc' && $site != 'www'){ //判定为二级域名 }else{ $site = 'www'; } {/eyou:php} {eyou:if condition='($tid === 117 && empty($eyou["field"]["seo_title"]))'} {eyou:php} //评审攻略 没有规则 {/eyou:php} {eyou:else /} {/eyou:if} {eyou:php} if(!empty($site) && $site != 'zc' && $site != 'www'){ //判定为二级域名 $area_name = ''; $sql2 = "SELECT id,name FROM ey_citysite WHERE domain = '".$site."'"; }else{ $site = 'www'; } {/eyou:php} {eyou:if condition='(!empty($sql2))'} {eyou:sql sql='$sql2' cachetime='3600' id='area'} {eyou:php} //var_dump($sql2); $area_name = ''.$area['name'].''; $area_id = ''.$area['id'].''; {/eyou:php} {/eyou:sql} {/eyou:if} {eyou:assign name='provid' value="$area_id" /} {eyou:assign name='provid_name' value="$area_name" /} {eyou:php} //处理城市参数 if(!empty($route_param['site'])){ $city_domain = $route_param['site']; }else{ $city_domain = 'none'; } {/eyou:php} {eyou:sql sql="select * from ey_citysite where domain='$city_domain'" cachetime='3600' empty='' id='res'} {eyou:assign name='cityid' value="$res.id" /} {eyou:assign name='cityid_name' value="$res.name" /} {/eyou:sql}