refactor: 重命名Message.RawMsg

This commit is contained in:
lixiangwuxian
2024-10-13 14:40:32 +08:00
parent eed624194a
commit 1495ac516b
11 changed files with 61 additions and 38 deletions

View File

@@ -10,11 +10,11 @@ func init() {
}
func echo(msg model.Message) (reply model.Reply) {
if len(msg.Msg) <= 5 {
if len(msg.RawMsg) <= 5 {
return model.Reply{}
}
return model.Reply{
ReplyMsg: msg.Msg[5:],
ReplyMsg: msg.RawMsg[5:],
ReferOriginMsg: true,
FromMsg: msg,
}