Kaynağa Gözat

try to reply a link see if it auto convert. answer is ..no.

master
Patrick Peng Sun 8 yıl önce
ebeveyn
işleme
9452f42584
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. +3
    -0
      server.go

+ 3
- 0
server.go Dosyayı Görüntüle

@@ -59,6 +59,9 @@ func answerWechatPost(w http.ResponseWriter, r *http.Request) {
fmt.Printf("decrypt as: %s\n", d)
h := ReadCommonHeader(d)
reply, _ := BuildTextMsg(h.MsgType, h.FromUserName)
if h.MsgType == "text" {
reply, _ = BuildTextMsg("http://www.hitxy.org.au/", h.FromUserName)
}
if h.MsgType == "voice" {
a := ReadVoiceMsg(d)
reply, _ = BuildTextMsg(a.Recognition, h.FromUserName)

Yükleniyor…
İptal
Kaydet