mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-26 11:08:44 +00:00
@@ -25,7 +25,7 @@ class FavArticleController
|
||||
Future<LoadingState<FavArticleData>> customGetData() =>
|
||||
FavHttp.favArticle(page: page);
|
||||
|
||||
Future<void> onRemove(int index, String id) async {
|
||||
Future<void> onRemove(int index, String? id) async {
|
||||
final res = await FavHttp.communityAction(opusId: id, action: 4);
|
||||
if (res['status']) {
|
||||
loadingState
|
||||
|
||||
@@ -66,7 +66,7 @@ class _FavArticlePageState extends State<FavArticlePage>
|
||||
context: context,
|
||||
title: '确定取消收藏?',
|
||||
onConfirm: () =>
|
||||
_favArticleController.onRemove(index, item.opusId!),
|
||||
_favArticleController.onRemove(index, item.opusId),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -26,7 +26,7 @@ class FavCheeseController
|
||||
Future<LoadingState<SpaceCheeseData>> customGetData() =>
|
||||
FavHttp.favPugv(mid: mid, page: page);
|
||||
|
||||
Future<void> onRemove(int index, int sid) async {
|
||||
Future<void> onRemove(int index, int? sid) async {
|
||||
var res = await FavHttp.delFavPugv(sid);
|
||||
if (res['status']) {
|
||||
loadingState
|
||||
|
||||
@@ -68,7 +68,7 @@ class _FavCheesePageState extends State<FavCheesePage>
|
||||
context: context,
|
||||
title: '确定取消收藏该课堂?',
|
||||
onConfirm: () =>
|
||||
_controller.onRemove(index, item.seasonId!),
|
||||
_controller.onRemove(index, item.seasonId),
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -38,7 +38,7 @@ class FavTopicController
|
||||
Future<LoadingState<FavTopicData>> customGetData() =>
|
||||
FavHttp.favTopic(page: page);
|
||||
|
||||
Future<void> onRemove(int index, int id) async {
|
||||
Future<void> onRemove(int index, int? id) async {
|
||||
var res = await FavHttp.delFavTopic(id);
|
||||
if (res['status']) {
|
||||
loadingState
|
||||
|
||||
@@ -93,7 +93,7 @@ class _FavTopicPageState extends State<FavTopicPage>
|
||||
context: context,
|
||||
title: '确定取消收藏?',
|
||||
onConfirm: () {
|
||||
_controller.onRemove(index, item.id!);
|
||||
_controller.onRemove(index, item.id);
|
||||
},
|
||||
),
|
||||
borderRadius: const BorderRadius.all(
|
||||
|
||||
Reference in New Issue
Block a user