关键词 先取时间最长的

hotfix/远程访问多媒体中心
lyt 8 years ago
parent 2fb452eb7e
commit e2a40a99d4

@ -452,7 +452,8 @@ class Keyworlds extends CI_Controller {
$response = $this->curl($url,$client_flag);
if ($response) {
//分析google搜索结果计算排名
if (false !== stripos($response, '<h1>302 Moved</h1>')) {
if (false !== stripos($response, '<h1>302 Moved</h1>') ||
false !== stripos($response, 'captcha')) {
$rank['rank'] = -2;
} elseif (false !== stripos($response, $site_url)) {
preg_match_all($match_fun, $response, $store);

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

Loading…
Cancel
Save