diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index 01cd0d6c..da362b6d 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -173,9 +173,9 @@ class Index extends CI_Controller remote_addr,request_method,request_time,status,body_bytes_sent,upstream_response_time from log where request_uri like '/io/?event=pageview%' and (remote_addr='$ip' OR http_x_forwarded_for like '%$ip%' OR request_uri like '%$client_id%') - ORDER BY __time__ ASC + ORDER BY __time__ DESC "; // 同时使用IP和用户ID - $from = time() - 1296000; //往前 604800(7天), 1296000(15天) + $from = time() - 604800 * 4; //往前 604800(7天), 1296000(15天) $to = time(); $request = new Aliyun_Log_Models_GetLogsRequest('globalhoghlights', $this->logstore[$sitecode], $from, $to, '', $query_string, 100, $offset, true); try {