diff --git a/application/models/information_model.php b/application/models/information_model.php index 06e1966a..0403558d 100644 --- a/application/models/information_model.php +++ b/application/models/information_model.php @@ -148,8 +148,29 @@ class Information_model extends CI_Model { from infoStructures a inner join infoContents b on a.is_ic_id=b.ic_id where is_id in ($path 0) and is_id <> ? and is_siteCode = ? order by is_level asc", array($is_id, $site_code)); $path_result = $path_query->result(); + $path_list = []; - return $path_result; + foreach ($path_result as $path_row) { + + $ic_url = $path_row->ic_url; + $ic_url_title = $path_row->ic_url_title; + + if ($path_row->ic_id === '278008010') { + $ic_url = '/inspiration'; + $ic_url_title = 'inspiration title'; + } + + $path_array = [ + 'ic_id' => $path_row->ic_id, + 'is_id' => $path_row->is_id, + 'ic_title' => $path_row->ic_title, + 'ic_url' => $ic_url, + 'ic_url_title' => $ic_url_title + ]; + $path_list[] = $path_array; + } + + return $path_list; } //根据路径获取某一级别节点详细页 diff --git a/application/views/mobile_first/ch-h1.php b/application/views/mobile_first/ch-h1.php index 9cf233f9..3a29e923 100644 --- a/application/views/mobile_first/ch-h1.php +++ b/application/views/mobile_first/ch-h1.php @@ -10,7 +10,7 @@