protected function mapUserToObject(array $user)
{
return new User(['id' => $this->openId, 'unionid' => $this->unionId, 'nickname' => $this->arrayItem($user, 'nickname'), 'name' => $this->arrayItem($user, 'nickname'), 'email' => $this->arrayItem($user, 'email'), 'avatar' => $this->arrayItem($user, 'figureurl_qq_2')]);
}