diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index 3e729405f..e309ae40f 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -806,7 +806,7 @@ def getLogsList(): return data[1] data = [] - path = mw.getLogsDir() + '/waf' + path = getServerDir() + '/logs' if not os.path.exists(path): return mw.returnJson(False, '还未生成!', []) @@ -829,7 +829,8 @@ def getSafeLogs(): if not data[0]: return data[1] - path = mw.getLogsDir() + '/waf' + path = getServerDir() + '/logs' + file = path + '/' + args['siteName'] + '_' + args['toDate'] + '.log' if not os.path.exists(file): return mw.returnJson(False, "文件不存在!") diff --git a/plugins/op_waf/js/op_waf.js b/plugins/op_waf/js/op_waf.js index d12fde0c9..fff5729d9 100755 --- a/plugins/op_waf/js/op_waf.js +++ b/plugins/op_waf/js/op_waf.js @@ -826,8 +826,8 @@ function wafScreen(){