mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
@@ -595,17 +595,17 @@ class _EpisodePanelState extends State<EpisodePanel>
|
||||
? const Icon(Icons.notifications_off_outlined)
|
||||
: const Icon(Icons.notifications_active_outlined),
|
||||
onPressed: () async {
|
||||
final result = await FavHttp.seasonFav(
|
||||
final res = await FavHttp.seasonFav(
|
||||
isFav: response,
|
||||
seasonId: widget.seasonId,
|
||||
);
|
||||
if (result.isSuccess) {
|
||||
if (res.isSuccess) {
|
||||
SmartDialog.showToast('${response ? '取消' : ''}订阅成功');
|
||||
_favState!.value = Success(!response);
|
||||
widget.ugcIntroController?.seasonFavState[widget.seasonId] =
|
||||
!response;
|
||||
} else {
|
||||
result.toast();
|
||||
res.toast();
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user