From 2834f73d063754777ec4d6932d29e2fe87346d4b Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Fri, 25 Oct 2024 01:36:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=A0=A1=E9=95=BF=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E6=96=87=E8=B0=83=E6=95=B4=E4=B8=BA=E7=BE=A4=E5=85=B1?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/headmaster/headmaster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/headmaster/headmaster.go b/handler/headmaster/headmaster.go index 62353ad..2e9ca51 100644 --- a/handler/headmaster/headmaster.go +++ b/handler/headmaster/headmaster.go @@ -24,7 +24,7 @@ func init() { } func headmasterHandler(msg model.Message) (reply model.Reply) { - from := util.From(msg.GroupInfo.GroupId, msg.UserId) + from := util.From(msg.GroupInfo.GroupId, 0) if len(msg.RawMsg) > 7 && msg.RawMsg[0:7] == "校长 " { return model.Reply{ ReplyMsg: ask(from, msg.RawMsg[7:]),