This commit is contained in:
Mr Chen
2018-12-05 14:12:10 +08:00
parent 5208f890a6
commit 136db10e28
3 changed files with 5 additions and 5 deletions
-1
View File
@@ -87,7 +87,6 @@ class plugin_api:
def getVersion(self, path):
version_f = path + '/version.pl'
print version_f
if os.path.exists(version_f):
return public.readFile(version_f).strip()
return ''
+4 -3
View File
@@ -625,10 +625,11 @@ class system_api:
# 重启面板
def reWeb(self, get):
# if not public.IsRestart(): return
# public.returnMsg(False,'EXEC_ERR_TASK');
if not public.isRestart():
public.returnMsg(False, '请等待所有安装任务完成再执行!')
# public.ExecShell('/etc/init.d/bt restart &')
return True
public.returnMsg(True, '执行成功!')
# 修复面板
def repPanel(self, get):
+1 -1
View File
@@ -875,7 +875,7 @@ function setSelectChecked(c, d) {
}
}
}
GetTaskCount();
getTaskCount();
function RecInstall() {
$.post("/ajax?action=GetSoftList", "", function(l){
var c = "";