Merge branch 'main' into feature-liveRoomRender
This commit is contained in:
@ -70,11 +70,11 @@ class LiveController extends GetxController {
|
||||
Future fetchLiveFollowing() async {
|
||||
var res = await LiveHttp.liveFollowing(pn: 1, ps: 20);
|
||||
if (res['status']) {
|
||||
liveFollowingList.value = (res['data'].list
|
||||
as List<LiveFollowingItemModel>)
|
||||
.where(
|
||||
(LiveFollowingItemModel item) => item.liveStatus == 1) // 根据条件过滤
|
||||
.toList();
|
||||
liveFollowingList.value =
|
||||
(res['data'].list as List<LiveFollowingItemModel>)
|
||||
.where((LiveFollowingItemModel item) =>
|
||||
item.liveStatus == 1 && item.recordLiveTime == 0) // 根据条件过滤
|
||||
.toList();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
@ -201,6 +201,7 @@ class _LivePageState extends State<LivePage>
|
||||
Map? data = snapshot.data;
|
||||
if (data?['status']) {
|
||||
RxList list = _liveController.liveFollowingList;
|
||||
// ignore: invalid_use_of_protected_member
|
||||
return Obx(() => LiveFollowingListView(list: list.value));
|
||||
} else {
|
||||
return HttpError(
|
||||
|
Reference in New Issue
Block a user