This commit is contained in:
Mr Chen 2018-12-04 13:38:08 +08:00
parent a875293116
commit 2dc96cd04e
2 changed files with 5 additions and 5 deletions

View File

@ -597,7 +597,7 @@ class system_api:
'unzip -o mdserver-web.zip -d ' + os.getcwd() + '/')
public.execShell('rm -rf mdserver-web.zip')
public.execShell('restart.sh')
public.execShell('sh restart.sh')
print v_new_info
return public.returnJson(False, '已经是最新,无需更新!')

View File

@ -548,11 +548,11 @@ function updateVersion(version) {
// window.location.reload();
// }, 3000);
}).error(function() {
// layer.msg(lan.index.update_ok, { icon: 1 });
layer.msg(lan.index.update_ok, { icon: 1 });
// $.get('/system?action=ReWeb', function() {});
// setTimeout(function() {
// window.location.reload();
// }, 3000);
setTimeout(function() {
window.location.reload();
}, 3000);
});
}