src/Contact/Contacts.php
public function getAccount($username)
    {
        if (starts_with($username, '@@')) {
            return $this->vbot->groups->get($username);
        } else {
            $account = $this->vbot->friends->get($username, null);

            $account = $account ?: $this->vbot->members->get($username, null);

            $account = $account ?: $this->vbot->officials->get($username, null);

            return $account ?: $this->vbot->specials->get($username, null);
        }
    }
public function getAccount($username)
    {
        if (starts_with($username, '@@')) {
            return $this->vbot->groups->get($username);
        } else {
            $account = $this->vbot->friends->get($username, null);

            $account = $account ?: $this->vbot->members->get($username, null);

            $account = $account ?: $this->vbot->officials->get($username, null);

            return $account ?: $this->vbot->specials->get($username, null);
        }
    }
根据username获取账号.

@param $username

@return mixed