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

Method FetchCookies

client/operation.go:718–728  ·  view source on GitHub ↗

FetchCookies 获取cookies

(domains []string)

Source from the content-addressed store, hash-verified

716
717// FetchCookies 获取cookies
718func (c *QQClient) FetchCookies(domains []string) ([]string, error) {
719 pkt, err := oidb2.BuildFetchCookieReq(domains)
720 if err != nil {
721 return nil, err
722 }
723 resp, err := c.sendOidbPacketAndWait(pkt)
724 if err != nil {
725 return nil, err
726 }
727 return oidb2.ParseFetchCookieResp(resp)
728}
729
730// SendPrivateFile 发送私聊文件
731func (c *QQClient) SendPrivateFile(targetUin uint32, localFilePath, filename string) error {

Callers 1

GetCookiesMethod · 0.95

Calls 1

sendOidbPacketAndWaitMethod · 0.95

Tested by

no test coverage detected