diff --git a/apps/desktop/src-tauri/src/business/services/template_matching_result_service.rs b/apps/desktop/src-tauri/src/business/services/template_matching_result_service.rs index 6740e73..3025764 100644 --- a/apps/desktop/src-tauri/src/business/services/template_matching_result_service.rs +++ b/apps/desktop/src-tauri/src/business/services/template_matching_result_service.rs @@ -386,7 +386,7 @@ impl TemplateMatchingResultService { let output_file_path = if output_path.ends_with(".json") { output_path.to_string() } else { - format!("{}/draft_content_v2_{}.json", output_path, result_id) + format!("{}/draft_content.json", output_path) }; // 序列化并写入文件 @@ -396,7 +396,7 @@ impl TemplateMatchingResultService { std::fs::write(&output_file_path, json_content) .map_err(|e| anyhow!("写入文件失败 {}: {}", output_file_path, e))?; - println!("✅ V2导出成功: {}", output_file_path); + println!("✅ 导出成功: {}", output_file_path); Ok(output_file_path) } diff --git a/apps/desktop/src-tauri/src/presentation/commands/template_matching_result_commands.rs b/apps/desktop/src-tauri/src/presentation/commands/template_matching_result_commands.rs index bf1107d..42fb3e1 100644 --- a/apps/desktop/src-tauri/src/presentation/commands/template_matching_result_commands.rs +++ b/apps/desktop/src-tauri/src/presentation/commands/template_matching_result_commands.rs @@ -270,7 +270,7 @@ pub async fn export_matching_result_to_jianying_v2( output_path: String, database: State<'_, Arc>, ) -> Result { - println!("🎬 开始导出匹配结果到剪映格式 (V2)"); + println!("🎬 开始导出匹配结果到剪映格式"); println!("📋 导出参数:"); println!(" - 匹配结果ID: {}", result_id); println!(" - 输出路径: {}", output_path); @@ -283,12 +283,12 @@ pub async fn export_matching_result_to_jianying_v2( match service.export_to_jianying_v2(&result_id, &output_path, material_repository, template_service).await { Ok(file_path) => { - println!("✅ V2导出成功: {}", file_path); + println!("✅ 导出成功: {}", file_path); Ok(file_path) } Err(e) => { - eprintln!("❌ V2导出失败: {}", e); - Err(format!("V2导出失败: {}", e)) + eprintln!("❌ 导出失败: {}", e); + Err(format!("导出失败: {}", e)) } } } diff --git a/apps/desktop/src/components/TemplateMatchingResultCard.tsx b/apps/desktop/src/components/TemplateMatchingResultCard.tsx index de70d4b..5b506e8 100644 --- a/apps/desktop/src/components/TemplateMatchingResultCard.tsx +++ b/apps/desktop/src/components/TemplateMatchingResultCard.tsx @@ -15,7 +15,6 @@ export const TemplateMatchingResultCard: React.FC { // 格式化时长显示 @@ -190,22 +189,13 @@ export const TemplateMatchingResultCard: React.FC )} - {onExportToJianying && ( - - )} {onExportToJianyingV2 && ( )}