From 0206ca0b9100bf35aca1535fb3e284028aa7c082 Mon Sep 17 00:00:00 2001 From: Coeus Date: Tue, 9 Oct 2018 10:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E4=B8=A5=E8=B0=A8=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/Line.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gateways/Line.php b/src/Gateways/Line.php index 9db5c2a..2fe4051 100644 --- a/src/Gateways/Line.php +++ b/src/Gateways/Line.php @@ -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']); @@ -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); } /**