mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-26 20:16:26 +08:00
opt account
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -4,16 +4,18 @@ import 'package:PiliPlus/models/common/live_search_type.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_search/data.dart';
|
||||
import 'package:PiliPlus/pages/common/common_list_controller.dart';
|
||||
import 'package:PiliPlus/pages/live_search/controller.dart';
|
||||
import 'package:PiliPlus/utils/storage.dart';
|
||||
import 'package:PiliPlus/services/account_service.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class LiveSearchChildController
|
||||
extends CommonListController<LiveSearchData, dynamic> {
|
||||
LiveSearchChildController(this.controller, this.searchType);
|
||||
|
||||
final isLogin = Accounts.main.isLogin;
|
||||
final LiveSearchController controller;
|
||||
final LiveSearchType searchType;
|
||||
|
||||
AccountService accountService = Get.find<AccountService>();
|
||||
|
||||
@override
|
||||
void checkIsEnd(int length) {
|
||||
switch (searchType) {
|
||||
@@ -46,7 +48,7 @@ class LiveSearchChildController
|
||||
@override
|
||||
Future<LoadingState<LiveSearchData>> customGetData() {
|
||||
return LiveHttp.liveSearch(
|
||||
isLogin: isLogin,
|
||||
isLogin: accountService.isLogin.value,
|
||||
page: page,
|
||||
keyword: controller.editingController.text,
|
||||
type: searchType,
|
||||
|
||||
Reference in New Issue
Block a user