默认使用text消息类型

This commit is contained in:
zhiyang7 2021-08-30 11:19:41 +08:00
parent afdefd0632
commit f9b71fa733
1 changed files with 3 additions and 0 deletions

View File

@ -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 := ""