mod: 直播用户过滤

This commit is contained in:
guozhigq
2024-09-22 19:17:46 +08:00
parent fe80caa1a3
commit d63da3fff3
2 changed files with 6 additions and 5 deletions

View File

@ -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;
}