AH页面的广告推荐取消重复检测

webht/payment
YCC 2 years ago
parent d27afa52da
commit bd425ee8da

@ -2827,6 +2827,9 @@ class Information extends CI_Controller
$exclude_ids = array($information->is_id); //需要排除的is_id防止通过页面显示相同内容默认排除本身每个推荐内容都需要排除已经推荐过的 $exclude_ids = array($information->is_id); //需要排除的is_id防止通过页面显示相同内容默认排除本身每个推荐内容都需要排除已经推荐过的
foreach ($root_recommands as $item) { foreach ($root_recommands as $item) {
if ($this->config->item('site_code') == 'ah') { //如果是AH的页面取消重复检测
$exclude_ids=[];
}
$result = $this->recommand_information_rule($information, $root_detail, $item, $exclude_ids); $result = $this->recommand_information_rule($information, $root_detail, $item, $exclude_ids);
if (!empty($result)) { if (!empty($result)) {
$data += $result; $data += $result;
@ -2834,6 +2837,9 @@ class Information extends CI_Controller
} }
foreach ($group_recommands as $item) { foreach ($group_recommands as $item) {
if ($this->config->item('site_code') == 'ah') { //如果是AH的页面取消重复检测
$exclude_ids=[];
}
if (empty($data[$item->ir_name])) { if (empty($data[$item->ir_name])) {
$result = $this->recommand_information_rule($information, $root_detail, $item, $exclude_ids); $result = $this->recommand_information_rule($information, $root_detail, $item, $exclude_ids);
if (!empty($result)) { if (!empty($result)) {

Loading…
Cancel
Save