{eyou:assign name='page' value='article-detail' /} {eyou:php} $route_param = request()->route(); $tid = $route_param['tid']?(int)$route_param['tid']:0; //var_dump($route_param); $number = $route_param['aid']; //处理域名获取当前域名名称 $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'; } //处理城市参数 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='$site'" cachetime='3600' id='res'} {eyou:assign name='provid' value="$res.id" /} {eyou:assign name='provid_name' value="$res.name" /} {/eyou:sql} {eyou:sql sql="select * from ey_citysite where domain='$city_domain'" cachetime='3600' id='res'} {eyou:assign name='cityid' value="$res.id" /} {eyou:assign name='cityid_name' value="$res.name" /} {/eyou:sql} {eyou:if condition='((int)$eyou.field.typeid === 127 && empty($eyou["field"]["seo_title"]))'} {eyou:php} //如果是职称论文参考 $seo_title = '职称论文模板_'.$eyou['field']['title']; $key_keywords = $eyou['field']['title'].",职称论文"; $content_sql = $eyou['field']['content_5']; //处理字符串 $processedString = strip_tags_and_substr($content_sql, 70); $desc_ription = $processedString; {/eyou:php} {eyou:else /} {eyou:if condition='(empty($eyou["field"]["seo_title"]))'} {eyou:php} //如果是其他栏目文章 且 默认seo为空 //评审攻略 //职称答辩 //职称补贴 //职称评审常见问题 //职称评审政策资讯 $seo_title = $eyou['field']['title']; $key_keywords = $eyou['field']['title']; $content_sql = $eyou['field']['content_5']; //处理字符串 $processedString = strip_tags_and_substr($content_sql, 70); $desc_ription = $processedString; {/eyou:php} {/eyou:if} {/eyou:if}