feat: live/article report

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-28 10:34:31 +08:00
parent 3b34cecdcd
commit 49fff821b1
5 changed files with 64 additions and 19 deletions

View File

@@ -816,6 +816,32 @@ class VideoHttp {
}
}
static Future roomEntryAction({
roomId,
}) async {
await Request().post(
Api.roomEntryAction,
queryParameters: {
'csrf': await Request.getCsrf(),
},
data: {
'room_id': roomId,
'platform': 'pc',
},
);
}
static Future historyReport({
aid,
type,
}) async {
await Request().post(Api.historyReport, queryParameters: {
if (aid != null) 'aid': aid,
if (type != null) 'type': type,
'csrf': Accounts.main.csrf,
});
}
// 视频播放进度
static Future heartBeat({
bvid,