Pārlūkot izejas kodu

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

master
Patrick Peng Sun pirms 8 gadiem
vecāks
revīzija
b0f2d7fc3c
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      wechatMsg.go

+ 3
- 0
wechatMsg.go Parādīt failu

} }


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

Notiek ielāde…
Atcelt
Saglabāt