mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
feat: unfollow bangumi, change followState
This commit is contained in:
@@ -320,6 +320,8 @@ class Api {
|
||||
// 取消追番
|
||||
static const String bangumiDel = '/pgc/web/follow/del';
|
||||
|
||||
static const String bangumiUpdate = '/pgc/web/follow/status/update';
|
||||
|
||||
// 番剧列表
|
||||
// https://api.bilibili.com/pgc/season/index/result?
|
||||
// st=1&
|
||||
|
||||
@@ -766,6 +766,27 @@ class VideoHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future bangumiUpdate({
|
||||
dynamic seasonId,
|
||||
dynamic status,
|
||||
}) async {
|
||||
var res = await Request().post(
|
||||
Api.bangumiUpdate,
|
||||
data: {
|
||||
'season_id': seasonId,
|
||||
'status': status,
|
||||
'csrf': await Request.getCsrf(),
|
||||
},
|
||||
options: Options(
|
||||
contentType: Headers.formUrlEncodedContentType,
|
||||
),
|
||||
);
|
||||
return {
|
||||
'status': res.data['code'] == 0,
|
||||
'msg': res.data['result'] == null ? 'failed' : res.data['result']['toast']
|
||||
};
|
||||
}
|
||||
|
||||
// 查看视频同时在看人数
|
||||
static Future onlineTotal({int? aid, String? bvid, int? cid}) async {
|
||||
var res = await Request().get(Api.onlineTotal, data: {
|
||||
|
||||
Reference in New Issue
Block a user