From ec13581dfa40a956f8a302d97c46e753d0ae9375 Mon Sep 17 00:00:00 2001 From: Jimmy Liow <18777396951@163.com> Date: Thu, 29 Jun 2023 14:51:54 +0800 Subject: [PATCH] =?UTF-8?q?GH=20=E5=A2=9E=E5=8A=A0=E7=BA=BF=E8=B7=AF?= =?UTF-8?q?=E4=BB=A3=E5=8F=B7=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 8 +++++++- application/views/mobile_first/gh-pc.php | 6 +++--- application/views/mobile_first/gh.php | 6 +++--- 3 files changed, 13 insertions(+), 7 deletions(-) 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 @@ -