From deab16c88096480356570e527ffd18fa4586a6f1 Mon Sep 17 00:00:00 2001 From: Gitea Date: Mon, 21 Feb 2022 17:27:49 +0800 Subject: [PATCH] #1494 fix --- routers/authentication/wechat_event.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routers/authentication/wechat_event.go b/routers/authentication/wechat_event.go index 162f1c182..67149de5d 100644 --- a/routers/authentication/wechat_event.go +++ b/routers/authentication/wechat_event.go @@ -21,6 +21,10 @@ func AcceptWechatEvent(ctx *context.Context) { replyStr = wechat.HandleSubscribeEvent(we) } + if replyStr == "" { + log.Info("reply str is empty") + return + } reply := &wechat.Xml{ ToUserName: we.FromUserName, FromUserName: we.ToUserName,