|
|
|
@ -78,7 +78,7 @@ class Index extends CI_Controller
|
|
|
|
|
public function index()
|
|
|
|
|
{
|
|
|
|
|
$data = array();
|
|
|
|
|
$orders = $this->wwwlogs_model->get_update_list(12);
|
|
|
|
|
$orders = $this->wwwlogs_model->get_update_list(15);
|
|
|
|
|
// print_r($orders);
|
|
|
|
|
if ($orders) {
|
|
|
|
|
foreach ($orders as $item) {
|
|
|
|
@ -92,7 +92,7 @@ class Index extends CI_Controller
|
|
|
|
|
} else {
|
|
|
|
|
$this->orders_view_path($item->COLI_SN, $site_code, $item->COLI_SenderIP);
|
|
|
|
|
}
|
|
|
|
|
echo 'COLI_WebCode:' . $item->COLI_WebCode . ' COLI_ID:' . $item->COLI_ID . ' COLI_SenderIP:' . $item->COLI_SenderIP . '<br/>';
|
|
|
|
|
echo 'COLI_WebCode:' . $item->COLI_WebCode . ' COLI_ID:' . $item->COLI_ID . ' COLI_SenderIP:' . $item->COLI_SenderIP . ' COLI_SN:' . $item->COLI_SN . ' COLI_ApplyDate:' . $item->COLI_ApplyDate. '<br/>';
|
|
|
|
|
}
|
|
|
|
|
// echo 'test async v6';
|
|
|
|
|
}
|
|
|
|
@ -213,6 +213,7 @@ class Index extends CI_Controller
|
|
|
|
|
and (remote_addr='$ip' OR http_x_forwarded_for like '%$ip%' OR request_uri like '%$client_id%')
|
|
|
|
|
ORDER BY __time__ DESC
|
|
|
|
|
"; // 同时使用IP和用户ID
|
|
|
|
|
//echo '<code>'.$query_string.'</code><br>';
|
|
|
|
|
$from = time() - 604800 * 2; //往前 604800(7天), 1296000(15天)
|
|
|
|
|
$to = time();
|
|
|
|
|
$request = new Aliyun_Log_Models_GetLogsRequest('globalhoghlights', $this->logstore[$sitecode], $from, $to, '', $query_string, 100, $offset, true);
|
|
|
|
@ -244,8 +245,9 @@ class Index extends CI_Controller
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// print_r($LogData);
|
|
|
|
|
$this->wwwlogs_model->add('wwwlogs', $LogData);
|
|
|
|
|
//echo '<code>'.print_r($LogData, true).'</code><br>';
|
|
|
|
|
$add_status = $this->wwwlogs_model->add('wwwlogs', $LogData);
|
|
|
|
|
//echo '<code> add_status => '.$add_status.'</code><br>';
|
|
|
|
|
}
|
|
|
|
|
} catch (Aliyun_Log_Exception $ex) {
|
|
|
|
|
print_r($ex);
|
|
|
|
|