fix: del fav item

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-26 12:18:02 +08:00
parent bae22b6de7
commit 16cdbab7ab
6 changed files with 27 additions and 13 deletions

View File

@@ -563,11 +563,15 @@ class VideoHttp {
}
// (取消)收藏
static Future favVideo(
{required int aid, String? addIds, String? delIds}) async {
static Future favVideo({
required int aid,
String? addIds,
String? delIds,
int? type,
}) async {
var res = await Request().post(Api.favVideo, queryParameters: {
'rid': aid,
'type': 2,
'type': type ?? 2,
'add_media_ids': addIds ?? '',
'del_media_ids': delIds ?? '',
'csrf': await Request.getCsrf(),