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

@ -75,7 +75,10 @@ class BaseTask(object):
cacar_path = cache_info["path"]
types = cache_info["type"]
if not (os.path.exists(cacar_path) and cores.download_flag):
print(os.path.exists(cacar_path))
print(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.")
return task_info

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

Loading…
Cancel
Save