Merge branch 'fix'

This commit is contained in:
guozhigq
2024-11-06 23:46:40 +08:00
5 changed files with 23 additions and 25 deletions

View File

@ -509,10 +509,11 @@ class VideoHttp {
}
}
static Future getSubtitle({int? cid, String? bvid}) async {
static Future getSubtitle({int? cid, String? bvid, String? aid}) async {
var res = await Request().get(Api.getSubtitleConfig, data: {
'cid': cid,
'bvid': bvid,
if (bvid != null) 'bvid': bvid,
if (aid != null) 'aid': aid,
});
try {
if (res.data['code'] == 0) {