From c79a5cad39e0752a5450e34f37b5913c7a23ad05 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 20 Jul 2021 10:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20IC=5FID=20=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=92=8C=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/information_model.php | 23 ++++++++++++++++++++++- application/views/mobile_first/ch-h1.php | 2 +- 2 files changed, 23 insertions(+), 2 deletions(-) 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 @@