Skip to content

Commit

Permalink
优化结果判断
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Oct 25, 2017
1 parent c8a2662 commit 417fb08
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public ErrorType judge(OAuth2Response response) {
if (result == null) {
return ErrorType.OTHER;
}
if (!result.trim().startsWith("{")) {
return null;
}
JSONObject jsonRes = JSON.parseObject(result);
Integer status = jsonRes.getInteger("status");
if (status == null && response.status() == 200) {
Expand Down

0 comments on commit 417fb08

Please sign in to comment.