From f32c94cda3c6159795ea1cb987907f4859e7065c Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 30 Oct 2017 14:36:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 5b412000..11fdd5f6 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -295,8 +295,9 @@ class Keyworlds extends CI_Controller { for ($i = 1; $i <= 15; $i++) { $j = $i; $rank = $this->$method($client_flag, $keyworlds, $site_url, $j, $site_code); + echo ""; // 仅更新一个字段 - if (intval($rank['rank']) === 0) { + if (intval($rank['rank']) === 0 && $client_flag == 'm') { $rank['rank'] = $last_rank[0]->kwr_rank; $rank['source'] = $last_rank[0]->kwr_source; } else { @@ -373,7 +374,7 @@ class Keyworlds extends CI_Controller { $rank = $this->get_search_content_by_yandex($client_flag,$v->kw_keyworlds, $site_url, $i - 1); } - if (intval($rank['rank']) === 0) { + if (intval($rank['rank']) === 0 && $client_flag == 'm') { $rank['rank'] = $last_rank[0]->kwr_rank; $rank['source'] = $last_rank[0]->kwr_source; } else {