From fe8d92df923e8ff0bb8ecc7044e118344a27adde Mon Sep 17 00:00:00 2001 From: v7lin Date: Thu, 15 Apr 2021 21:20:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/weibo.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/weibo.dart b/lib/src/weibo.dart index 8074ed7..ca690eb 100644 --- a/lib/src/weibo.dart +++ b/lib/src/weibo.dart @@ -129,8 +129,7 @@ class Weibo { if (response.statusCode == HttpStatus.ok) { final String content = await utf8.decodeStream(response); return WeiboUserInfoResp.fromJson( - (json.decode(content) as Map) - .cast()); + json.decode(content) as Map); } throw HttpException( 'HttpResponse statusCode: ${response.statusCode}, reasonPhrase: ${response.reasonPhrase}.');