From 12489447a7bf8522d7914a04bfbbfd434c610d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 11 Mar 2021 09:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=A0=B9=E7=BB=93=E7=82=B9=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/welcome.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/application/controllers/welcome.php b/application/controllers/welcome.php index 172bfafc..79e663e9 100644 --- a/application/controllers/welcome.php +++ b/application/controllers/welcome.php @@ -27,7 +27,7 @@ class Welcome extends CI_Controller { $data['groupList']=$this->Information_model->group_list(); - if($this->config->item('site_code')=='ch' || $this->config->item('site_code')=='ah' ){ + if($this->config->item('site_code')=='ch' || $this->config->item('site_code')=='ah' || $this->config->item("site_code")=="chinatravel" ){ $this->load->view('bootstrap3/header', $data); $this->load->view('bootstrap3/welcome'); @@ -416,4 +416,18 @@ class Welcome extends CI_Controller { $this->load->view('bootstrap3/recommendlist', $data); } + /** + * @description: 用于生成一个特殊的根结点is_level和is_sort都为0,CT移动优先项目用 + * @param {type} + * @return: + * @Date Changed: + */ + public function AddRootNote(){ + $this->InfoContents_model->Add('', 'NewRootNote', 'root', 'NewRootNote', '', '', '', '', '', 0, 0, '', '', 0, 0, '', '', '', '', 0, + '',''); + $this->InfoStructures_model->AddRootNote($this->InfoContents_model->insert_id); + $is_id = $this->InfoStructures_model->insert_id; + redirect(site_url('information/edit/' . $is_id)); + } + }