From b766a6eb6a10d8b36d3f76698871af9912c243b0 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 9 Sep 2024 22:58:29 +0800 Subject: [PATCH] Update openresty.js --- plugins/openresty/js/openresty.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 + "