From cea190d7e71a6e2ad35c8a316f0c99d419308204 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 26 Feb 2019 16:08:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=A4=8Djs=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/static/app/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/route/static/app/index.js b/route/static/app/index.js index e89dd8b18..136db84fd 100755 --- a/route/static/app/index.js +++ b/route/static/app/index.js @@ -561,7 +561,7 @@ function updateVersion(version) { }); } -function pluginService(pname,pfunc, callback){ +function pluginIndexService(pname,pfunc, callback){ $.post('/plugins/run', {name:'openresty', func:pfunc}, function(data) { if (!data.status){ layer.msg(data.msg,{icon:0,time:2000,shade: [0.3, '#000']}); @@ -631,10 +631,10 @@ function reBoot() { var body = '
'; $(".bt-window-restart").html(body); $(".SafeRestartCode").append("

正在停止Web服务

"); - pluginService('openresty', 'stop', function (r1) { + pluginIndexService('openresty', 'stop', function (r1) { $(".SafeRestartCode p").addClass('c9'); $(".SafeRestartCode").append("

正在停止MySQL服务...

"); - pluginService('mysql','stop', function (r2) { + pluginIndexService('mysql','stop', function (r2) { $(".SafeRestartCode p").addClass('c9'); $(".SafeRestartCode").append("

开始重启服务器...

"); $.post('/system/restart_server', '',function (rdata) {