diff --git a/plugins/pm2/js/pm2.js b/plugins/pm2/js/pm2.js index fd2609868..fa8b194fe 100755 --- a/plugins/pm2/js/pm2.js +++ b/plugins/pm2/js/pm2.js @@ -64,7 +64,7 @@ function pm2List() { pm2Post('list','', function(data){ var rdata = $.parseJSON(data.data); - console.log(rdata); + // console.log(rdata); if (!rdata['status']){ layer.msg(rdata['msg'],{icon:2,time:2000,shade: [0.3, '#000']}); return; diff --git a/plugins/simdht/index.py b/plugins/simdht/index.py index dbabe8a67..fca4a6a47 100755 --- a/plugins/simdht/index.py +++ b/plugins/simdht/index.py @@ -133,7 +133,7 @@ def stop(): data = public.execShell(file + ' stop') if data[1] == '': return 'ok' - return 'fail' + return data[1] def restart(): diff --git a/route/static/app/public.js b/route/static/app/public.js index 895b6ae0e..7a85972ba 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -1524,7 +1524,6 @@ function pluginOpService(a, b, v) { } var d = ""; - switch(b) { case "stop":d = '停止';break; case "start":d = '启动';break; @@ -1555,7 +1554,6 @@ function pluginOpService(a, b, v) { setTimeout(function(){ location.reload(); },2000); - },'json').error(function() { layer.close(e); layer.msg('操作异常!', {icon: 1});