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