|
@@ -830,7 +830,8 @@ class HeadlessBrowserService {
|
|
|
platform === 'xiaohongshu' || platform === 'douyin' || platform === 'baijiahao'
|
|
platform === 'xiaohongshu' || platform === 'douyin' || platform === 'baijiahao'
|
|
|
? 20
|
|
? 20
|
|
|
: 50;
|
|
: 50;
|
|
|
- let maxPages = 30;
|
|
|
|
|
|
|
+ // Bug #6071: 提高 xiaohongshu 分页上限(原 30 页 = 600 条不够),改为 200 页 = 4000 条
|
|
|
|
|
+ let maxPages = platform === 'xiaohongshu' ? 200 : 30;
|
|
|
const allWorks: WorkItem[] = [];
|
|
const allWorks: WorkItem[] = [];
|
|
|
const seenIds = new Set<string>();
|
|
const seenIds = new Set<string>();
|
|
|
const legacyToCanonical = new Map<string, string>();
|
|
const legacyToCanonical = new Map<string, string>();
|
|
@@ -2361,7 +2362,8 @@ class HeadlessBrowserService {
|
|
|
shareCount: number;
|
|
shareCount: number;
|
|
|
}> = [];
|
|
}> = [];
|
|
|
|
|
|
|
|
- let maxPages = 120;
|
|
|
|
|
|
|
+ // Bug #6071: 提高分页上限(原 120 页 = 2400 条可能不够),改为 200 页 = 4000 条
|
|
|
|
|
+ let maxPages = 200;
|
|
|
|
|
|
|
|
// 设置 API 响应监听器 - 在导航之前绑定
|
|
// 设置 API 响应监听器 - 在导航之前绑定
|
|
|
let apiResponseReceived = false;
|
|
let apiResponseReceived = false;
|