MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / FetchUserInfoUin

Method FetchUserInfoUin

client/operation.go:593–603  ·  view source on GitHub ↗

FetchUserInfoUin 通过uin获取用户信息

(uin uint32)

Source from the content-addressed store, hash-verified

591
592// FetchUserInfoUin 通过uin获取用户信息
593func (c *QQClient) FetchUserInfoUin(uin uint32) (*entity.User, error) {
594 pkt, err := oidb2.BuildFetchUserInfoReq(uin)
595 if err != nil {
596 return nil, err
597 }
598 resp, err := c.sendOidbPacketAndWait(pkt)
599 if err != nil {
600 return nil, err
601 }
602 return oidb2.ParseFetchUserInfoResp(resp)
603}
604
605// FetchGroupInfo 获取群信息 isStrange是否陌生群聊
606func (c *QQClient) FetchGroupInfo(groupUin uint32, isStrange bool) (*entity.Group, error) {

Callers 1

Calls 1

sendOidbPacketAndWaitMethod · 0.95

Tested by

no test coverage detected