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();