From f9b71fa7331683ff08d6a222bf57f925e597b8bd Mon Sep 17 00:00:00 2001 From: zhiyang7 Date: Mon, 30 Aug 2021 11:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8text?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go-wecomchan/wecomchan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go-wecomchan/wecomchan.go b/go-wecomchan/wecomchan.go index ba96920..a6a4368 100644 --- a/go-wecomchan/wecomchan.go +++ b/go-wecomchan/wecomchan.go @@ -253,6 +253,9 @@ func main() { msgContent = req.Form.Get("title") + "\n" + req.Form.Get("desc") } msgType := req.Form.Get("msg_type") + if len(msgType) == 0 { + msgType = "text" + } log.Println("mes_type=", msgType) // 默认mediaId为空 mediaId := ""