{eyou:assign name='page' value='down' /} {eyou:php} $route_param = request()->route(); $pa = $route_param['pa']?(int)$route_param['pa']:1; //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);die; if(!empty($site) || $site != 'zc' || $site != 'www'){ //判定为二级域名 }else{ $site = 'www'; } {/eyou:php} {eyou:if condition='($site == "www")'} {eyou:assign name='provid' value="0" /} {eyou:assign name='provid_name' value="山东" /} {eyou:else /} {eyou:sql sql="select * from ey_citysite where domain='$site'" cachetime='3600' empty='没有数据' id='res'} {eyou:assign name='provid' value="$res.id" /} {eyou:assign name='provid_name' value="$res.name" /} {/eyou:sql} {/eyou:if}