Просмотр исходного кода

try to send hyper link in html, (not so good)

master
Patrick Peng Sun 8 лет назад
Родитель
Сommit
b60acf5183
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      server.go

+ 1
- 1
server.go Просмотреть файл

h := ReadCommonHeader(d) h := ReadCommonHeader(d)
reply, _ := BuildTextMsg(h.MsgType, h.FromUserName) reply, _ := BuildTextMsg(h.MsgType, h.FromUserName)
if h.MsgType == "text" { if h.MsgType == "text" {
reply, _ = BuildTextMsg("http://www.hitxy.org.au/", h.FromUserName)
reply, _ = BuildTextMsg("test <a href=http://www.hitxy.org.au/> some link </a>", h.FromUserName)
} }
if h.MsgType == "voice" { if h.MsgType == "voice" {
a := ReadVoiceMsg(d) a := ReadVoiceMsg(d)

Загрузка…
Отмена
Сохранить