Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-05 18:55:07 +08:00
parent 707d2f4b07
commit b149ee4998
39 changed files with 472 additions and 535 deletions

View File

@@ -697,9 +697,6 @@ class Api {
static const String pgcSeasonRank = "/pgc/season/rank/web/list";
/// 取消订阅-合集
static const String unfavSeason = '/x/v3/fav/season/unfav';
/// 取消订阅-播单
static const String unfavFolder = '/x/v3/fav/folder/unfav';
@@ -731,7 +728,9 @@ class Api {
// 点赞投币收藏关注
static const String videoRelation = '/x/web-interface/archive/relation';
static const String seasonFav = '/x/v3/fav/season/'; // + fav unfav
static const String favSeason = '/x/v3/fav/season/fav';
static const String unfavSeason = '/x/v3/fav/season/unfav';
/// 稍后再看&收藏夹视频列表
static const String mediaList = '/x/v2/medialist/resource/list';

View File

@@ -510,7 +510,7 @@ class FavHttp {
required dynamic seasonId,
}) async {
var res = await Request().post(
Api.seasonFav + (isFav ? 'unfav' : 'fav'),
isFav ? Api.unfavSeason : Api.favSeason,
data: {
'platform': 'web',
'season_id': seasonId,