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
|
class FavDetailController
|
||||||
extends MultiSelectController<FavDetailData, FavDetailItemData> {
|
extends MultiSelectController<FavDetailData, FavDetailItemData> {
|
||||||
Rx<FavFolderItemData> item = FavFolderItemData().obs;
|
Rx<FavFolderItemData> item = FavFolderItemData().obs;
|
||||||
int? mediaId;
|
late int mediaId;
|
||||||
late String heroTag;
|
late String heroTag;
|
||||||
RxBool isOwner = false.obs;
|
RxBool isOwner = false.obs;
|
||||||
RxBool titleCtr = false.obs;
|
RxBool titleCtr = false.obs;
|
||||||
@@ -24,12 +24,11 @@ class FavDetailController
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void onInit() {
|
void onInit() {
|
||||||
if (Get.parameters.keys.isNotEmpty) {
|
|
||||||
mediaId = int.parse(Get.parameters['mediaId']!);
|
|
||||||
heroTag = Get.parameters['heroTag']!;
|
|
||||||
}
|
|
||||||
super.onInit();
|
super.onInit();
|
||||||
|
|
||||||
|
mediaId = int.parse(Get.parameters['mediaId']!);
|
||||||
|
heroTag = Get.parameters['heroTag']!;
|
||||||
|
|
||||||
mid = Accounts.main.mid;
|
mid = Accounts.main.mid;
|
||||||
|
|
||||||
queryData();
|
queryData();
|
||||||
@@ -83,7 +82,7 @@ class FavDetailController
|
|||||||
UserHttp.userFavFolderDetail(
|
UserHttp.userFavFolderDetail(
|
||||||
pn: currentPage,
|
pn: currentPage,
|
||||||
ps: 20,
|
ps: 20,
|
||||||
mediaId: mediaId!,
|
mediaId: mediaId,
|
||||||
);
|
);
|
||||||
|
|
||||||
onDelChecked(BuildContext context) {
|
onDelChecked(BuildContext context) {
|
||||||
|
|||||||
@@ -44,16 +44,14 @@ class SSearchController extends GetxController {
|
|||||||
void onInit() {
|
void onInit() {
|
||||||
super.onInit();
|
super.onInit();
|
||||||
// 其他页面跳转过来
|
// 其他页面跳转过来
|
||||||
if (Get.parameters.keys.isNotEmpty) {
|
if (Get.parameters['keyword'] != null) {
|
||||||
if (Get.parameters['keyword'] != null) {
|
onClickKeyword(Get.parameters['keyword']!);
|
||||||
onClickKeyword(Get.parameters['keyword']!);
|
}
|
||||||
}
|
if (Get.parameters['hintText'] != null) {
|
||||||
if (Get.parameters['hintText'] != null) {
|
hintText = Get.parameters['hintText']!;
|
||||||
hintText = Get.parameters['hintText']!;
|
}
|
||||||
}
|
if (Get.parameters['text'] != null) {
|
||||||
if (Get.parameters['text'] != null) {
|
controller.text = Get.parameters['text']!;
|
||||||
controller.text = Get.parameters['text']!;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
historyList.value = List.from(GStorage.historyWord.get('cacheList') ?? []);
|
historyList.value = List.from(GStorage.historyWord.get('cacheList') ?? []);
|
||||||
|
|||||||
@@ -21,10 +21,8 @@ class SubDetailController
|
|||||||
super.onInit();
|
super.onInit();
|
||||||
item = Get.arguments;
|
item = Get.arguments;
|
||||||
playCount.value = item.viewCount!;
|
playCount.value = item.viewCount!;
|
||||||
if (Get.parameters.keys.isNotEmpty) {
|
id = int.parse(Get.parameters['id']!);
|
||||||
id = int.parse(Get.parameters['id']!);
|
heroTag = Get.parameters['heroTag']!;
|
||||||
heroTag = Get.parameters['heroTag']!;
|
|
||||||
}
|
|
||||||
queryData();
|
queryData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user