mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: remove params check
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -15,7 +15,7 @@ import 'package:PiliPlus/http/video.dart';
|
||||
class FavDetailController
|
||||
extends MultiSelectController<FavDetailData, FavDetailItemData> {
|
||||
Rx<FavFolderItemData> item = FavFolderItemData().obs;
|
||||
int? mediaId;
|
||||
late int mediaId;
|
||||
late String heroTag;
|
||||
RxBool isOwner = false.obs;
|
||||
RxBool titleCtr = false.obs;
|
||||
@@ -24,12 +24,11 @@ class FavDetailController
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
if (Get.parameters.keys.isNotEmpty) {
|
||||
mediaId = int.parse(Get.parameters['mediaId']!);
|
||||
heroTag = Get.parameters['heroTag']!;
|
||||
}
|
||||
super.onInit();
|
||||
|
||||
mediaId = int.parse(Get.parameters['mediaId']!);
|
||||
heroTag = Get.parameters['heroTag']!;
|
||||
|
||||
mid = Accounts.main.mid;
|
||||
|
||||
queryData();
|
||||
@@ -83,7 +82,7 @@ class FavDetailController
|
||||
UserHttp.userFavFolderDetail(
|
||||
pn: currentPage,
|
||||
ps: 20,
|
||||
mediaId: mediaId!,
|
||||
mediaId: mediaId,
|
||||
);
|
||||
|
||||
onDelChecked(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user