From 4096cf72dbc1c53af75134b592064eadca412087 Mon Sep 17 00:00:00 2001
From: Kamisato-Ayaka-233 <2627706725@qq.com>
Date: Sun, 3 Sep 2023 11:21:35 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90A=E3=80=91=E2=80=9C=E7=B1=B3=E6=B8=B8?=
=?UTF-8?q?=E7=A4=BE=E6=96=87=E7=AB=A0=E2=80=9D=E5=A2=9E=E5=8A=A0=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E2=80=9C=E8=8E=B7=E5=8F=96=E6=96=87=E7=AB=A0=E5=8A=A8?=
=?UTF-8?q?=E6=80=81=E6=95=B0=E6=8D=AE=E2=80=9D=20=E3=80=90P=E3=80=91?=
=?UTF-8?q?=E2=80=9C=E7=B1=B3=E6=B8=B8=E7=A4=BE=E6=96=87=E7=AB=A0=E2=80=9D?=
=?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=89=80=E6=9C=89=E6=8E=A5=E5=8F=A3=E8=A1=A5?=
=?UTF-8?q?=E5=85=85=E2=80=9Cself=5Foperation=E2=80=9D=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E7=9A=84=E8=AF=B4=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hoyolab/article/article.md | 91 +++++++++++++++++++++++++++++++++++++-
1 file changed, 90 insertions(+), 1 deletion(-)
diff --git a/hoyolab/article/article.md b/hoyolab/article/article.md
index 162ddb5..b9e17be 100644
--- a/hoyolab/article/article.md
+++ b/hoyolab/article/article.md
@@ -6,6 +6,7 @@
- [获取官方资讯](#获取官方资讯)
- [获取完整文章信息](#获取完整文章信息)
- [获取文章评论信息](#获取文章评论信息)
+- [获取文章动态数据](#获取文章动态数据)
---
@@ -708,7 +709,7 @@ _请求方式:GET_
| link_card_list | arr | 该文章所含的链接卡片的信息 | |
| help_sys | null | 待调查 | |
| is_official_master | bool | 待调查 | |
-| self_operation | obj | Cookie对应账号(SToken)对该评论的操作信息 | |
+| self_operation | obj | Cookie对应账号(SToken)对该文章的操作信息 | |
| is_user_master | bool | 待调查 | |
| hot_reply_exist | bool | 待调查 | |
| vote_count | num | 待调查 | |
@@ -1349,3 +1350,91 @@ _请求方式:GET_
```
+
+## 获取文章动态数据
+
+_请求方式:GET_
+
+`https://bbs-api.miyoushe.com/post/wapi/getDynamicData`
+
+**参数:**
+
+| 字段 | 类型 | 内容 | 备注 |
+| --- | ---- | ---- | ---- |
+| post_ids | str | 通过英文逗号分隔的文章ID | |
+
+**JSON返回:**
+
+根对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| --- | ---- | ---- | ---- |
+| retcode | num | 返回码 | |
+| message | str | 返回消息 | |
+| data | obj | 文章动态数据 | |
+
+`data`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| --- | ---- | ---- | ---- |
+| list | arr | 文章动态数据 | |
+
+`data`对象→`list`数组→对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| --- | ---- | ---- | ---- |
+| post_id | str | 文章ID | |
+| is_upvote | bool | 是否点赞 | |
+| self_operation | obj | Cookie对应账号(SToken)对该文章的操作信息 | |
+| stat | obj | 该文章的动态数据 | |
+
+`data`对象→`list`数组→对象→`self_operation`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| --- | ---- | ---- | ---- |
+| is_collected | bool | 是否收藏 | |
+| attitude | num | 是否点赞
0 未点赞
1 点赞 | |
+
+`data`对象→`list`数组→对象→`stat`对象:
+
+| 字段 | 类型 | 内容 | 备注 |
+| --- | ---- | ---- | ---- |
+| bookmark_num | num | 收藏数量 | |
+| forward_num | num | 转发数量 | |
+| like_num | num | 点赞数量 | |
+| view_num | num | 观看数量 | |
+| reply_num | num | 评论数量 | |
+| original_like_num | num | 待调查 | |
+| post_upvote_stat | arr | 待调查 | |
+
+
+查看示例
+
+```json
+{
+ "retcode": 0,
+ "message": "OK",
+ "data": {
+ "list": [
+ {
+ "post_id": "43052645",
+ "is_upvote": false,
+ "stat": {
+ "view_num": 669448,
+ "reply_num": 2615,
+ "like_num": 111948,
+ "bookmark_num": 771,
+ "forward_num": 0,
+ "original_like_num": 0,
+ "post_upvote_stat": []
+ },
+ "self_operation": {
+ "attitude": 0,
+ "is_collected": false
+ }
+ }
+ ]
+ }
+}
+```
+