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,