From 48373bcdd3e6cd2699d566ce6ad7a31821f7c742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Fri, 5 Sep 2025 16:19:07 +0800 Subject: [PATCH] ct fix --- application/controllers/information.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 0e076e0b..2fea3022 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -3396,9 +3396,10 @@ class Information extends CI_Controller { /**替换左右结构的线路表单标签 2024-7-4*/ if (strpos($ic_content, '') !== false) { $template_form_tourqi = $this->load->view($template_path . '-form-tourqi-new', $dataform, true); - $ic_content = str_replace('', $template_form_tourqi, $ic_content); + $ic_content_pc = $ic_content; //需要一个变量来过渡,不然$ic_content改变以后,PC端就没有标签了 + $ic_content_pc = str_replace('', $template_form_tourqi, $ic_content_pc); $data["showFormTourQi"] = false; //如果有标签就不显示外面的表单,因为$ic_content会在第一次就替换掉标签,所以第二次pc端这里不执行。 - $data["CUSTOMCONENT"] = $ic_content; + $data["CUSTOMCONENT"] = $ic_content_pc; } }