|
|
@ -166,13 +166,13 @@ class ReqAction: |
|
|
|
if isinstance(temp_path_list, list) and base_path[:-1] not in [_dir['path'] for _dir in temp_path_list]: |
|
|
|
if isinstance(temp_path_list, list) and base_path[:-1] not in [_dir['path'] for _dir in temp_path_list]: |
|
|
|
self.create_dir(base_path) |
|
|
|
self.create_dir(base_path) |
|
|
|
base_path_list = self.get_dir_list(base_path) |
|
|
|
base_path_list = self.get_dir_list(base_path) |
|
|
|
if isinstance(base_path_list, list) and save_path not in [_dir['path'] for _dir in base_path_list]: |
|
|
|
|
|
|
|
self.create_dir(save_path) |
|
|
|
|
|
|
|
verified_links = self.verify_links(save_link, save_code) |
|
|
|
verified_links = self.verify_links(save_link, save_code) |
|
|
|
if isinstance(verified_links, int): |
|
|
|
if isinstance(verified_links, int): |
|
|
|
if verified_links == -9: |
|
|
|
if verified_links == -9: |
|
|
|
return True, '链接密码错误' |
|
|
|
return True, '链接密码错误' |
|
|
|
if isinstance(verified_links, list): |
|
|
|
if isinstance(verified_links, list): |
|
|
|
|
|
|
|
if isinstance(base_path_list, list) and save_path not in [_dir['path'] for _dir in base_path_list]: |
|
|
|
|
|
|
|
self.create_dir(save_path) |
|
|
|
result, name = self.transfer_files(verified_links, save_path) |
|
|
|
result, name = self.transfer_files(verified_links, save_path) |
|
|
|
if result == 0 or result == 4: |
|
|
|
if result == 0 or result == 4: |
|
|
|
return True, name |
|
|
|
return True, name |
|
|
|