src/Contact/Contacts.php
public function update($username, $list) :array
    {
        $usernames = is_string($username) ? [$username] : $username;

        $url = $this->vbot->config['server.uri.base'].'/webwxbatchgetcontact?type=ex&r='.time();

        $data = [
            'BaseRequest' => $this->vbot->config['server.baseRequest'],
            'Count'       => count($usernames),
            'List'        => $list,
        ];

        $response = $this->vbot->http->json($url, $data, true);

        if (!$response) {
            return [];
        }

        foreach ($response['ContactList'] as $item) {
            $this->put($item['UserName'], $item);
        }

        return is_string($username) ? head($response['ContactList']) : $response['ContactList'];
    }
public function update($username, $list) :array
    {
        $usernames = is_string($username) ? [$username] : $username;

        $url = $this->vbot->config['server.uri.base'].'/webwxbatchgetcontact?type=ex&r='.time();

        $data = [
            'BaseRequest' => $this->vbot->config['server.baseRequest'],
            'Count'       => count($usernames),
            'List'        => $list,
        ];

        $response = $this->vbot->http->json($url, $data, true);

        if (!$response) {
            return [];
        }

        foreach ($response['ContactList'] as $item) {
            $this->put($item['UserName'], $item);
        }

        return is_string($username) ? head($response['ContactList']) : $response['ContactList'];
    }
通过接口更新群组信息.

@param $username
@param $list

@return array