切换模板。

This commit is contained in:
Hommy
2026-03-02 16:47:24 +08:00
parent e4ca94d8ae
commit dde37ad683
+1 -1
View File
@@ -32,7 +32,7 @@ def create_draft(width: int, height: int) -> str:
# 使用模板创建草稿
try:
# 复制模板到新草稿目录
template_path = os.path.join(config.TEMPLATE_DIR, "default")
template_path = os.path.join(config.TEMPLATE_DIR, "default2")
draft_path = os.path.join(config.DRAFT_DIR, draft_id)
if os.path.exists(draft_path): shutil.rmtree(draft_path)
shutil.copytree(template_path, draft_path)