Ver código fonte

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

master
Patrick Peng Sun 8 anos atrás
pai
commit
b0f2d7fc3c
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      wechatMsg.go

+ 3
- 0
wechatMsg.go Ver arquivo

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

Carregando…
Cancelar
Salvar