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

@@ -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']};
}
}
}