simple ab store and add batch operation toast
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
f5cf291f55
commit
2f5ae54c08
4 changed files with 14 additions and 9 deletions
|
|
@ -61,7 +61,7 @@ class AbModel {
|
|||
authHeaders['Accept-Encoding'] = "gzip";
|
||||
final resp = await http.get(Uri.parse(api), headers: authHeaders);
|
||||
if (resp.body.isNotEmpty && resp.body.toLowerCase() != "null") {
|
||||
Map<String, dynamic> json = jsonDecode(resp.body);
|
||||
Map<String, dynamic> json = jsonDecode(utf8.decode(resp.bodyBytes));
|
||||
if (json.containsKey('error')) {
|
||||
abError.value = json['error'];
|
||||
} else if (json.containsKey('data')) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue