refactor: 重命名Message.RawMsg
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user