File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313## 限制
1414
15- 为了提高性能并避免达到请求速率的限制,目前仅会加载 20 页评论,即 20 \* 49 条评论,以及每条评论的最多 3 条子评论。
15+ 为了提高性能并避免达到请求速率的限制,目前仅会加载 20 页评论,即 20 \* 20 条评论,以及每条评论的最多 3 条子评论。
1616
1717## License
1818
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default function App() {
5858 />
5959 < div className = 'note' >
6060 Note: 由于性能和 Rate Limit 的原因,目前仅会加载 { PAGE_LIMIT } { ' ' }
61- 页评论,即 { PAGE_LIMIT } * 49 条评论,及其至多 3 条子评论。
61+ 页评论,即 { PAGE_LIMIT } * 20 条评论,及其至多 3 条子评论。
6262 </ div >
6363 < div className = 'comment-tree' >
6464 < CommentTree comments = { comments } />
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export async function fetchComments(videoId: string) {
1111 return replies
1212 }
1313
14- const pageSize = 49
14+ const pageSize = 20
1515 let page = 1
1616
1717 while ( true ) {
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ interface CommentRequestParams {
313313 /**
314314 * 每页项数
315315 * 默认为20
316- * 定义域:1-49
316+ * 定义域:1-20
317317 */
318318 ps ?: number
319319 /**
You can’t perform that action at this time.
0 commit comments