From e2a40a99d438d61b97b0a76bef43baff61a69866 Mon Sep 17 00:00:00 2001 From: lyt Date: Tue, 31 Oct 2017 11:56:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=20=E5=85=88?= =?UTF-8?q?=E5=8F=96=E6=97=B6=E9=97=B4=E6=9C=80=E9=95=BF=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/keyworlds.php | 3 ++- application/models/infokeywords_model.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/keyworlds.php b/application/controllers/keyworlds.php index 0e0a82b9..f4f4a35e 100644 --- a/application/controllers/keyworlds.php +++ b/application/controllers/keyworlds.php @@ -452,7 +452,8 @@ class Keyworlds extends CI_Controller { $response = $this->curl($url,$client_flag); if ($response) { //分析google搜索结果,计算排名 - if (false !== stripos($response, '

302 Moved

')) { + if (false !== stripos($response, '

302 Moved

') || + false !== stripos($response, 'captcha')) { $rank['rank'] = -2; } elseif (false !== stripos($response, $site_url)) { preg_match_all($match_fun, $response, $store); diff --git a/application/models/infokeywords_model.php b/application/models/infokeywords_model.php index 1714808a..9c23fbd1 100644 --- a/application/models/infokeywords_model.php +++ b/application/models/infokeywords_model.php @@ -96,7 +96,7 @@ class infoKeywords_model extends CI_Model AND (kwr_datetime<'$today' OR kwr_mobile_rank IS NULL OR kwr_mobile_rank=0) WHERE kw_status=1 $map - ORDER BY newid()"; + ORDER BY kwr_datetime ASC"; $query = $this->HT->query($sql); //print_r($this->HT->queries); $result = $query->result();