From a4585582ca331ee41df1e823cf9dde5f4d4f0008 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Wed, 9 Apr 2025 23:37:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=20MsgInHandler=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E4=B8=AD=E7=9A=84=20nil=20=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E4=BB=A5=E7=A1=AE=E4=BF=9D=E5=9C=A8?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=B6=88=E6=81=AF=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E5=8F=91=E7=94=9F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/handler.go b/handler/handler.go index fc78c91..31ac070 100644 --- a/handler/handler.go +++ b/handler/handler.go @@ -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) } }()