From e996f34ac9edf2a1f82890887f1a9e01294b508b Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Fri, 26 May 2023 14:58:19 +0800 Subject: [PATCH 1/2] fix --- application/third_party/wwwlog/controllers/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index da362b6d..4ae900e8 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -169,13 +169,13 @@ class Index extends CI_Controller // echo $client_id; $query_string = " - * | select time_local,http_referer,request_uri,http_user_agent,http_x_forwarded_for + * | 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 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__ DESC "; // 同时使用IP和用户ID - $from = time() - 604800 * 4; //往前 604800(7天), 1296000(15天) + $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); try { From bdabd9c86dc0080eb02d75c5148c76a2994bf320 Mon Sep 17 00:00:00 2001 From: LMR <59361885@qq.com> Date: Fri, 26 May 2023 14:59:12 +0800 Subject: [PATCH 2/2] fix empty --- application/third_party/wwwlog/controllers/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/third_party/wwwlog/controllers/index.php b/application/third_party/wwwlog/controllers/index.php index 4ae900e8..1baa7fce 100644 --- a/application/third_party/wwwlog/controllers/index.php +++ b/application/third_party/wwwlog/controllers/index.php @@ -170,7 +170,7 @@ class Index extends CI_Controller $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 + 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__ DESC