fix: 修正 MsgInHandler 函数中的 nil 检查逻辑,以确保在回复消息为空时不发生错误
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user