(uin uint32, cmd string, body []byte)
| 76 | } |
| 77 | |
| 78 | func (c *QQClient) buildLoginPacket(uin uint32, cmd string, body []byte) []byte { |
| 79 | var _cmd uint16 |
| 80 | if cmd == "wtlogin.login" { |
| 81 | _cmd = 2064 |
| 82 | } else { |
| 83 | _cmd = 2066 |
| 84 | } |
| 85 | |
| 86 | return c.oicq.Marshal(&oicq.Message{ |
| 87 | Uin: uin, |
| 88 | Command: _cmd, |
| 89 | EncryptionMethod: oicq.EM_ECDH, |
| 90 | Body: body, |
| 91 | }) |
| 92 | } |
| 93 | |
| 94 | func (c *QQClient) decodeLoginResponse(buf []byte, sig *auth.SigInfo) (LoginResponse, error) { |
| 95 | reader := binary.NewReader(buf) |
no test coverage detected