草稿更新失败了,不进行渲染操作。

This commit is contained in:
Hommy
2026-05-06 13:59:35 +08:00
parent 3ce429e3ac
commit 11e30d3b72
+3 -2
View File
@@ -263,9 +263,10 @@ def download_single_file(file_url: str, target_dir: str) -> bool:
# 写入文件
safe_write_file(full_file_path, response.content, is_binary=True)
# 如果是JSON文件,修改其中的路径
# 如果是JSON文件,修改其中的路径;更新失败则本次下载失败(不应继续导出)
if full_file_path.endswith(('draft_info.json', 'draft_content.json')):
update_json_file_paths(full_file_path, target_dir, url_draft_id)
if not update_json_file_paths(full_file_path, target_dir, url_draft_id):
return False
return True