1. 修复文件路径修正后无法反编译的问题

v1.0.7
kelvinben 4 years ago committed by Your Name
parent 69dfc2fc9a
commit a940a8d6b3
  1. 5
      libs/task/base_task.py
  2. 4
      libs/task/download_task.py

@ -74,8 +74,11 @@ class BaseTask(object):
cache_info = DownloadTask().start(self.path,self.types) cache_info = DownloadTask().start(self.path,self.types)
cacar_path = cache_info["path"] cacar_path = cache_info["path"]
types = cache_info["type"] types = cache_info["type"]
print(os.path.exists(cacar_path))
print(cores.download_flag)
if not (os.path.exists(cacar_path) and cores.download_flag): if (not os.path.exists(cacar_path) and cores.download_flag):
print("[-] File download failed! Please download the file manually and try again.") print("[-] File download failed! Please download the file manually and try again.")
return task_info return task_info

@ -33,9 +33,9 @@ class DownloadTask(object):
if not(path.startswith("http://") or path.startswith("https://")): if not(path.startswith("http://") or path.startswith("https://")):
if not os.path.isdir(path): if not os.path.isdir(path):
return {"path":self.path,"type":types} return {"path":path,"type":types}
else: else:
return {"path":self.path,"type":self.types} return {"path":path,"type":types}
else: else:
print("[*] Detected that the task is not local, preparing to download file......") print("[*] Detected that the task is not local, preparing to download file......")
cache_path = os.path.join(cores.download_path, file_name) cache_path = os.path.join(cores.download_path, file_name)

Loading…
Cancel
Save