From 856c34b3d05eb12c0ad13e020ad593c76910e90a Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 22 Jan 2018 11:35:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=E6=8E=92?= =?UTF-8?q?=E5=90=8D=E5=92=8C=E4=B8=8A=E6=AC=A1=E6=AF=94=E8=BE=83=E7=9A=84?= =?UTF-8?q?=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 4168c4fa..f44e562c 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -338,7 +338,7 @@ class Keyworlds extends CI_Controller { $add = $this->Keywordsrank_model->add_rank($kw_id, $rank['rank'], $rank['rank_m'], $rank['source'], $rank['source_m'], $rank['engines']); } // rank 变化 - if ($client_flag === 'PC') { + if ($client_flag === 'PC' && trim($last_rank[0]->kwr_rank) != "") { $this->load->model('InfoSMS_model'); $last_rank_pc = isset($last_rank[0]) ? $last_rank[0]->kwr_rank : $rank['rank']; $this->InfoSMS_model->readed_for_info($kw_id, 'keywords_rank'); @@ -425,7 +425,7 @@ class Keyworlds extends CI_Controller { $add = $this->Keywordsrank_model->add_rank($v->kw_id, $rank['rank'], $rank['rank_m'], $rank['source'], $rank['source_m'], $rank['engines']); } // rank 变化 - if ($client_flag === 'PC') { + if ($client_flag === 'PC' && trim($last_rank_pc[0]->kwr_rank) != "") { $this->load->model('InfoSMS_model'); $last_rank_pc = isset($last_rank_pc[0]) ? $last_rank_pc[0]->kwr_rank : $rank['rank']; $this->InfoSMS_model->readed_for_info($v->kw_id, 'keywords_rank');