/** * 重新封装的get请求. * * @return mixed */ function get($url, $parameters) { Core_Fun::apiLog($url, NULL); $response = $this->oAuthRequest($url, 'GET', $parameters); if ($this->format === 'json') { try { $response = $this->jsonDecode($response, true); } catch (Exception $e) { $response = json_decode($response, true); Core_Fun::apiLog($url, $response); throw $e; } Core_Fun::apiLog($url, $response); return $response; } return $response; }