mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 09:06:36 +08:00
opt: account (#1306)
* opt: account * opt: account * opt: live api * opt: buvid * Revert "opt: buvid" This reverts commit da1ea68f8bfd0b9af6958062557c85135ab8b08d. * tweak
This commit is contained in:
committed by
GitHub
parent
6b4fb0d611
commit
1345fd36e4
@@ -7,7 +7,6 @@ import 'package:PiliPlus/models_new/live/live_feed_index/data.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_second_list/data.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_second_list/tag.dart';
|
||||
import 'package:PiliPlus/pages/common/common_list_controller.dart';
|
||||
import 'package:PiliPlus/services/account_service.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class LiveController extends CommonListController {
|
||||
@@ -17,8 +16,6 @@ class LiveController extends CommonListController {
|
||||
queryData();
|
||||
}
|
||||
|
||||
AccountService accountService = Get.find<AccountService>();
|
||||
|
||||
int? count;
|
||||
|
||||
// area
|
||||
@@ -75,16 +72,12 @@ class LiveController extends CommonListController {
|
||||
if (areaIndex.value != 0) {
|
||||
return LiveHttp.liveSecondList(
|
||||
pn: page,
|
||||
isLogin: accountService.isLogin.value,
|
||||
areaId: areaId,
|
||||
parentAreaId: parentAreaId,
|
||||
sortType: sortType,
|
||||
);
|
||||
}
|
||||
return LiveHttp.liveFeedIndex(
|
||||
pn: page,
|
||||
isLogin: accountService.isLogin.value,
|
||||
);
|
||||
return LiveHttp.liveFeedIndex(pn: page);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -99,11 +92,7 @@ class LiveController extends CommonListController {
|
||||
}
|
||||
|
||||
Future<void> queryTop() async {
|
||||
final res = await LiveHttp.liveFeedIndex(
|
||||
pn: page,
|
||||
isLogin: accountService.isLogin.value,
|
||||
moduleSelect: true,
|
||||
);
|
||||
final res = await LiveHttp.liveFeedIndex(pn: page, moduleSelect: true);
|
||||
if (res.isSuccess) {
|
||||
final data = res.data;
|
||||
topState.value = Pair(
|
||||
|
||||
Reference in New Issue
Block a user