From 4f932c36e7bc4b7c3a6885a9592d9ebc2a874f23 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 12 Oct 2022 10:11:55 +0800 Subject: [PATCH] up --- plugins/op_waf/waf/html/safe_js.html | 1 - plugins/op_waf/waf/lua/common.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/op_waf/waf/html/safe_js.html b/plugins/op_waf/waf/html/safe_js.html index 963a6df63..763cd60c5 100755 --- a/plugins/op_waf/waf/html/safe_js.html +++ b/plugins/op_waf/waf/html/safe_js.html @@ -131,7 +131,6 @@ var ok = setInterval(function(){ ajax('JSON',true).post('/{uri}',{'pass':"ok"},function(data){ if (data['status'] == 0){ - // document.getElementById('status').innerHTML = "ok"; location.reload(); } }); diff --git a/plugins/op_waf/waf/lua/common.lua b/plugins/op_waf/waf/lua/common.lua index 4de87d0a1..413fb6893 100644 --- a/plugins/op_waf/waf/lua/common.lua +++ b/plugins/op_waf/waf/lua/common.lua @@ -336,7 +336,7 @@ function _M.inc_log(self, name, rule) ngx.shared.limit:set(total_path,total_log) -- 异步执行 - ngx.timer.at(1, timer_at_inc_log) + ngx.timer.at(0, timer_at_inc_log) end