From 7210011976255e5540fc4e23e7fe37cbafaa3daa Mon Sep 17 00:00:00 2001 From: lyt Date: Thu, 2 Nov 2017 16:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=20kwr=5Fkw=5Fid?= =?UTF-8?q?=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 2757ca9e..397fefaf 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -344,7 +344,6 @@ class Keyworlds extends CI_Controller { $client_flag = "PC"; $rank_flag = 'rank'; $source_flag = 'source'; - $last_rank_pc = $this->Keywordsrank_model->get_rank_list($worldsList[0]->kw_id); if (empty($worldsList)) { $worldsList = $this->Keywords_model->get_keyworld_list(1, $engines, $fix_site_code); //如果没有需要更新的则返回 @@ -357,6 +356,7 @@ class Keyworlds extends CI_Controller { $source_flag = 'source_m'; $last_rank = $this->Keywordsrank_model->get_rank_list($worldsList[0]->kw_id); } + $last_rank_pc = $this->Keywordsrank_model->get_rank_list($worldsList[0]->kw_id); //获取排名并保存 foreach ($worldsList as $v) { $site_config = $site_config[$v->kw_sitecode];