This commit is contained in:
parent
a875293116
commit
2dc96cd04e
|
|
@ -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, '已经是最新,无需更新!')
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue