|
|
|
@ -25,11 +25,10 @@ class Index extends CI_Controller
|
|
|
|
|
, 'ru' => 'chinahighlights_ru'
|
|
|
|
|
, 'it' => 'viaggio-in-cina'
|
|
|
|
|
, 'vac' => 'viaje-a-china'
|
|
|
|
|
,'vc'=>'voyageschine'
|
|
|
|
|
, 'vc' => 'voyageschine',
|
|
|
|
|
); //站点日志存储库,每个网站对应一个
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function __construct()
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
$this->load->model('wwwlogs_model');
|
|
|
|
@ -51,7 +50,8 @@ class Index extends CI_Controller
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//定时抓取订单日志
|
|
|
|
|
public function orders_view_path($COLI_SN,$sitecode='cht',$ip,$offset=0){
|
|
|
|
|
public function orders_view_path($COLI_SN, $sitecode = 'cht', $ip, $offset = 0)
|
|
|
|
|
{
|
|
|
|
|
$query_string = "
|
|
|
|
|
* | select time_local,http_referer,request_uri,http_user_agent,http_x_forwarded_for
|
|
|
|
|
remote_addr,request_method,request_time,status,body_bytes_sent,upstream_response_time from log where
|
|
|
|
@ -106,7 +106,6 @@ and remote_addr='$ip'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function getLogs(Aliyun_Log_Client $client, $project, $logstore)
|
|
|
|
|
{
|
|
|
|
|
$topic = '';
|
|
|
|
|