fix: 修正 MsgInHandler 函数中的 nil 检查逻辑,以确保在回复消息为空时不发生错误
This commit is contained in:
parent
7f0560b56e
commit
a4585582ca
@ -103,7 +103,7 @@ func MsgInHandler(msg model.Message) (reply *model.Reply) {
|
||||
return nil
|
||||
}
|
||||
defer func() {
|
||||
if reply.ReplyMsg != "" {
|
||||
if reply != nil {
|
||||
log.Default().Printf("\033[32m↑\033[0m:%v", reply)
|
||||
}
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user