mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-17 15:46:14 +08:00
fix: quick fav
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -288,7 +288,8 @@ class BangumiIntroController extends CommonController {
|
|||||||
// 收藏至默认文件夹
|
// 收藏至默认文件夹
|
||||||
if (type == 'default') {
|
if (type == 'default') {
|
||||||
SmartDialog.showLoading(msg: '请求中');
|
SmartDialog.showLoading(msg: '请求中');
|
||||||
await queryVideoInFolder();
|
queryVideoInFolder().then((res) async {
|
||||||
|
if (res['status']) {
|
||||||
int defaultFolderId = favFolderData.value.list!.first.id!;
|
int defaultFolderId = favFolderData.value.list!.first.id!;
|
||||||
int favStatus = favFolderData.value.list!.first.favState!;
|
int favStatus = favFolderData.value.list!.first.favState!;
|
||||||
var result = await VideoHttp.favVideo(
|
var result = await VideoHttp.favVideo(
|
||||||
@@ -306,6 +307,10 @@ class BangumiIntroController extends CommonController {
|
|||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(result['msg']);
|
SmartDialog.showToast(result['msg']);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
SmartDialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -391,7 +391,8 @@ class VideoIntroController extends GetxController
|
|||||||
// 收藏至默认文件夹
|
// 收藏至默认文件夹
|
||||||
if (type == 'default') {
|
if (type == 'default') {
|
||||||
SmartDialog.showLoading(msg: '请求中');
|
SmartDialog.showLoading(msg: '请求中');
|
||||||
await queryVideoInFolder();
|
queryVideoInFolder().then((res) async {
|
||||||
|
if (res['status']) {
|
||||||
int defaultFolderId = favFolderData.value.list!.first.id!;
|
int defaultFolderId = favFolderData.value.list!.first.id!;
|
||||||
int favStatus = favFolderData.value.list!.first.favState!;
|
int favStatus = favFolderData.value.list!.first.favState!;
|
||||||
var result = await VideoHttp.favVideo(
|
var result = await VideoHttp.favVideo(
|
||||||
@@ -407,6 +408,10 @@ class VideoIntroController extends GetxController
|
|||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(result['msg']);
|
SmartDialog.showToast(result['msg']);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
SmartDialog.dismiss();
|
||||||
|
}
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user