{
if ($id) {
$info = News::get_new(24, $id);
if ($info == null) {
throw new \think\exception\HttpException(404, '页面不存在');
} else {
$url = str_replace('/' . $id . '.html', "", $info->url);
$hot_articles = News::recommended_articles($id);
$same_articles = News::same_type_articles(24, $id);
return $this->fetch('index/article_info', ['info' => $info, 'url' => $url, 'name' => '装修设计', 'title' => $info->title, 'content' => $info->newsdata->content, 'hot_articles' => $hot_articles, 'same_articles' => $same_articles]);
}
} else {
$list = News::get_zxbk_list(24);