Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-15 12:24:39 +08:00
parent cb58822009
commit bdc524e486
29 changed files with 223 additions and 248 deletions

View File

@@ -243,15 +243,15 @@ abstract final class PgcHttp {
}
}
static Future seasonStatus(Object seasonId) async {
static Future<LoadingState<Map>> seasonStatus(Object seasonId) async {
final res = await Request().get(
Api.seasonStatus,
queryParameters: {'season_id': seasonId},
);
if (res.data['code'] == 0) {
return {'status': true, 'data': res.data['result']};
return Success(res.data['result']);
} else {
return {'status': false, 'msg': res.data['message']};
return Error(res.data['message']);
}
}
}