소스 검색

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…
취소
저장