diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index 0b1fe807..b0db5f3b 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -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 . '
'; + 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. '
'; } // 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 ''.$query_string.'
'; $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); @@ -243,9 +244,10 @@ class Index extends CI_Controller } } - - // print_r($LogData); - $this->wwwlogs_model->add('wwwlogs', $LogData); + + //echo ''.print_r($LogData, true).'
'; + $add_status = $this->wwwlogs_model->add('wwwlogs', $LogData); + //echo ' add_status => '.$add_status.'
'; } } catch (Aliyun_Log_Exception $ex) { print_r($ex); diff --git a/application/third_party/wwwlog/models/wwwlogs_model.php b/application/third_party/wwwlog/models/wwwlogs_model.php index d9fc123e..960de1f9 100644 --- a/application/third_party/wwwlog/models/wwwlogs_model.php +++ b/application/third_party/wwwlog/models/wwwlogs_model.php @@ -73,7 +73,7 @@ class wwwlogs_model extends CI_Model $this->where ? $sql .= $this->where : false; $this->orderby ? $sql .= $this->orderby : false; $query = $this->HT->query($sql); - //print_r($this->INFO->queries); + // print_r($this->INFO->queries); if ($this->topnum === 1) { if ($query->num_rows() > 0) { $row = $query->row();