update 6.2.4

This commit is contained in:
jose
2019-09-07 16:25:23 +08:00
parent c86a5c2466
commit 5663522d80
199 changed files with 14589 additions and 719 deletions
+4 -1
View File
@@ -56,6 +56,10 @@ class bt_task:
else:
sql = sql.where('status=?',(get.status,))
data = sql.field('id,name,type,shell,other,status,exectime,endtime,addtime').order('id asc').limit('10').select();
if type(data) == str:
public.WriteLog('Task queue',data)
return []
if not 'num' in get: get.num = 15
num = int(get.num)
for i in range(len(data)):
@@ -133,7 +137,6 @@ class bt_task:
down_file = downloadFile.downloadFile()
down_file.logPath = log_file
print(down_file.DownloadFile(task_shell,other))
os.system("chown www.www {}".format(other))
elif task_type == 2: #解压文件
zip_info = json.loads(other)
self._unzip(task_shell,zip_info['dfile'],zip_info['password'],log_file)