From b3cd03fcc90242e7784acbbc43721fa438e50470 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 27 Jul 2021 11:07:44 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/mobile_first/ch-structured-data-article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/mobile_first/ch-structured-data-article.php b/application/views/mobile_first/ch-structured-data-article.php index af03f39e..40624411 100644 --- a/application/views/mobile_first/ch-structured-data-article.php +++ b/application/views/mobile_first/ch-structured-data-article.php @@ -11,7 +11,7 @@ "https://images.chinahighlights.comic_photo; ?>" ], "datePublished": "is_datetime; ?>", - "dateModified": "", + "dateModified": "", "author": { "@type": "Person", "name": "OPI_FirstName; ?>" From 40dce1aa6e61e32905eace6d58ff5e182acfc94d Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 27 Jul 2021 13:43:28 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=B8=8A=E7=BA=BF=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E7=BB=93=E6=9E=84=E5=8C=96=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 8112bdce..060c3917 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -629,13 +629,11 @@ class Information extends CI_Controller $addthis_widget = $this->load->view($template_path . '-add-this', false, true); $template = str_replace('', $addthis_widget, $template); - if ($information->is_id == '278006460') { - $article_structured_data_content = $this->load->view( - $template_path . '-structured-data-article', - array('information' => $information, 'author' => $author), - true); - $template = str_replace('', $article_structured_data_content, $template); - } + $article_structured_data_content = $this->load->view( + $template_path . '-structured-data-article', + array('information' => $information, 'author' => $author), + true); + $template = str_replace('', $article_structured_data_content, $template); } else { $template = str_replace('', '', $template); $inquiry_form_template = $this->load->view($template_path . '-inquiry-form', array('meta_product_code' => $meta_product_code), true); From 4b094e59714a4c23287c87358c137943bfe55538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Tue, 27 Jul 2021 13:53:20 +0800 Subject: [PATCH 3/3] =?UTF-8?q?CH=E6=8E=A8=E8=8D=90=E4=B8=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index 060c3917..467496ec 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1195,7 +1195,7 @@ class Information extends CI_Controller //读取附加移动端图片 $data->mobile_photo = get_meta($data->ic_id, 'meta_addon_picture_mobile'); if (empty($data->mobile_photo)) { - if (!empty($information->ic_photo)) { + if (!empty($data->ic_photo)) { $data->mobile_photo = $this->config->item('site_image_url').$data->ic_photo; } else { $data->mobile_photo = 'https://data.asiahighlights.com/image/travel-guide/thailand/info-template-recommended.jpg';