diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index ad95be79..0e0a82b9 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -296,7 +296,7 @@ class Keyworlds extends CI_Controller { $j = $i; $rank = $this->$method($client_flag, $keyworlds, $site_url, $j, $site_code); // 仅更新一个字段 - if (intval($rank['rank']) === 0 && $client_flag == 'm') { + if ($client_flag == 'm') { $rank['rank'] = $last_rank[0]->kwr_rank; $rank['source'] = $last_rank[0]->kwr_source; } else { @@ -373,7 +373,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 && $client_flag == 'm') { + if ($client_flag == 'm') { $rank['rank'] = $last_rank[0]->kwr_rank; $rank['source'] = $last_rank[0]->kwr_source; } else {