Procházet zdrojové kódy

introduce helper function

master
Patrick Peng Sun před 8 roky
rodič
revize
10795ab6b3
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. +7
    -2
      wechatMsg.go

+ 7
- 2
wechatMsg.go Zobrazit soubor

@@ -19,6 +19,11 @@ func (m *InWechatMsg) destroy() {
close(m.instantResponse)
}

func (m *InWechatMsg) immediateResponse(s string) {
m.instantResponse <- s
func (m *InWechatMsg) replyXML(xml string) {
m.instantResponse <- xml
}

func (m *InWechatMsg) replyText(s string) {
str, _ := BuildTextMsg(m.header.FromUserName, s)
m.instantResponse <- str
}

Načítá se…
Zrušit
Uložit