fix: 避免识别异常与支付锁泄漏
修复 ASR 取消后的孤立会话、OCR 表格重复及支付锁无法回收的问题,并补充回归测试。
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user