fix: template
This commit is contained in:
@@ -214,7 +214,8 @@ class TemplateManagerCloud:
|
||||
track_count=len(draft_content.get('tracks', [])),
|
||||
tags=[],
|
||||
is_cloud=False, # 用户导入的模板默认为本地
|
||||
user_id=self.user_id
|
||||
user_id=self.user_id,
|
||||
draft_content=updated_draft # 设置 draft_content
|
||||
)
|
||||
|
||||
logger.info(f"Successfully processed template: {template_name} -> {template_id}")
|
||||
@@ -531,7 +532,8 @@ class TemplateManagerCloud:
|
||||
track_count=len(draft_content.get('tracks', [])),
|
||||
tags=tags or [],
|
||||
is_cloud=is_cloud,
|
||||
user_id=self.user_id
|
||||
user_id=self.user_id,
|
||||
draft_content=draft_content # 设置 draft_content
|
||||
)
|
||||
|
||||
# 保存到云端存储
|
||||
|
||||
Reference in New Issue
Block a user