protected function parseToken($result)
{
$data = json_decode($result, true);
if ($data['access_token'] && $data['expires_in'] && $data['refresh_token']) {
$data['openid'] = $this->getOpenId();
return $data;
} else {
throw new \Exception("获取360开放平台ACCESS_TOKEN出错:{$data['error']}");
}
}