调用接口https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send
报文内容如下
{
"touser":"oF8s25AL-SXLu3uDNrmFdI1WdcWk",
"mp_template_msg":{
"appid":"wx95e40db47d1aa470",
"template_id":"bKNdjQV6QmV24URR8xZ1KHJ9hujhX5oV9agRDL_u1YA",
"url":"https://weixin.qq.com/download",
"miniprogram":{
"appid":"wx55e9a2446fed94cc",
"path":"pages/index/mytaskListH5"
},
"data":{
"first":{
"value":"恭喜你购买成功!",
"color":"#173177"
},
"keyword1":{
"value":"维修工单",
"color":"#173177"
},
"keyword2":{
"value":"202104140001",
"color":"#173177"
},
"keyword3":{
"value":"伯虑国",
"color":"#173177"
},
"keyword4":{
"value":"2021-04-04 10:25:06",
"color":"#173177"
},
"remark":{
"value":"欢迎再次购买!",
"color":"#173177"
}
}
}
}
但是first和remark不显示
官方调整了,你打开公众号后台也有通知
翻看了之前的历史消息,发现5月8号之前还是可以的
参考下公告《关于规范公众号模板消息的再次公告》:https://mp.weixin.qq.com/s/hvLO4Vs75NXDA__SxuyKXw