MCPcopy Index your code
hub / github.com/FloatTech/AnimeAPI / NewManager

Function NewManager

qzone/api.go:136–156  ·  view source on GitHub ↗

NewManager 初始化信息

(cookie string)

Source from the content-addressed store, hash-verified

134
135// NewManager 初始化信息
136func NewManager(cookie string) (m Manager) {
137 cookie = strings.ReplaceAll(cookie, " ", "")
138 for _, v := range strings.Split(cookie, ";") {
139 name, val, f := strings.Cut(v, "=")
140 if f {
141 switch name {
142 case "uin":
143 m.Uin = val
144 case "skey":
145 m.Skey = val
146 case "p_skey":
147 m.PSkey = val
148 }
149 }
150 }
151 m.Gtk = genderGTK(m.Skey, 5381)
152 m.Gtk2 = genderGTK(m.PSkey, 5381)
153 m.QQ = strings.TrimPrefix(m.Uin, "o")
154 m.Cookie = cookie
155 return
156}
157
158// EmotionPublishRaw 发送说说
159func (m *Manager) EmotionPublishRaw(epr EmotionPublishRequest) (result EmotionPublishVo, err error) {

Callers 4

TestManager_UploadImageFunction · 0.85
TestManager_MsglistFunction · 0.85
TestLoginFunction · 0.85

Calls 1

genderGTKFunction · 0.85

Tested by 4

TestManager_UploadImageFunction · 0.68
TestManager_MsglistFunction · 0.68
TestLoginFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…