瀏覽代碼

introduce helper function

master
Patrick Peng Sun 8 年之前
父節點
當前提交
10795ab6b3
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      wechatMsg.go

+ 7
- 2
wechatMsg.go 查看文件

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

Loading…
取消
儲存