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;"> +