Commit eb6d9e7d authored by hujun's avatar hujun

1

parent 48238e24
...@@ -103,7 +103,7 @@ class DownFile: ...@@ -103,7 +103,7 @@ class DownFile:
if int(item['type']) == 1: if int(item['type']) == 1:
try: try:
self.local.count_sleep = self.local.count_sleep + 1 # 增加暂停计数 # self.local.count_sleep = self.local.count_sleep + 1 # 增加暂停计数
self.local.url = self.ali_yun_sdk(item['call_time'], item['call_id']) self.local.url = self.ali_yun_sdk(item['call_time'], item['call_id'])
self.local.is_ok = 0 self.local.is_ok = 0
except Exception as result: except Exception as result:
...@@ -116,7 +116,7 @@ class DownFile: ...@@ -116,7 +116,7 @@ class DownFile:
# 第二次尝试 # 第二次尝试
if self.local.is_ok == 1: if self.local.is_ok == 1:
try: try:
self.local.count_sleep = self.local.count_sleep + 1 # 增加暂停计数 # self.local.count_sleep = self.local.count_sleep + 1 # 增加暂停计数
self.local.url = self.ali_yun_sdk(item['call_time'], item['call_id']) self.local.url = self.ali_yun_sdk(item['call_time'], item['call_id'])
except Exception as result: except Exception as result:
self.lock.acquire() self.lock.acquire()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment