Skip to content

Commit

Permalink
调整:接口返回的数据结构
Browse files Browse the repository at this point in the history
  • Loading branch information
vicens committed Feb 3, 2018
1 parent 8925f6c commit e51d40a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public function __construct(ResponseInterface $response, AbstractRequest $reques

$this->content = json_decode($this->original, true);

if (array_key_exists('error_response', $this->data)) {
if (array_key_exists('error_response', $this->content)) {

$error = $this->data['error_response'];
$error = $this->content['error_response'];

if (array_key_exists('sub_code', $error)) {
$this->errorCode = $error['sub_code'];
Expand Down

0 comments on commit e51d40a

Please sign in to comment.