mod: 数据请求

This commit is contained in:
guozhigq
2023-06-25 22:02:48 +08:00
parent 430ca0f5e6
commit 838a141bc7
7 changed files with 466 additions and 101 deletions

View File

@ -136,6 +136,8 @@ class Api {
// 关注的up动态
// https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all
// https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all?timezone_offset=-480&type=video&page=1&features=itemOpusStyle
// https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all?host_mid=548196587&offset=&page=1&features=itemOpusStyle
static const String followDynamic = '/x/polymer/web-dynamic/v1/feed/all';
// 获取稍后再看

View File

@ -10,7 +10,8 @@ class DynamicsHttp {
var res = await Request().get(Api.followDynamic, data: {
'type': type ?? 'all',
'page': page ?? 1,
'offest': page == 1 ? '' : offset,
'timezone_offset': '-480',
'offset': page == 1 ? '' : offset,
'features': 'itemOpusStyle'
});
if (res.data['code'] == 0) {