From e4936fa835fdf91be2040ae41d5fe9700e286d00 Mon Sep 17 00:00:00 2001 From: ycc Date: Wed, 24 Mar 2021 14:31:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A0=B9=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/city.php | 2 +- application/models/infoStructures_model.php | 8 ++++++-- application/views/bootstrap3/header.php | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/application/controllers/city.php b/application/controllers/city.php index 34d45845..17cac0fc 100644 --- a/application/controllers/city.php +++ b/application/controllers/city.php @@ -42,7 +42,7 @@ class City extends CI_Controller //$is_sort=-99 代表根节点 public function addnode($is_parent_id,$is_sort=-99){ $Structure = $this->InfoStructures_model->Detail($is_parent_id); - if ($Structure == FALSE) { + if ($is_parent_id!=='-99' && $Structure == FALSE ) { show_404(); } diff --git a/application/models/infoStructures_model.php b/application/models/infoStructures_model.php index 5bc64e3e..e86e796a 100644 --- a/application/models/infoStructures_model.php +++ b/application/models/infoStructures_model.php @@ -41,11 +41,15 @@ class InfoStructures_model extends CI_Model function Add($is_parent_id, $is_ic_id=-1,$is_sort=999) { - if ($is_parent_id == 0) + if ($is_parent_id == 0 ) { $is_path = ''; $is_level = 1; - } + }else if($is_parent_id == -99){ + $is_path = ''; + $is_level = 0; + $is_sort=0; + } else { $infoStructure = $this->Detail($is_parent_id); diff --git a/application/views/bootstrap3/header.php b/application/views/bootstrap3/header.php index e550a9b1..cb47b90f 100644 --- a/application/views/bootstrap3/header.php +++ b/application/views/bootstrap3/header.php @@ -114,6 +114,7 @@
  • AMP转化检查
  • Html基础知识
  • AMP知识
  • +
  • 添加信息分组
  • AMP操作SOP
  • HTML构建工具V3
  • PS基础课件