From 757284cdf187119339e9a63cba24b439e7b14ea2 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 17 Oct 2022 23:48:20 +0800 Subject: [PATCH] up --- plugins/webstats/js/setting.js | 2 +- plugins/webstats/js/stats.js | 4 ++-- plugins/webstats/lua/webstats_log.lua | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/webstats/js/setting.js b/plugins/webstats/js/setting.js index b1343fd46..97c5528bd 100644 --- a/plugins/webstats/js/setting.js +++ b/plugins/webstats/js/setting.js @@ -247,7 +247,7 @@ wsPost('get_global_conf', '' ,{}, function(rdata){ $('#setAll').click(function(){ var args = "name=webstats&func=reload"; - layer.confirm('您真的要同步所有站点吗?', {icon:3,closeBtn: 2}, function() { + layer.confirm('您真的要同步所有站点吗?', {icon:3,closeBtn: 1}, function() { var e = layer.msg('正在同步,请稍候...', {icon: 16,time: 0}); $.post("/plugins/run", args, function(g) { layer.close(e); diff --git a/plugins/webstats/js/stats.js b/plugins/webstats/js/stats.js index 8dcb67931..18e955beb 100644 --- a/plugins/webstats/js/stats.js +++ b/plugins/webstats/js/stats.js @@ -2032,7 +2032,7 @@ function wsTableErrorLogRequest(page){ type: 1, title: "【"+res.domain + "】详情信息", area: '600px', - closeBtn: 2, + closeBtn: 1, shadeClose: false, content: '
\
\ @@ -2241,7 +2241,7 @@ function wsTableLogRequest(page){ type: 1, title: "【"+res.domain + "】详情信息", area: '600px', - closeBtn: 2, + closeBtn: 1, shadeClose: false, content: '
\
\ diff --git a/plugins/webstats/lua/webstats_log.lua b/plugins/webstats/lua/webstats_log.lua index e19e6372d..ca35036a6 100644 --- a/plugins/webstats/lua/webstats_log.lua +++ b/plugins/webstats/lua/webstats_log.lua @@ -66,8 +66,6 @@ log_by_lua_block { local method = ngx.req.get_method() local excluded = false - - local today = ngx.re.gsub(ngx.today(),'-','') local day = os.date("%d") local number_day = tonumber(day) local day_column = "day"..number_day @@ -230,7 +228,7 @@ log_by_lua_block { local protocol = ngx.var.server_protocol local request_uri = ngx.var.request_uri local time_key = C:get_store_key() - local method = ngx.req.get_method() + local method = method local body_length = C:get_length() local domain = C:get_domain() local referer = ngx.var.http_referer