| } | } | ||||
| func (m *InWechatMsg) replyText(s string) { | func (m *InWechatMsg) replyText(s string) { | ||||
| if s == "" && m.replied == true { | |||||
| return //skip safeguard empty message | |||||
| } | |||||
| str, _ := BuildTextMsg(m.header.FromUserName, s) | str, _ := BuildTextMsg(m.header.FromUserName, s) | ||||
| m.replyXML(str) | m.replyXML(str) | ||||
| } | } |