{eyou:assign name='page' value='zccat' /} {eyou:php} $route_param = request()->route(); //var_dump($param); $areaid = $route_param['areaid']?(int)$route_param['areaid']:0; $number = $areaid; //var_dump($areaid); {/eyou:php} {eyou:if condition='((int)$areaid === 0)'} {eyou:php} $areaid = 0; {/eyou:php} {eyou:elseif condition='((int)$areaid === 32)' /} {eyou:php} $areaid = 10000; {/eyou:php} {eyou:else /} {eyou:php} $sql = "SELECT aid FROM ey_seo_number WHERE number = $areaid and type=3"; {/eyou:php} {eyou:sql sql='$sql' cachetime='3600' id='seo'} {eyou:php} $areaid = $seo['aid']; {/eyou:php} {/eyou:sql} {/eyou:if} {eyou:php} $sql = "SELECT aid,seo_title,seo_keywords,seo_description FROM ey_archives WHERE typeid=51674 and province_id=$areaid and is_del=0 and status=1 and arcrank=0"; {/eyou:php} {eyou:sql sql='$sql' cachetime='3600' id='seo_cat'} {eyou:notempty name='$seo_cat' /} {eyou:php} $seo_title = $seo_cat['seo_title']; $seo_keywords = $seo_cat['seo_keywords']; $seo_description = $seo_cat['seo_description']; {/eyou:php} {/eyou:notempty} {/eyou:sql} {eyou:php} $area_name = ''; $sql = "SELECT id,name FROM ey_citysite WHERE id = $areaid"; {/eyou:php} {eyou:sql sql='$sql' cachetime='3600' id='area'} {eyou:php} $area_name = ''.$area['name'].''; {/eyou:php} {/eyou:sql}