Skip to content

Commit

Permalink
不严谨代码修正
Browse files Browse the repository at this point in the history
  • Loading branch information
anerg2046 committed Oct 9, 2018
1 parent 12c2b7b commit 0206ca0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Gateways/Line.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public function userinfoRaw()
$this->getToken();

$data = $this->call('profile', $this->token, 'GET');
$data = json_decode($data, true);

if (isset($data['error'])) {
throw new \Exception($data['error_description']);
Expand Down Expand Up @@ -88,7 +87,7 @@ private function call($api, $params = [], $method = 'GET')

$data = $this->$method($request['uri'], $params, $headers);

return $data;
return json_decode($data, true);
}

/**
Expand Down

0 comments on commit 0206ca0

Please sign in to comment.