Compare commits

...
4 Commits
Author SHA1 Message Date
Mr Chen e6b9fd8a66 Update info.json 2019-02-26 16:09:07 +08:00
Mr Chen 350a1e8b61 修复重复js方法 2019-02-26 16:08:23 +08:00
Mr Chen b904ef4e8a Update system_api.py 2019-02-26 16:01:39 +08:00
Mr Chen d64040abb7 Update info.json 2019-02-26 15:57:36 +08:00
3 changed files with 13 additions and 4 deletions
-1
View File
@@ -614,7 +614,6 @@ class system_api:
upAddr = 'https://raw.githubusercontent.com/midoks/mdserver-web/master/version/info.json'
try:
version = public.httpGet(upAddr)
print version
version = json.loads(version)
return version[0]
except Exception as e:
+3 -3
View File
@@ -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 = '<div class="SafeRestartCode pd15" style="line-height:26px"></div>';
$(".bt-window-restart").html(body);
$(".SafeRestartCode").append("<p>正在停止Web服务</p>");
pluginService('openresty', 'stop', function (r1) {
pluginIndexService('openresty', 'stop', function (r1) {
$(".SafeRestartCode p").addClass('c9');
$(".SafeRestartCode").append("<p>正在停止MySQL服务...</p>");
pluginService('mysql','stop', function (r2) {
pluginIndexService('mysql','stop', function (r2) {
$(".SafeRestartCode p").addClass('c9');
$(".SafeRestartCode").append("<p>开始重启服务器...</p>");
$.post('/system/restart_server', '',function (rdata) {
+10
View File
@@ -1,4 +1,14 @@
[
{
"version": "0.0.6",
"content": "1.修复重复js方法",
"path": "https://github.com//midoks/mdserver-web/archive/0.0.6.zip"
},
{
"version": "0.0.5",
"content": "1.基本功能OK<br/>,2.网站HTTPS功能验证!",
"path": "https://github.com//midoks/mdserver-web/archive/0.0.5.zip"
},
{
"version": "0.0.1.2",
"content": "1.项目初建!<br/>2.面板更新功能!",