diff --git a/application/controllers/information.php b/application/controllers/information.php index f3537b86..5691be43 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1364,6 +1364,12 @@ class Information extends CI_Controller $template = str_replace('', $product_code_input, $template); } + if (empty($meta_product_code)) { + $template = str_replace('?product_code=', '', $template); + } else { + $template = str_replace('?product_code=', '?product_code=' . $meta_product_code, $template); + } + //信息推荐 $template_recommand = $recommand_information; //$this->recommand_information($information); 从外面传进来,pc和移动只需要查一次,减少数据库负担 $template = str_replace('', $this->load->view($template_path . '-next', array('recommands' => $template_recommand), true), $template); @@ -2701,4 +2707,4 @@ class Information extends CI_Controller echo json_encode($data); return true; } -} \ No newline at end of file +} diff --git a/application/views/mobile_first/gh-pc.php b/application/views/mobile_first/gh-pc.php index 8d16a95c..114f2410 100644 --- a/application/views/mobile_first/gh-pc.php +++ b/application/views/mobile_first/gh-pc.php @@ -173,7 +173,7 @@ -