Update system_api.py

pull/109/head
Mr Chen 7 years ago
parent 075af4f44b
commit 8b13a6ad52
  1. 5
      class/core/system_api.py

@ -608,6 +608,11 @@ class system_api:
'id,name,type,status,addtime, execstr', taskAdd) 'id,name,type,status,addtime, execstr', taskAdd)
return public.returnJson(True, '下载中...') return public.returnJson(True, '下载中...')
if stype == 'update_install':
public.EexecShell('unzip -o mdserver-web.zip -d ./')
public.execShell('rm -f mdserver-web.zip')
return public.returnJson(True, '安装更新成功!')
return public.returnJson(False, '已经是最新,无需更新!') return public.returnJson(False, '已经是最新,无需更新!')
except Exception as ex: except Exception as ex:
print ex print ex

Loading…
Cancel
Save