更新拒绝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:
# 1. Create Task
try:
normalized_hotwords = []
normalized_hotwords = {}
if hotwords:
for hw in hotwords:
if isinstance(hw, dict):
word = hw.get("word")
weight = hw.get("weight")
if word:
if weight and weight != 1:
normalized_hotwords.append(f"{word}:{weight}")
else:
normalized_hotwords.append(word)
normalized_hotwords[word] = int(weight) if weight is not None else 20
elif isinstance(hw, str):
normalized_hotwords.append(hw)
normalized_hotwords[hw] = 20
payload = {
"file_path": audio_path,

View File

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