diff --git a/apps/desktop/src/pages/tools/VoiceGenerationHistory.tsx b/apps/desktop/src/pages/tools/VoiceGenerationHistory.tsx index f013d09..bc636be 100644 --- a/apps/desktop/src/pages/tools/VoiceGenerationHistory.tsx +++ b/apps/desktop/src/pages/tools/VoiceGenerationHistory.tsx @@ -63,13 +63,30 @@ const VoiceGenerationHistory: React.FC = () => { // 调试:打印原始记录数据 console.log('🔍 原始记录数据:', allRecords); if (allRecords.length > 0) { - console.log('🔍 第一条记录状态:', { + console.log('🔍 第一条记录详细信息:', { + id: allRecords[0].id, status: allRecords[0].status, statusType: typeof allRecords[0].status, - statusValue: JSON.stringify(allRecords[0].status) + statusValue: JSON.stringify(allRecords[0].status), + audio_url: allRecords[0].audio_url, + local_file_path: allRecords[0].local_file_path, + hasAudio: !!(allRecords[0].audio_url || allRecords[0].local_file_path), + text: allRecords[0].text?.substring(0, 50) + '...' }); } + // 统计音频信息 + const audioStats = allRecords.reduce((stats, record) => { + stats.total++; + if (record.audio_url) stats.hasAudioUrl++; + if (record.local_file_path) stats.hasLocalPath++; + if (record.audio_url || record.local_file_path) stats.hasAnyAudio++; + if (record.status === 'completed') stats.completed++; + return stats; + }, { total: 0, hasAudioUrl: 0, hasLocalPath: 0, hasAnyAudio: 0, completed: 0 }); + + console.log('📊 音频统计信息:', audioStats); + // 标准化记录状态 const normalizedRecords = allRecords.map(record => ({ ...record, @@ -503,6 +520,17 @@ const VoiceGenerationHistory: React.FC = () => { {record.emotion && 情感: {record.emotion}} + {/* 调试:音频信息 */} +