(command string, body []byte)
| 7 | ) |
| 8 | |
| 9 | func (c *QQClient) uniPacket(command string, body []byte) (uint32, []byte, error) { |
| 10 | seq := c.getAndIncreaseSequence() |
| 11 | sign, err := c.signProvider.Sign(command, seq, body) |
| 12 | if err != nil { |
| 13 | return 0, nil, err |
| 14 | } |
| 15 | req := network.Request{ |
| 16 | SequenceID: seq, |
| 17 | Uin: int64(c.Uin), |
| 18 | Sign: sign, |
| 19 | CommandName: command, |
| 20 | Body: body, |
| 21 | } |
| 22 | return seq, c.transport.PackPacket(&req), nil |
| 23 | } |
no test coverage detected