发送地址:https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=token
body:
{
"touser": "oAR2jwqmwPqukqdLW4yMRXtYL6_4",
"mp_template_msg": {
"data": {
"keyword1": {
"value": "OA管理平台消息"
},
"keyword2": {
"value": "task1"
},
"remark": {
"value": "请点击查看!"
},
"first": {
"value": "您有新的待办事项"
}
},
"appid": "wx7875c3b9fa3f09b4",
"template_id": "qlh5gfq1kOLcNZa4LG4BiYEfhNHuarNXAurHl2XdbS8",
"miniprogram": {
"pagepath": "/pages/tab/news/news",
"appid": "wx8512297e9286e958"
}
}
}
也从接口也能查看到模板id:
模板消息接口用统一消息的json结构?
重新查看了一下文档接口描述,发现消息模板发送参数的结构有变化导致