fix: 避免识别异常与支付锁泄漏

修复 ASR 取消后的孤立会话、OCR 表格重复及支付锁无法回收的问题,并补充回归测试。
This commit is contained in:
lik
2026-11-08 12:43:06 +08:00
parent 7c4a90c113
commit 84461e9445
6 changed files with 76 additions and 7 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ function toMarkdownTable(header, rows) {
const list = cells.slice(0, width).map(cell => cell.trim());
// 某行列数超出表头时并进最后一列,避免丢文字
if (cells.length > width) {
list[width - 1] = `${list[width - 1] || ''} ${cells.slice(width - 1).join(' ')}`.trim();
list[width - 1] = `${list[width - 1] || ''} ${cells.slice(width).join(' ')}`.trim();
}
while (list.length < width) list.push('');
return list.map(escapeTableCell);