Update system_api.py
This commit is contained in:
parent
ac29bb098b
commit
72c5efcc2f
|
|
@ -688,6 +688,8 @@ class system_api:
|
|||
mw.execShell('unzip -o ' + toPath + '/mw.zip' + ' -d ./')
|
||||
mw.execShell('unzip -o mw.zip -d ./')
|
||||
mw.execShell('rm -f mw.zip')
|
||||
|
||||
self.restartMw()
|
||||
return mw.returnJson(True, '安装更新成功,需自己重启!')
|
||||
|
||||
return mw.returnJson(False, '已经是最新,无需更新!')
|
||||
|
|
|
|||
Loading…
Reference in New Issue