pull/109/head
Mr Chen 7 years ago
parent 013b51fbcb
commit 5be7aa622e
  1. 2
      class/core/system_api.py
  2. 8
      static/js/index.js

@ -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…
Cancel
Save