更新拒绝bug结束会议无法总结

alan-pg
tanlianwang 2026-03-02 20:22:14 +08:00
parent 7fa49417b2
commit b2b36fd2fe
5 changed files with 7 additions and 7 deletions

View File

@ -374,19 +374,16 @@ class MeetingService:
async with httpx.AsyncClient(timeout=30.0) as client: async with httpx.AsyncClient(timeout=30.0) as client:
# 1. Create Task # 1. Create Task
try: try:
normalized_hotwords = [] normalized_hotwords = {}
if hotwords: if hotwords:
for hw in hotwords: for hw in hotwords:
if isinstance(hw, dict): if isinstance(hw, dict):
word = hw.get("word") word = hw.get("word")
weight = hw.get("weight") weight = hw.get("weight")
if word: if word:
if weight and weight != 1: normalized_hotwords[word] = int(weight) if weight is not None else 20
normalized_hotwords.append(f"{word}:{weight}")
else:
normalized_hotwords.append(word)
elif isinstance(hw, str): elif isinstance(hw, str):
normalized_hotwords.append(hw) normalized_hotwords[hw] = 20
payload = { payload = {
"file_path": audio_path, "file_path": audio_path,

View File

@ -263,7 +263,7 @@ const MeetingDetail: React.FC = () => {
let timer: any; let timer: any;
// Auto-refresh if meeting is in progress (uploaded, transcribing, summarizing) // Auto-refresh if meeting is in progress (uploaded, transcribing, summarizing)
if (meeting && ['uploaded', 'transcribing', 'summarizing'].includes(meeting.status)) { if (meeting && ['uploaded', 'transcribing', 'summarizing'].includes(meeting.status)) {
const allowPolling = meeting.type !== 'live' && !isRecording; const allowPolling = !isRecording;
if (allowPolling) { if (allowPolling) {
timer = setInterval(() => { timer = setInterval(() => {
fetchDetail(true); fetchDetail(true);
@ -585,6 +585,9 @@ const MeetingDetail: React.FC = () => {
if (meeting.type === 'live') { if (meeting.type === 'live') {
Toast.success('录音结束,已保存'); Toast.success('录音结束,已保存');
// Trigger status update immediately
setTimeout(() => fetchDetail(true), 1000);
// Upload full audio for backup/processing if needed // Upload full audio for backup/processing if needed
try { try {
await api.uploadAudioForMeeting(meeting.meeting_id, file); await api.uploadAudioForMeeting(meeting.meeting_id, file);