{eyou:php} $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} $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}