fix group peers read

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-09-19 12:03:45 +08:00
parent 5f222c4df2
commit 0246f050e2
2 changed files with 7 additions and 8 deletions

View File

@ -68,7 +68,7 @@ class PeerPayload {
PeerPayload.fromJson(Map<String, dynamic> json)
: id = json['id'] ?? '',
info = json['info'] ?? '',
info = (json['info'] is Map<String, dynamic>) ? json['info'] : {},
status = json['status'],
user = json['user'] ?? '',
user_name = json['user_name'] ?? '',

View File

@ -145,15 +145,14 @@ class GroupModel {
final pageSize = 100;
var total = 0;
int current = 0;
var queryParameters = {
'current': current.toString(),
'pageSize': pageSize.toString(),
'accessible': '',
'status': '1',
'user_status': '1',
};
do {
current += 1;
var queryParameters = {
'current': current.toString(),
'pageSize': pageSize.toString(),
'accessible': '',
'status': '1',
};
var uri = Uri(
scheme: uri0.scheme,
host: uri0.host,