Skip to content

Commit

Permalink
Merge pull request #338 from 1umine/master
Browse files Browse the repository at this point in the history
提供外部可调用的函数 'SendSsoPacket' 供提交回调给签名服务器
  • Loading branch information
Mrs4s committed Jul 30, 2023
2 parents 19e3d17 + 06bd1ed commit d344e0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions client/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ func (c *QQClient) sendAndWaitDynamic(seq uint16, pkt []byte) ([]byte, error) {
}
}

// SendSsoPacket
// 发送签名回调包给服务器并获取返回结果供提交
func (c *QQClient) SendSsoPacket(cmd string, body []byte) ([]byte, error) {
seq, data := c.uniPacket(cmd, body)
return c.sendAndWaitDynamic(seq, data)
}

// plannedDisconnect 计划中断线事件
func (c *QQClient) plannedDisconnect(_ *network.TCPClient) {
c.debug("planned disconnect.")
Expand Down

0 comments on commit d344e0f

Please sign in to comment.