diff --git a/plugins/openresty/js/openresty.js b/plugins/openresty/js/openresty.js index 9b13e53a5..3ac2b2090 100755 --- a/plugins/openresty/js/openresty.js +++ b/plugins/openresty/js/openresty.js @@ -114,13 +114,14 @@ function orPluginOpServiceOp(a,b,c,d,a,v,request_callback){ function getOpStatus() { var loadT = layer.msg('正在处理,请稍后...', { icon: 16, time: 0, shade: 0.3 }); $.post('/plugins/run', {name:'openresty', func:'run_info'}, function(data) { - layer.close(loadT); - if (!data.status){ - showMsg(data.msg, function(){}, null,3000); - return; - } + layer.close(loadT); try { var rdata = $.parseJSON(data.data); + if (!data.status){ + showMsg(data.msg, function(){}, null,3000); + return; + } + var con = "
\ \ \
活动连接(Active connections)" + rdata.active + "
总连接次数(accepts)" + rdata.accepts + "