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

@@ -61,11 +61,12 @@ class FavDetailController extends CommonController {
return true;
}
onCancelFav(int id) async {
onCancelFav(int id, int type) async {
var result = await VideoHttp.favVideo(
aid: id,
addIds: '',
delIds: mediaId.toString(),
type: type,
);
if (result['status']) {
List dataList = (loadingState.value as Success).response;