} else {
$where['id'] = intval($dir);
}
/*根据栏目id查询页面*/
$column = Column::where($where)->find();
View::assign('column', $column);
if(empty($column['image'])){
$wherec['lang'] = $lang;
$wherec['status'] = 1;
$wherec['model_id'] = $column['model_id'];
$wherec['parent_id'] = 0;
$column_p = Column::where($wherec)->find();
$column['image'] = empty($column['image']) ? $column_p['image'] : $column['image'];
$column['sub_title'] = empty($column['sub_title']) ? $column_p['sub_title'] : $column['sub_title'];
$column['description'] = empty($column['description']) ? $column_p['description'] : $column['description'];
$column['out_link'] = empty($column['out_link']) ? $column_p['out_link'] : $column['out_link'];
$column['seo_title'] = empty($column['seo_title']) ? $column_p['seo_title'] : $column['seo_title'];
$column['phone_pic'] = empty($column['phone_pic']) ? $column_p['phone_pic'] : $column['phone_pic'];
}