From 2f0207db2c0fc2d576ac7612905bb041ff52b342 Mon Sep 17 00:00:00 2001
From: lb-chc <69136546+lb-chc@users.noreply.github.com>
Date: Mon, 11 Apr 2022 08:37:52 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=8C=E7=BA=A7=E8=AF=84?=
=?UTF-8?q?=E8=AE=BA=E7=9A=84=E5=AE=9A=E4=B9=89=E5=9F=9F=E6=9C=89=E6=95=88?=
=?UTF-8?q?=E8=8C=83=E5=9B=B4=20(#346)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
对于
## 获取评论区明细_翻页加载
> http://api.bilibili.com/x/v2/reply
的ps参数,虽然可以最高设置为45,但与之对应的replies[]最多仅可有22个项, 意味着遍历二级评论所需页数计算中, 每页内容数量应为22, 既所需页数 = rcount / 22
---
comment/list.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/comment/list.md b/comment/list.md
index 35724f0..3e36ddc 100644
--- a/comment/list.md
+++ b/comment/list.md
@@ -27,7 +27,7 @@
| oid | num | 目标评论区 id | 必要 | |
| sort | num | 排序方式 | 非必要 | 默认为0
0:按时间
1:按点赞数
2:按回复数 |
| nohot | num | 是否不显示热评 | 非必要 | 默认为0
1:不显示
0:显示 |
-| ps | num | 每页项数 | 非必要 | 默认为20
定义域:1-49 |
+| ps | num | 每页项数 | 非必要 | 默认为20
定义域:1-49
对于data_replies[], 既遍历二级评论用途的定义域有效范围为22 |
| pn | num | 页码 | 非必要 | 默认为1 |
**json回复:**
@@ -47,8 +47,8 @@
| ------------ | -------------------------------- | -------- | ---------------- |
| page | obj | 页信息 | |
| config | obj | 评论区显示控制 | |
-| replies | 禁用时:null
正常时:array | 评论列表 | |
-| hots | 禁用时:null
正常时:array | 热评列表 | |
+| replies | 禁用时:null
正常时:array | 评论列表 | 最大容量为22 |
+| hots | 禁用时:null
正常时:array | 热评列表 | 由于ps定义域为45,最大容量可能也为23 |
| upper | obj | 置顶评论 | |
| top | null | (?) | |
| notice | 无效时:null
有效时:obj | 评论区公告信息 | |