mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-07 21:25:51 +00:00
Compare commits
4 Commits
3a23bab360
...
ec09ed420c
| Author | SHA1 | Date | |
|---|---|---|---|
| ec09ed420c | |||
| b594c22ca7 | |||
| 59ca79a03b | |||
| dd5d93e5c5 |
@@ -356,6 +356,25 @@ export function startBatchFilling() {
|
|||||||
totalBatches = Math.ceil(chatHistoryLength / threshold);
|
totalBatches = Math.ceil(chatHistoryLength / threshold);
|
||||||
currentBatch = 0;
|
currentBatch = 0;
|
||||||
|
|
||||||
|
const startFloorInput = document.getElementById('floor-start-input');
|
||||||
|
console.log('[Amily2 Debug] startFloorInput found:', !!startFloorInput);
|
||||||
|
if (startFloorInput) {
|
||||||
|
console.log('[Amily2 Debug] startFloorInput value:', startFloorInput.value);
|
||||||
|
const val = parseInt(startFloorInput.value, 10);
|
||||||
|
console.log('[Amily2 Debug] Parsed val:', val, 'Threshold:', threshold);
|
||||||
|
|
||||||
|
if (!isNaN(val) && val > 1) {
|
||||||
|
const startBatch = Math.ceil(val / threshold);
|
||||||
|
console.log('[Amily2 Debug] Calculated startBatch:', startBatch);
|
||||||
|
currentBatch = startBatch - 1;
|
||||||
|
log(`根据设定,将从第 ${startBatch} 批次(包含楼层 ${val})开始执行。`, 'info');
|
||||||
|
} else {
|
||||||
|
console.log('[Amily2 Debug] Value is NaN or <= 1');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.log('[Amily2 Debug] startFloorInput element not found');
|
||||||
|
}
|
||||||
|
|
||||||
log(`准备开始批量填表任务,共 ${totalBatches} 个批次。`, 'info');
|
log(`准备开始批量填表任务,共 ${totalBatches} 个批次。`, 'info');
|
||||||
processNextBatch();
|
processNextBatch();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,13 @@ function insertRow(state, tableIndex, data) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
table.rows.push(newRow);
|
table.rows.push(newRow);
|
||||||
|
|
||||||
|
// 同步更新 rowStatuses
|
||||||
|
if (!table.rowStatuses) {
|
||||||
|
table.rowStatuses = Array(table.rows.length - 1).fill('normal');
|
||||||
|
}
|
||||||
|
table.rowStatuses.push('normal');
|
||||||
|
|
||||||
return { state, changes };
|
return { state, changes };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user