Ver código fonte

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

master
Patrick Peng Sun 9 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

} }


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

Carregando…
Cancelar
Salvar