From 8b13a6ad5257731f08ea822901cc23787fb3da33 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 4 Dec 2018 19:19:26 +0800 Subject: [PATCH] Update system_api.py --- class/core/system_api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/class/core/system_api.py b/class/core/system_api.py index d3c6d6c75..3abdcecfe 100755 --- a/class/core/system_api.py +++ b/class/core/system_api.py @@ -608,6 +608,11 @@ class system_api: 'id,name,type,status,addtime, execstr', taskAdd) 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, '已经是最新,无需更新!') except Exception as ex: print ex