Skip to content

Commit

Permalink
feat: 消息发送结果判断
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Jun 17, 2024
1 parent 15fd073 commit 3fad91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (c *QQClient) SendGroupMessage(groupUin uint32, elements []message2.IMessag
}
resp, err = c.SendRawMessage(route, body)
if err != nil {
return nil, err
return resp, err
}
if resp.GroupSequence.IsNone() {
return resp, utils.GrpSendFailed
Expand All @@ -69,7 +69,7 @@ func (c *QQClient) SendPrivateMessage(uin uint32, elements []message2.IMessageEl
}
resp, err = c.SendRawMessage(route, body)
if err != nil {
return nil, err
return resp, err
}
if resp.PrivateSequence == 0 {
return resp, utils.PrvSendFailed
Expand Down

0 comments on commit 3fad91e

Please sign in to comment.