Procházet zdrojové kódy

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

master
Patrick Peng Sun před 8 roky
rodič
revize
9452f42584
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. +3
    -0
      server.go

+ 3
- 0
server.go Zobrazit soubor

fmt.Printf("decrypt as: %s\n", d) fmt.Printf("decrypt as: %s\n", d)
h := ReadCommonHeader(d) h := ReadCommonHeader(d)
reply, _ := BuildTextMsg(h.MsgType, h.FromUserName) reply, _ := BuildTextMsg(h.MsgType, h.FromUserName)
if h.MsgType == "text" {
reply, _ = BuildTextMsg("http://www.hitxy.org.au/", h.FromUserName)
}
if h.MsgType == "voice" { if h.MsgType == "voice" {
a := ReadVoiceMsg(d) a := ReadVoiceMsg(d)
reply, _ = BuildTextMsg(a.Recognition, h.FromUserName) reply, _ = BuildTextMsg(a.Recognition, h.FromUserName)

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