opt get season status

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-11-13 14:26:24 +08:00
parent c0dbd6cbb2
commit 50a035a479
4 changed files with 35 additions and 13 deletions

View File

@@ -972,4 +972,6 @@ class Api {
static const String followedUp = '/x/relation/followings/followed_upper';
static const String sameFollowing = '/x/relation/same/followings';
static const String seasonStatus = '/pgc/view/web/season/user/status';
}

View File

@@ -242,4 +242,18 @@ class PgcHttp {
return {'status': false, 'msg': res.data['message']};
}
}
static Future seasonStatus(dynamic seasonId) async {
var res = await Request().get(
Api.seasonStatus,
queryParameters: {
'season_id': seasonId,
},
);
if (res.data['code'] == 0) {
return {'status': true, 'data': res.data['result']};
} else {
return {'status': false, 'msg': res.data['message']};
}
}
}