From edb796acf1417801caa061d0b286bc6b09013d6c Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 30 Oct 2017 14:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 11fdd5f6..ad95be79 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -280,9 +280,9 @@ class Keyworlds extends CI_Controller { $source_flag = 'source'; $last_rank = $this->Keywordsrank_model->get_rank_list($kw_id, $top = 1); if (isset($last_rank[0]->kwr_datetime) and ( time() - $last_rank[0]->kwr_datetime) < 180) { - // $data[] = array('name' => 'rank', 'value' => '查询过于频繁,请等待三分钟!'); - // echo json_encode($data); - // return TRUE; + $data[] = array('name' => 'rank', 'value' => '查询过于频繁,请等待三分钟!'); + echo json_encode($data); + return TRUE; } if ((intval($last_rank[0]->kwr_mobile_rank) == 0 || !isset($last_rank[0]->kwr_mobile_rank)) && (intval($last_rank[0]->kwr_datetime) >= intval($today)) ) { @@ -295,7 +295,6 @@ 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 && $client_flag == 'm') { $rank['rank'] = $last_rank[0]->kwr_rank;