diff --git a/wechatMsg.go b/wechatMsg.go index ab52150..7f17bd9 100644 --- a/wechatMsg.go +++ b/wechatMsg.go @@ -35,6 +35,9 @@ func (m *InWechatMsg) replyXML(xml string) { } func (m *InWechatMsg) replyText(s string) { + if s == "" && m.replied == true { + return //skip safeguard empty message + } str, _ := BuildTextMsg(m.header.FromUserName, s) m.replyXML(str) }