|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
|
|
class infoKeywords_model extends CI_Model
|
|
|
|
|
{
|
|
|
|
|
public $catch_day = 2;
|
|
|
|
|
function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
@ -66,7 +67,7 @@ class infoKeywords_model extends CI_Model
|
|
|
|
|
//获取关键词列表用于抓取排名
|
|
|
|
|
public function get_keyworld_list_old($top = 1, $engines='',$site_code=false)
|
|
|
|
|
{
|
|
|
|
|
$today = strtotime(date('Y-m-d'));
|
|
|
|
|
$today = mktime(0,0,0,date("m"),(date("d")-$this->catch_day), date("Y"));
|
|
|
|
|
//只查某个站点,原因是个事业部服务器分开,只需要查询本事业部站点即可
|
|
|
|
|
$map = " ";
|
|
|
|
|
if(!empty($site_code)){
|
|
|
|
@ -80,7 +81,7 @@ class infoKeywords_model extends CI_Model
|
|
|
|
|
}elseif ($engines=='eu') {
|
|
|
|
|
$map.=" AND kw_sitecode in ('gm','vc','vac','ru','it','jp') ";
|
|
|
|
|
}
|
|
|
|
|
$today0 = strtotime(date('Ymd000000'));
|
|
|
|
|
$today0 = mktime(0,0,0,date("m"),(date("d")-2), date("Y"));
|
|
|
|
|
$sql = "SELECT TOP 1 kw_id,
|
|
|
|
|
kw_keyworlds,
|
|
|
|
|
kw_is_id,
|
|
|
|
@ -97,7 +98,7 @@ class infoKeywords_model extends CI_Model
|
|
|
|
|
}
|
|
|
|
|
public function get_keyworld_list($top=1,$engines='',$site_code=false)
|
|
|
|
|
{
|
|
|
|
|
$today0 = strtotime(date('Ymd000000'));
|
|
|
|
|
$today0 = mktime(0,0,0,date("m"),(date("d")-$this->catch_day), date("Y"));
|
|
|
|
|
$map = " ";
|
|
|
|
|
//只查某个站点,原因是个事业部服务器分开,只需要查询本事业部站点即可
|
|
|
|
|
if(!empty($site_code)){
|
|
|
|
|