mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt get season status
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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']};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user