From d79092c571afbadef589780da73308b51dd9717a Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Wed, 21 Jul 2021 14:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20IS=5FID=20=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=AD=98=E5=82=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/information_model.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/application/models/information_model.php b/application/models/information_model.php index 99c8aefa..0ec79029 100644 --- a/application/models/information_model.php +++ b/application/models/information_model.php @@ -152,23 +152,23 @@ class Information_model extends CI_Model { $path_list = []; $group_map = [ - '278008010' => [ + 27800801 => [ 'ic_url' => '/travelguide/culture/', 'ic_url_title' => 'Chinese Culture' ], - '278008011' => [ + 278008011 => [ 'ic_url' => '/travelguide/', 'ic_url_title' => 'Travel Guide' ], - '278008012' => [ + 278008012 => [ 'ic_url' => '/aboutus/', 'ic_url_title' => 'About Us' ], - '278008013' => [ + 278008013 => [ 'ic_url' => '/citytour/', 'ic_url_title' => 'City Tours' ], - '278008014' => [ + 278008014 => [ 'ic_url' => '/tour/', 'ic_url_title' => 'China Tours' ] @@ -180,9 +180,8 @@ class Information_model extends CI_Model { $ic_url_title = $path_row->ic_url_title; if ($path_row->is_level === 0) { - if (array_key_exists($path_row->ic_id, $group_map)) { - $top_group = $group_map[$path_row->ic_id]; - + if (array_key_exists($path_row->is_id, $group_map)) { + $top_group = $group_map[$path_row->is_id]; $path_array = [ 'ic_id' => $path_row->ic_id, 'is_id' => $path_row->is_id,