mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: type & grpc message (#842)
* opt: grpc type * opt: grpc message * opt: http type
This commit is contained in:
committed by
GitHub
parent
7b4f08bb05
commit
024e74115e
@@ -37,9 +37,8 @@ class PageUtils {
|
||||
List<UserModel> userList = <UserModel>[];
|
||||
|
||||
final shareListRes = await ImGrpc.shareList(size: 3);
|
||||
if (shareListRes['status'] && shareListRes['data'].sessionList.isNotEmpty) {
|
||||
userList.addAll(shareListRes['data']
|
||||
.sessionList
|
||||
if (shareListRes.isSuccess && shareListRes.data.sessionList.isNotEmpty) {
|
||||
userList.addAll(shareListRes.data.sessionList
|
||||
.map<UserModel>((item) => UserModel(
|
||||
mid: item.talkerId.toInt(),
|
||||
name: item.talkerUname,
|
||||
|
||||
Reference in New Issue
Block a user