From f068bf1292fb34853b66a1fcc165e3e277d17c6c Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 2 Nov 2022 16:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E8=AE=BF=E9=97=AE=E6=97=A5=E5=BF=97+?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class/core/site_api.py | 2 +- route/static/app/site.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/class/core/site_api.py b/class/core/site_api.py index 11570ae2d..07a25e781 100755 --- a/class/core/site_api.py +++ b/class/core/site_api.py @@ -1883,7 +1883,7 @@ location ^~ {from} { conf = mw.readFile(filename) if conf.find('#ErrorLog') != -1: return False - if conf.find("access_log /dev/null") != -1: + if conf.find("access_log off") != -1: return False return True diff --git a/route/static/app/site.js b/route/static/app/site.js index d291d891f..ff72dd34d 100755 --- a/route/static/app/site.js +++ b/route/static/app/site.js @@ -396,9 +396,11 @@ function webPathEdit(id){ }); $("#logs").change(function(){ - $.post('/site/logs_open','id='+id,function(userini){ - layer.msg(userini.msg,{icon:userini.status?1:2}); - },'josn'); + var loadT = layer.msg("正在设置中...",{icon:16,time:10000,shade: [0.3, '#000']}); + $.post('/site/logs_open','id='+id, function(rdata){ + layer.close(loadT); + layer.msg(rdata.msg,{icon:rdata.status?1:2}); + },'json'); }); },'json');