From 9452f42584ee9ff24886f68e8bd5489d8e432cbf Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Thu, 18 May 2017 18:46:17 +1000 Subject: [PATCH] try to reply a link see if it auto convert. answer is ..no. --- server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.go b/server.go index 33454c4..af92f97 100644 --- a/server.go +++ b/server.go @@ -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)