pub徽章 & 代码质量分析
This commit is contained in:
parent
5c83b3f773
commit
aaa7f1c475
@ -2,6 +2,7 @@
|
||||
|
||||
[](https://cloud.drone.io/v7lin/fake_weibo)
|
||||
[](https://github.com/v7lin/fake_weibo/releases)
|
||||
[](https://pub.dartlang.org/packages/fake_weibo)
|
||||
|
||||
flutter版新浪微博SDK
|
||||
|
||||
|
@ -398,9 +398,9 @@ class FakeWeibo {
|
||||
}).then((HttpClientResponse response) async {
|
||||
if (response.statusCode == HttpStatus.ok) {
|
||||
String content = await utf8.decodeStream(response);
|
||||
Map<dynamic, dynamic> map = json.decode(content);
|
||||
Map<dynamic, dynamic> map = json.decode(content) as Map<dynamic, dynamic>;
|
||||
int errorCode = map.containsKey(FakeWeiboApiBaseResp.KEY_ERROR_CODE)
|
||||
? map[FakeWeiboApiBaseResp.KEY_ERROR_CODE]
|
||||
? map[FakeWeiboApiBaseResp.KEY_ERROR_CODE] as int
|
||||
: FakeWeiboApiBaseResp.ERROR_CODE_SUCCESS;
|
||||
if (errorCode == FakeWeiboApiBaseResp.ERROR_CODE_SUCCESS) {
|
||||
return FakeWeiboApiUserResp._(
|
||||
|
Loading…
Reference in New Issue
Block a user