This commit is contained in:
Leo
2025-11-16 00:28:52 +08:00
parent 01f0be6198
commit 7648b934ed

View File

@@ -1738,6 +1738,15 @@ public class TencentDocController extends BaseController {
// 结束行默认到2500行
Integer endRow = params.get("endRow") != null ?
Integer.valueOf(params.get("endRow").toString()) : 2500;
// 记录接收到的参数
log.info("接收到参数 - startRow: {}, endRow: {}, params: {}", startRow, endRow, params);
// 如果 endRow 小于 startRow + 1000可能是前端传错了强制设置为 2500
if (endRow < startRow + 1000) {
log.warn("检测到 endRow ({}) 可能不正确,强制设置为 2500", endRow);
endRow = 2500;
}
if (accessToken == null || fileId == null || sheetId == null) {
return AjaxResult.error("文档配置不完整,请先配置 fileId 和 sheetId");