diff --git a/application/controllers/information.php b/application/controllers/information.php
index fe71420b..cd934257 100644
--- a/application/controllers/information.php
+++ b/application/controllers/information.php
@@ -784,12 +784,6 @@ class Information extends CI_Controller
if (!empty($template_recommand['Tips Right'])) {
$template = str_replace('', "
" . $template_recommand['Tips Right']->it_content . "
", $template);
}
-
- //文中广告
- if (!empty($template_recommand['Tips Content']) && strpos($information->ic_content, '') !== false) {
- $information->ic_content = str_replace('', $template_recommand['Tips Content']->it_content, $information->ic_content);
- }
-
//文中的信息推荐
if (strpos($information->ic_content, '') !== false) {
$information->ic_content = str_replace('', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), TRUE), $information->ic_content);
@@ -799,6 +793,18 @@ class Information extends CI_Controller
$information->ic_content = str_replace('', $this->load->view($template_path . '-recommends-tour', array('recommands' => $template_recommand), TRUE), $information->ic_content);
}
+ //替换内容中广告
+ $temp_array = array();
+ preg_match_all('^^', $template, $temp_array);
+ if (!empty($temp_array[1])) {
+ foreach ($temp_array[1] as $key => $item) {
+ $tips_detail = $this->recommends_and_tips_model->tips_detail($item);
+ if ($tips_detail) {
+ $template = str_replace($temp_array[0][$key], $tips_detail->it_content, $template);
+ }
+ }
+ }
+
//顶部全屏大图
if ($device == 'mobile') { //移动端读取移动大图
$meta_addon_picture = get_meta($information->ic_id, 'meta_addon_picture_mobile');
@@ -997,10 +1003,6 @@ class Information extends CI_Controller
if (!empty($template_recommand['Tips Right'])) {
$template = str_replace('', "" . $template_recommand['Tips Right']->it_content . "
", $template);
}
- //文中广告
- if (!empty($template_recommand['Tips Content']) && strpos($information->ic_content, '') !== false) {
- $information->ic_content = str_replace('', $template_recommand['Tips Content']->it_content, $information->ic_content);
- }
//文中的信息推荐
if (strpos($information->ic_content, '') !== false) {
$information->ic_content = str_replace('', $this->load->view($template_path . '-recommends-article', array('recommands' => $template_recommand), TRUE), $information->ic_content);
diff --git a/application/third_party/recommend/views/bind.php b/application/third_party/recommend/views/bind.php
index 08228b45..f17378dd 100644
--- a/application/third_party/recommend/views/bind.php
+++ b/application/third_party/recommend/views/bind.php
@@ -112,25 +112,6 @@
-
- <!--@TIPS-CONTENT@-->
-
-
-
-
-
-
- ir_rule . '
' . $recommends['Tips Content']->ir_keyword; ?>
-
-
-
-
-
-
<!--@Content-Recommends-Tour@-->