|
|
|
@ -341,10 +341,10 @@ class Keyworlds extends CI_Controller {
|
|
|
|
|
// rank 变化
|
|
|
|
|
if ($client_flag === 'PC') {
|
|
|
|
|
$this->Keywords_model->update_time($kw_id);
|
|
|
|
|
$last_rank_pc = $this->Keywordsrank_model->get_last_pc_rank($kw_id);
|
|
|
|
|
if (trim($last_rank_pc[0]->kwr_rank) != "") {
|
|
|
|
|
$last_rank_pc = $this->Keywordsrank_model->get_last_pc_rank($kw_id, 2);
|
|
|
|
|
if (trim($last_rank_pc[1]->kwr_rank) != "") {
|
|
|
|
|
$this->load->model('InfoSMS_model');
|
|
|
|
|
$last_rank_pc = isset($last_rank_pc[0]) ? $last_rank_pc[0]->kwr_rank : $rank['rank'];
|
|
|
|
|
$last_rank_pc = isset($last_rank_pc[1]) ? $last_rank_pc[1]->kwr_rank : $rank['rank'];
|
|
|
|
|
$this->InfoSMS_model->readed_for_info($kw_id, 'keywords_rank');
|
|
|
|
|
$this->InfoSMS_model->add('keywords_rank', $kw_id, $rank['rank'], $last_rank_pc, (string) ($rank['rank'] - $last_rank_pc));
|
|
|
|
|
}
|
|
|
|
@ -429,10 +429,10 @@ class Keyworlds extends CI_Controller {
|
|
|
|
|
// rank 变化
|
|
|
|
|
if ($client_flag === 'PC') {
|
|
|
|
|
$this->Keywords_model->update_time($v->kw_id);
|
|
|
|
|
$last_rank_pc = $this->Keywordsrank_model->get_last_pc_rank($v->kw_id);
|
|
|
|
|
if (trim($last_rank_pc[0]->kwr_rank) != "") {
|
|
|
|
|
$last_rank_pc = $this->Keywordsrank_model->get_last_pc_rank($v->kw_id, 2);
|
|
|
|
|
if (trim($last_rank_pc[1]->kwr_rank) != "") {
|
|
|
|
|
$this->load->model('InfoSMS_model');
|
|
|
|
|
$last_rank_pc = isset($last_rank_pc[0]) ? $last_rank_pc[0]->kwr_rank : $rank['rank'];
|
|
|
|
|
$last_rank_pc = isset($last_rank_pc[1]) ? $last_rank_pc[1]->kwr_rank : $rank['rank'];
|
|
|
|
|
$this->InfoSMS_model->readed_for_info($v->kw_id, 'keywords_rank');
|
|
|
|
|
$this->InfoSMS_model->add('keywords_rank', $v->kw_id, $rank['rank'], $last_rank_pc, (string) ($rank['rank'] - $last_rank_pc));
|
|
|
|
|
}
|
|
|
|
|