From 41389bb1bc80d56e21a107e9db4836b461299a4b Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 15 Jun 2022 13:34:05 +0800 Subject: [PATCH] Update site.js --- route/static/app/site.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/route/static/app/site.js b/route/static/app/site.js index 107849c83..f8a2da63e 100755 --- a/route/static/app/site.js +++ b/route/static/app/site.js @@ -2265,10 +2265,7 @@ function tryRestartPHP(siteName){ var loadT = layer.msg('尝试自动重启PHP['+data.phpversion+']...', { icon: 16, time: 0, shade: 0.3 }); $.post('/plugins/run', reqData, function(data) { layer.close(loadT); - if(data.status){ - layer.msg(data.msg,{icon:0,time:3000,shade: [0.3, '#000']}); - return; - } + layer.msg(data.msg,{icon:data.status?1:2,time:3000,shade: [0.3, '#000']}); },'json'); },'json'); }