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

Method GetCsrfToken

client/ticket.go:73–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func (c *QQClient) GetCsrfToken() (int, error) {
74 skey, err := c.GetSkey()
75 if err != nil {
76 return -1, err
77 }
78
79 hash := 5381
80 for _, ch := range skey {
81 hash += (hash << 5) + int(ch)
82 }
83 return hash & 2147483647, nil
84}
85
86func (c *QQClient) GetCookies(domain string) (*Cookies, error) {
87 skey, err := c.GetSkey()

Callers 6

GetGroupAlbumMethod · 0.95
FetchEssenceMessageMethod · 0.95
GetGroupNoticeMethod · 0.95
AddGroupNoticeSimpleMethod · 0.95
AddGroupNoticeWithPicMethod · 0.95
DelGroupNoticeMethod · 0.95

Calls 1

GetSkeyMethod · 0.95

Tested by

no test coverage detected