From 97b1f410011c8d19e26fc89b34b6b0dd2e78281a Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Mon, 8 Nov 2021 09:57:53 +0800 Subject: [PATCH] =?UTF-8?q?GH=20=E5=BA=95=E9=83=A8=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=A7=E5=93=81=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 6 ++++++ application/views/mobile_first/gh-pc.php | 1 + application/views/mobile_first/gh.php | 1 + 3 files changed, 8 insertions(+) diff --git a/application/controllers/information.php b/application/controllers/information.php index 0e3c1cc4..d116c5ba 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -979,6 +979,12 @@ class Information extends CI_Controller array('information' => $information, 'author' => $author), true); $template = str_replace('', $article_structured_data_content, $template); + $product_code = get_meta($information->ic_id, 'meta_product_code'); + if (!empty($product_code)) { + // + $product_code_input = ""; + $template = str_replace('', $product_code_input, $template); + } //信息推荐 $template_recommand = $recommand_information; //$this->recommand_information($information); 从外面传进来,pc和移动只需要查一次,减少数据库负担 diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index eb7c80c7..6877daa9 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -184,6 +184,7 @@ height="0" width="0" style="display:none;visibility:hidden"> placeholder="How many people, hotel style and changes to make... " style="margin-bottom:20px;"> +