1
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user