Skip to content

Commit

Permalink
Merge pull request #16 from ruitaoZhang/fix-account-check
Browse files Browse the repository at this point in the history
修复查询是否存在有赞帐号接口的返回结果
  • Loading branch information
Hanson authored May 30, 2019
2 parents 2ceceb1 + 9862199 commit 3d01ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function request($method, $params = [], $files = [])
return $this->errorResponse($result);
}

return $result['response'] ? Helper::toNull($result['response']) : $result['response'];
return is_array($result['response']) ? Helper::toNull($result['response']) : $result['response'];
}

private function files(array &$files)
Expand Down

0 comments on commit 3d01ba6

Please sign in to comment.