From 9a9fb075cf66ebbbd928c1aa7d1fb29531f1be30 Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 30 Dec 2020 10:22:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E7=9A=84=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E6=89=80=E5=B1=9E=E5=88=86=E7=B1=BB=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 17d6dc2f..8a30f117 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -767,7 +767,7 @@ class Information extends CI_Controller ); $data['info_topthings'] = $this->Information_model->Detail($random_array[rand(0, count($random_array) - 1)]); if (!empty($data['info_topthings'])) { - $data['info_topthings_root'] = $data['root_detail']; + $data['info_topthings_root'] =$this->Information_model->get_detail_by_path($data['info_topthings']->is_path, 1); $data['info_topthings']->ic_photo = $this->set_photo_content($data['info_topthings']->ic_photo, $data['info_topthings']->ic_content); } //文化板块的页面,随机挑选一篇 @@ -784,7 +784,7 @@ class Information extends CI_Controller ); $data['info_hotel'] = $this->Information_model->Detail($random_array[rand(0, count($random_array) - 1)]); if (!empty($data['info_hotel'])) { - $data['info_hotel_root'] = $data['root_detail']; + $data['info_hotel_root'] = $this->Information_model->get_detail_by_path($data['info_hotel_root']->is_path, 1); $data['info_hotel']->ic_photo = $this->set_photo_content($data['info_hotel']->ic_photo, $data['info_hotel']->ic_content); } break;