Browse Source

safe guard empty message will not produce "BUG" message, it's legit

master
Patrick Peng Sun 8 years ago
parent
commit
b0f2d7fc3c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      wechatMsg.go

+ 3
- 0
wechatMsg.go View File

@@ -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)
}

Loading…
Cancel
Save