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

Method SubmitCaptcha

client/client.go:206–227  ·  view source on GitHub ↗
(ticket, randStr, aid string)

Source from the content-addressed store, hash-verified

204}
205
206func (c *QQClient) SubmitCaptcha(ticket, randStr, aid string) (*LoginResponse, error) {
207 c.Sig().CaptchaInfo = [3]string{ticket, randStr, aid}
208 data, err := buildPasswordLoginRequest(c.Uin, c.Version(), c.Device(), &c.transport.Sig, c.PasswordMD5)
209 if err != nil {
210 return nil, err
211 }
212 packet, err := c.sendUniPacketAndWait(
213 "trpc.login.ecdh.EcdhService.SsoNTLoginPasswordLogin",
214 data,
215 )
216 if err != nil {
217 return nil, err
218 }
219 res, err := parseNtloginResponse(packet, &c.transport.Sig)
220 if err != nil {
221 return nil, err
222 }
223 if res.Success {
224 err = c.init()
225 }
226 return &res, err
227}
228
229func (c *QQClient) GetNewDeviceVerifyURL() (string, error) {
230 if c.Sig().NewDeviceVerifyURL == "" {

Callers 1

mainFunction · 0.80

Calls 7

SigMethod · 0.95
VersionMethod · 0.95
DeviceMethod · 0.95
sendUniPacketAndWaitMethod · 0.95
initMethod · 0.95
parseNtloginResponseFunction · 0.85

Tested by

no test coverage detected