mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-11-03 03:31:58 +08:00
去掉定时任务触发的记录
This commit is contained in:
@@ -431,7 +431,7 @@ func (waf *WafEngine) modifyResponse() func(*http.Response) error {
|
||||
global.GQEQUE_LOG_DB.PushBack(weblogbean)
|
||||
}
|
||||
//TODO 如果是指定URL 或者 IP 不记录日志
|
||||
if !isStaticAssist && weblogbean.URL != "/index.php/lttshop/task_scheduling/orderSale" && weblogbean.URL != "/index.php/lttshop/task_scheduling/orderHotSale" {
|
||||
if !isStaticAssist && !strings.HasPrefix(weblogbean.URL, "/index.php/lttshop/task_scheduling/") {
|
||||
weblogbean.ACTION = "放行"
|
||||
global.GQEQUE_LOG_DB.PushBack(weblogbean)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user