1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00
This commit is contained in:
Mrs4s 2021-04-11 18:35:33 +08:00
commit 7e76993d90
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 9 additions and 2 deletions

View File

@ -104,7 +104,7 @@ func (c *QQClient) commMsgProcessor(pMsg *msg.Message, info *incomingPacketInfo)
if decoder, ok := c2cDecoders[pMsg.Head.GetMsgType()]; ok {
decoder(c, pMsg, info)
} else {
c.Debug("unknown msg type on c2c processor: %v", pMsg.Head.GetMsgType())
c.Debug("unknown msg type on c2c processor: %v - %v", pMsg.Head.GetMsgType(), pMsg.Head.GetC2CCmd())
}
}

View File

@ -352,7 +352,14 @@ func decodeMsgSendResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
}
if rsp.GetResult() != 0 {
c.Error("send msg error: %v %v", rsp.GetResult(), rsp.GetErrMsg())
switch rsp.GetResult() {
case 55:
c.Error("send msg error: %v Bot has blocked target's content", rsp.GetResult())
break
default:
c.Error("send msg error: %v %v", rsp.GetResult(), rsp.GetErrMsg())
break
}
}
return nil, nil
}