mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
@@ -65,7 +65,7 @@ class GroupModel {
|
|||||||
if (json.containsKey('error')) {
|
if (json.containsKey('error')) {
|
||||||
throw json['error'];
|
throw json['error'];
|
||||||
} else {
|
} else {
|
||||||
total = json['total'];
|
if (total == 0) total = json['total'];
|
||||||
if (json.containsKey('data')) {
|
if (json.containsKey('data')) {
|
||||||
final data = json['data'];
|
final data = json['data'];
|
||||||
if (data is List) {
|
if (data is List) {
|
||||||
@@ -76,7 +76,7 @@ class GroupModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (current < total);
|
} while (current < total + 1);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
debugPrint('$err');
|
debugPrint('$err');
|
||||||
userLoadError.value = err.toString();
|
userLoadError.value = err.toString();
|
||||||
@@ -115,7 +115,7 @@ class GroupModel {
|
|||||||
if (json.containsKey('error')) {
|
if (json.containsKey('error')) {
|
||||||
throw json['error'];
|
throw json['error'];
|
||||||
} else {
|
} else {
|
||||||
total = json['total'];
|
if (total == 0) total = json['total'];
|
||||||
if (json.containsKey('data')) {
|
if (json.containsKey('data')) {
|
||||||
final data = json['data'];
|
final data = json['data'];
|
||||||
if (data is List) {
|
if (data is List) {
|
||||||
@@ -128,7 +128,7 @@ class GroupModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (current < total);
|
} while (current < total + 1);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
debugPrint('$err');
|
debugPrint('$err');
|
||||||
peerLoadError.value = err.toString();
|
peerLoadError.value = err.toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user